Tallyho is an MCP server published by so.tallyho, hosted at mcp.tallyho.so. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 4 tools, including find, book, report, status.
Licensed plumbers near a job in SF, Oakland, Berkeley and the Tri-Valley, with a booking handoff.
2 connections through 4 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
Find plumbers for a job in San Francisco, Oakland, Berkeley and the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), ranked by the chance they keep every promise that matters for it: take the job, have a slot in the window, quote within budget, arrive on time, hold the quote, finish, no upsell. Only job.location.zip is required; add system, issue, urgency, window and price_ceiling_cents for a sharper answer. Each candidate has a likelihood per promise with n (the evidence behind it), an 80% interval and freshness, the joint likelihood, and its CSLB license check. n=0 is Tallyho's starting estimate, not a measurement. Free; never contacts a business. Next: book a candidate with this find_id.
| Parameter | Type | Description |
|---|---|---|
| job * | object | |
| test | boolean | Mark this search and anything booked from it as a test; test rows never change a likelihood. |
| limit | integer | |
| promises |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| array |
| Which promises matter for this job. Default: every promise the spec lets Tallyho judge. |
{
"name": "find",
"title": "Find a plumber",
"description": "Find plumbers for a job in San Francisco, Oakland, Berkeley and the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), ranked by the chance they keep every promise that matters for it: take the job, have a slot in the window, quote within budget, arrive on time, hold the quote, finish, no upsell. Only job.location.zip is required; add system, issue, urgency, window and price_ceiling_cents for a sharper answer. Each candidate has a likelihood per promise with n (the evidence behind it), an 80% interval and freshness, the joint likelihood, and its CSLB license check. n=0 is Tallyho's starting estimate, not a measurement. Free; never contacts a business. Next: book a candidate with this find_id.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job"
],
"properties": {
"job": {
"type": "object",
"required": [
"location"
],
"properties": {
"brand": {
"type": "string",
"pattern": "^[A-Za-z0-9 &.'\\/-]+$",
"maxLength": 40,
"minLength": 1,
"description": "Equipment brand, e.g. \"Rinnai\". Letters, digits and spaces only: it is kept as demand data."
},
"issue": {
"enum": [
"no_hot_water",
"leak",
"clog",
"backup",
"no_water",
"low_pressure",
"running",
"install",
"replace",
"inspect",
"other"
],
"type": "string",
"description": "What is wrong, or what is wanted"
},
"trade": {
"type": "string",
"default": "plumbing",
"maxLength": 40,
"description": "\"plumbing\", the only trade in version 1"
},
"system": {
"enum": [
"water_heater",
"drain",
"sewer",
"toilet",
"faucet_fixture",
"pipes",
"gas_line",
"garbage_disposal",
"water_line",
"other"
],
"type": "string",
"description": "What the job is on"
},
"window": {
"type": "object",
"required": [
"earliest",
"latest"
],
"properties": {
"latest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset"
},
"earliest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset, e.g. 2026-11-02T09:00:00-08:00"
}
},
"description": "When the user can have the plumber come. Must end in the future."
},
"urgency": {
"enum": [
"emergency",
"today",
"this_week",
"flexible"
],
"type": "string",
"default": "flexible",
"description": "emergency = next 4 hours, today = by midnight local (at least 4 hours), this_week = next 7 days; used as the window when none is given"
},
"location": {
"type": "object",
"required": [
"zip"
],
"properties": {
"zip": {
"type": "string",
"maxLength": 10,
"description": "ZIP of the job (5 digits, or ZIP+4), in San Francisco, Oakland, Berkeley or the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), e.g. 94110"
}
}
},
"price_ceiling_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay, in cents"
},
"max_service_call_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay just for the plumber to come out and look (a service-call or diagnostic fee), in cents. On a Tallyho call, an offer that names only such a fee is accepted only when it is at or under this."
}
}
},
"test": {
"type": "boolean",
"default": false,
"description": "Mark this search and anything booked from it as a test; test rows never change a likelihood."
},
"limit": {
"type": "integer",
"default": 5,
"maximum": 20,
"minimum": 1
},
"promises": {
"type": "array",
"items": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
},
"maxItems": 7,
"minItems": 1,
"description": "Which promises matter for this job. Default: every promise the spec lets Tallyho judge."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"contract_version",
"environment",
"find_id",
"job",
"promises_in_scope",
"candidates",
"coverage",
"notes"
],
"properties": {
"job": {
"type": "object",
"required": [
"trade",
"location",
"urgency",
"city",
"window_derived"
],
"properties": {
"city": {
"type": "string"
},
"brand": {
"type": "string",
"pattern": "^[A-Za-z0-9 &.'\\/-]+$",
"maxLength": 40,
"minLength": 1,
"description": "Equipment brand, e.g. \"Rinnai\". Letters, digits and spaces only: it is kept as demand data."
},
"issue": {
"enum": [
"no_hot_water",
"leak",
"clog",
"backup",
"no_water",
"low_pressure",
"running",
"install",
"replace",
"inspect",
"other"
],
"type": "string",
"description": "What is wrong, or what is wanted"
},
"trade": {
"type": "string",
"const": "plumbing"
},
"system": {
"enum": [
"water_heater",
"drain",
"sewer",
"toilet",
"faucet_fixture",
"pipes",
"gas_line",
"garbage_disposal",
"water_line",
"other"
],
"type": "string",
"description": "What the job is on"
},
"window": {
"type": "object",
"required": [
"earliest",
"latest"
],
"properties": {
"latest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset"
},
"earliest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset, e.g. 2026-11-02T09:00:00-08:00"
}
},
"description": "When the user can have the plumber come. Must end in the future.",
"additionalProperties": false
},
"urgency": {
"enum": [
"emergency",
"today",
"this_week",
"flexible"
],
"type": "string",
"default": "flexible",
"description": "emergency = next 4 hours, today = by midnight local (at least 4 hours), this_week = next 7 days; used as the window when none is given"
},
"location": {
"type": "object",
"required": [
"zip"
],
"properties": {
"zip": {
"type": "string",
"maxLength": 10,
"description": "ZIP of the job (5 digits, or ZIP+4), in San Francisco, Oakland, Berkeley or the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), e.g. 94110"
}
},
"additionalProperties": false
},
"window_derived": {
"type": "boolean"
},
"price_ceiling_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay, in cents"
},
"max_service_call_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay just for the plumber to come out and look (a service-call or diagnostic fee), in cents. On a Tallyho call, an offer that names only such a fee is accepted only when it is at or under this."
}
},
"additionalProperties": false
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"find_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"coverage": {
"type": "object",
"required": [
"licensed_nearby",
"with_evidence",
"radius_mi"
],
"properties": {
"radius_mi": {
"type": "number",
"exclusiveMinimum": 0
},
"with_evidence": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"licensed_nearby": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"role",
"business",
"promises",
"joint",
"capability",
"evidence",
"how_to_book"
],
"properties": {
"rank": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"role": {
"enum": [
"ranked",
"explore"
],
"type": "string"
},
"joint": {
"type": "object",
"required": [
"p",
"n",
"interval",
"last_evidence_at",
"basis",
"assumption"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"assumption": {
"type": "string",
"const": "independent"
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"business": {
"type": "object",
"required": [
"id",
"name",
"phone",
"city",
"zip",
"distance_mi",
"location_precision",
"license",
"specialist"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"zip": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
},
"license": {
"anyOf": [
{
"type": "object",
"required": [
"number",
"classes",
"status",
"pending_suspension",
"expires_on",
"bond",
"workers_comp",
"disciplinary_bond",
"source",
"checked_at",
"confidence",
"cost_cents"
],
"properties": {
"bond": {
"type": "object",
"required": [
"on_file",
"amount_cents"
],
"properties": {
"on_file": {
"type": "boolean"
},
"amount_cents": {
"anyOf": [
{
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"number": {
"type": "string"
},
"source": {
"type": "string",
"const": "license_db"
},
"status": {
"enum": [
"active",
"suspended",
"expired",
"inactive",
"removed"
],
"type": "string"
},
"classes": {
"type": "array",
"items": {
"type": "string"
}
},
"checked_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"confidence": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"cost_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
"expires_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"workers_comp": {
"type": "object",
"required": [
"coverage",
"expires_on"
],
"properties": {
"coverage": {
"enum": [
"policy",
"exempt",
"none"
],
"type": "string"
},
"expires_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"disciplinary_bond": {
"type": "boolean"
},
"pending_suspension": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"specialist": {
"type": "boolean"
},
"distance_mi": {
"type": "number",
"minimum": 0
},
"location_precision": {
"enum": [
"exact",
"zip"
],
"type": "string"
}
},
"additionalProperties": false
},
"evidence": {
"type": "object",
"required": [
"attempts",
"verdicts",
"by_source"
],
"properties": {
"attempts": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"verdicts": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"by_source": {
"type": "object",
"properties": {
"website": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"license_db": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"text_reply": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"agent_report": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"tallyho_call": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"booking_surface": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_platform": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"promises": {
"type": "array",
"items": {
"type": "object",
"required": [
"promise",
"p",
"n",
"interval",
"last_evidence_at",
"basis"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"promise": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"capability": {
"type": "object",
"required": [
"system",
"claims"
],
"properties": {
"claims": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind",
"value",
"source_type",
"confidence",
"observed_at"
],
"properties": {
"kind": {
"enum": [
"system",
"wont_touch",
"serves_zip",
"brand",
"price_band",
"availability"
],
"type": "string"
},
"value": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"confidence": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"observed_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"source_type": {
"enum": [
"license_db",
"website",
"booking_surface",
"text_reply",
"partner_platform",
"agent_report",
"tallyho_call"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"system": {
"enum": [
"matched",
"unknown",
"not_applicable"
],
"type": "string"
}
},
"additionalProperties": false
},
"how_to_book": {
"type": "object",
"required": [
"channel",
"available_channels",
"billable"
],
"properties": {
"channel": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
},
"billable": {
"type": "boolean"
},
"available_channels": {
"type": "array",
"items": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"environment": {
"enum": [
"live",
"test"
],
"type": "string"
},
"contract_version": {
"type": "string",
"const": "1.0"
},
"promises_in_scope": {
"type": "array",
"items": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Book a plumber from a find (business_id + find_id). Version 1 is a handoff: Tallyho records the request and returns the plumber's phone number and the questions to ask; nothing is booked until the user calls, so booked is false. Don't send the user's contact details on a handoff; they are never stored either way. Keep the booking_id and call report after the call to the plumber, and again after the job.
| Parameter | Type | Description |
|---|---|---|
| job | object | Required when there is no find_id; otherwise the search's job is used. |
| test | boolean | Defaults to the search's environment. |
| channel | string | Default: the best available. Version 1 offers only handoff. |
| contact | object | The user's details for the business. Never stored; unused on a handoff. |
| find_id | string | The search this business came from. Required unless `job` is given. |
| promises | array | |
| business_id * | string | |
| principal_ref | string | Any stable id for the user; only a salted hash is kept. |
| principal_name | string | On a Tallyho call: the first name the call uses ("calling for Jordan"). Spoken, never stored. Without it, "the property owner". |
| idempotency_key | string | |
| previous_booking_id | string | The booking this one follows, e.g. after a counter-offer. |
{
"name": "book",
"title": "Book a plumber",
"description": "Book a plumber from a find (business_id + find_id). Version 1 is a handoff: Tallyho records the request and returns the plumber's phone number and the questions to ask; nothing is booked until the user calls, so booked is false. Don't send the user's contact details on a handoff; they are never stored either way. Keep the booking_id and call report after the call to the plumber, and again after the job.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"business_id"
],
"properties": {
"job": {
"type": "object",
"required": [
"location"
],
"properties": {
"brand": {
"type": "string",
"pattern": "^[A-Za-z0-9 &.'\\/-]+$",
"maxLength": 40,
"minLength": 1,
"description": "Equipment brand, e.g. \"Rinnai\". Letters, digits and spaces only: it is kept as demand data."
},
"issue": {
"enum": [
"no_hot_water",
"leak",
"clog",
"backup",
"no_water",
"low_pressure",
"running",
"install",
"replace",
"inspect",
"other"
],
"type": "string",
"description": "What is wrong, or what is wanted"
},
"trade": {
"type": "string",
"default": "plumbing",
"maxLength": 40,
"description": "\"plumbing\", the only trade in version 1"
},
"system": {
"enum": [
"water_heater",
"drain",
"sewer",
"toilet",
"faucet_fixture",
"pipes",
"gas_line",
"garbage_disposal",
"water_line",
"other"
],
"type": "string",
"description": "What the job is on"
},
"window": {
"type": "object",
"required": [
"earliest",
"latest"
],
"properties": {
"latest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset"
},
"earliest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset, e.g. 2026-11-02T09:00:00-08:00"
}
},
"description": "When the user can have the plumber come. Must end in the future."
},
"urgency": {
"enum": [
"emergency",
"today",
"this_week",
"flexible"
],
"type": "string",
"default": "flexible",
"description": "emergency = next 4 hours, today = by midnight local (at least 4 hours), this_week = next 7 days; used as the window when none is given"
},
"location": {
"type": "object",
"required": [
"zip"
],
"properties": {
"zip": {
"type": "string",
"maxLength": 10,
"description": "ZIP of the job (5 digits, or ZIP+4), in San Francisco, Oakland, Berkeley or the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), e.g. 94110"
}
}
},
"price_ceiling_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay, in cents"
},
"max_service_call_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay just for the plumber to come out and look (a service-call or diagnostic fee), in cents. On a Tallyho call, an offer that names only such a fee is accepted only when it is at or under this."
}
},
"description": "Required when there is no find_id; otherwise the search's job is used."
},
"test": {
"type": "boolean",
"description": "Defaults to the search's environment."
},
"channel": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string",
"description": "Default: the best available. Version 1 offers only handoff."
},
"contact": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 100
},
"phone": {
"type": "string",
"maxLength": 40
},
"address": {
"type": "string",
"maxLength": 300
},
"access_notes": {
"type": "string",
"maxLength": 500
}
},
"description": "The user's details for the business. Never stored; unused on a handoff."
},
"find_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "The search this business came from. Required unless `job` is given."
},
"promises": {
"type": "array",
"items": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
},
"maxItems": 7,
"minItems": 1
},
"business_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"principal_ref": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "Any stable id for the user; only a salted hash is kept."
},
"principal_name": {
"type": "string",
"maxLength": 60,
"minLength": 1,
"description": "On a Tallyho call: the first name the call uses (\"calling for Jordan\"). Spoken, never stored. Without it, \"the property owner\"."
},
"idempotency_key": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"previous_booking_id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "The booking this one follows, e.g. after a counter-offer."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"contract_version",
"environment",
"booking_id",
"status",
"booked",
"channel",
"billable",
"business",
"job",
"promises_in_scope",
"contact_used",
"handoff",
"report_after"
],
"properties": {
"job": {
"type": "object",
"required": [
"trade",
"location",
"urgency",
"city",
"window_derived"
],
"properties": {
"city": {
"type": "string"
},
"brand": {
"type": "string",
"pattern": "^[A-Za-z0-9 &.'\\/-]+$",
"maxLength": 40,
"minLength": 1,
"description": "Equipment brand, e.g. \"Rinnai\". Letters, digits and spaces only: it is kept as demand data."
},
"issue": {
"enum": [
"no_hot_water",
"leak",
"clog",
"backup",
"no_water",
"low_pressure",
"running",
"install",
"replace",
"inspect",
"other"
],
"type": "string",
"description": "What is wrong, or what is wanted"
},
"trade": {
"type": "string",
"const": "plumbing"
},
"system": {
"enum": [
"water_heater",
"drain",
"sewer",
"toilet",
"faucet_fixture",
"pipes",
"gas_line",
"garbage_disposal",
"water_line",
"other"
],
"type": "string",
"description": "What the job is on"
},
"window": {
"type": "object",
"required": [
"earliest",
"latest"
],
"properties": {
"latest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset"
},
"earliest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset, e.g. 2026-11-02T09:00:00-08:00"
}
},
"description": "When the user can have the plumber come. Must end in the future.",
"additionalProperties": false
},
"urgency": {
"enum": [
"emergency",
"today",
"this_week",
"flexible"
],
"type": "string",
"default": "flexible",
"description": "emergency = next 4 hours, today = by midnight local (at least 4 hours), this_week = next 7 days; used as the window when none is given"
},
"location": {
"type": "object",
"required": [
"zip"
],
"properties": {
"zip": {
"type": "string",
"maxLength": 10,
"description": "ZIP of the job (5 digits, or ZIP+4), in San Francisco, Oakland, Berkeley or the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), e.g. 94110"
}
},
"additionalProperties": false
},
"window_derived": {
"type": "boolean"
},
"price_ceiling_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay, in cents"
},
"max_service_call_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay just for the plumber to come out and look (a service-call or diagnostic fee), in cents. On a Tallyho call, an offer that names only such a fee is accepted only when it is at or under this."
}
},
"additionalProperties": false
},
"call": {
"anyOf": [
{
"type": "object",
"required": [
"state",
"dials",
"callback_by"
],
"properties": {
"dials": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"state": {
"enum": [
"queued",
"dialing",
"in_progress",
"awaiting_callback",
"ended"
],
"type": "string"
},
"callback_by": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"booked": {
"type": "boolean"
},
"status": {
"enum": [
"handoff",
"requested",
"pending",
"confirmed",
"counter",
"declined",
"not_booked",
"completed",
"not_completed",
"no_show",
"cancelled_by_user",
"cancelled_by_business",
"expired"
],
"type": "string"
},
"channel": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
},
"handoff": {
"anyOf": [
{
"type": "object",
"required": [
"phone",
"instructions",
"questions"
],
"properties": {
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
},
"questions": {
"type": "array",
"items": {
"type": "string"
}
},
"instructions": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"billable": {
"type": "boolean"
},
"business": {
"type": "object",
"required": [
"id",
"name",
"phone"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"name": {
"type": "string"
},
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
}
},
"additionalProperties": false
},
"booking_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"environment": {
"enum": [
"live",
"test"
],
"type": "string"
},
"contact_used": {
"type": "boolean"
},
"report_after": {
"type": "array",
"items": {
"type": "string"
}
},
"check_after_s": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"contract_version": {
"type": "string",
"const": "1.0"
},
"promises_in_scope": {
"type": "array",
"items": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Report on a booking, by booking_id, from any session. After the call to the plumber: result confirmed, declined or not_booked, plus the quote (price, slot). After the job: completed, not_completed, no_show or a cancellation, plus the final price and arrival time. Verdicts per promise are kept, broken or unobserved; Tallyho computes price and timing verdicts from the figures. Kept and broken are final. Returns the plumber's updated likelihoods and, if the booking fell through, the next best plumbers from the same search.
| Parameter | Type | Description |
|---|---|---|
| quote | object | What the business quoted. Lets Tallyho compute the price and slot verdicts. |
| actual | object | |
| result | string | What happened to the booking. Moves it to this status. |
| verdicts | object | kept, broken or unobserved, per promise in scope |
| booking_id * | string |
{
"name": "report",
"title": "Report what happened",
"description": "Report on a booking, by booking_id, from any session. After the call to the plumber: result confirmed, declined or not_booked, plus the quote (price, slot). After the job: completed, not_completed, no_show or a cancellation, plus the final price and arrival time. Verdicts per promise are kept, broken or unobserved; Tallyho computes price and timing verdicts from the figures. Kept and broken are final. Returns the plumber's updated likelihoods and, if the booking fell through, the next best plumbers from the same search.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"booking_id"
],
"properties": {
"quote": {
"type": "object",
"properties": {
"window": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"start": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
},
"description": "The slot the business offered or booked"
},
"price_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0
}
},
"description": "What the business quoted. Lets Tallyho compute the price and slot verdicts."
},
"actual": {
"type": "object",
"properties": {
"arrived_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"price_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "The final bill"
},
"completed_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
}
},
"result": {
"enum": [
"confirmed",
"not_booked",
"declined",
"completed",
"not_completed",
"no_show",
"cancelled_by_user",
"cancelled_by_business"
],
"type": "string",
"description": "What happened to the booking. Moves it to this status."
},
"verdicts": {
"type": "object",
"properties": {
"no_upsell": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
},
"quote_holds": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
},
"does_the_job": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
},
"job_completed": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
},
"arrives_in_window": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
},
"has_slot_in_window": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
},
"quote_under_ceiling": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
}
},
"description": "kept, broken or unobserved, per promise in scope"
},
"booking_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"contract_version",
"environment",
"booking_id",
"status",
"recorded",
"ignored",
"still_unobserved",
"business_now",
"alternatives"
],
"properties": {
"status": {
"enum": [
"handoff",
"requested",
"pending",
"confirmed",
"counter",
"declined",
"not_booked",
"completed",
"not_completed",
"no_show",
"cancelled_by_user",
"cancelled_by_business",
"expired"
],
"type": "string"
},
"ignored": {
"type": "array",
"items": {
"type": "object",
"required": [
"promise",
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"promise": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"recorded": {
"type": "array",
"items": {
"type": "object",
"required": [
"promise",
"verdict",
"how",
"counted"
],
"properties": {
"how": {
"enum": [
"stated",
"result",
"numbers"
],
"type": "string"
},
"counted": {
"type": "boolean"
},
"promise": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
},
"verdict": {
"enum": [
"kept",
"broken",
"unobserved"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"booking_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"environment": {
"enum": [
"live",
"test"
],
"type": "string"
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"role",
"business",
"promises",
"joint",
"capability",
"evidence",
"how_to_book"
],
"properties": {
"rank": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"role": {
"enum": [
"ranked",
"explore"
],
"type": "string"
},
"joint": {
"type": "object",
"required": [
"p",
"n",
"interval",
"last_evidence_at",
"basis",
"assumption"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"assumption": {
"type": "string",
"const": "independent"
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"business": {
"type": "object",
"required": [
"id",
"name",
"phone",
"city",
"zip",
"distance_mi",
"location_precision",
"license",
"specialist"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"zip": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
},
"license": {
"anyOf": [
{
"type": "object",
"required": [
"number",
"classes",
"status",
"pending_suspension",
"expires_on",
"bond",
"workers_comp",
"disciplinary_bond",
"source",
"checked_at",
"confidence",
"cost_cents"
],
"properties": {
"bond": {
"type": "object",
"required": [
"on_file",
"amount_cents"
],
"properties": {
"on_file": {
"type": "boolean"
},
"amount_cents": {
"anyOf": [
{
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"number": {
"type": "string"
},
"source": {
"type": "string",
"const": "license_db"
},
"status": {
"enum": [
"active",
"suspended",
"expired",
"inactive",
"removed"
],
"type": "string"
},
"classes": {
"type": "array",
"items": {
"type": "string"
}
},
"checked_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"confidence": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"cost_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
"expires_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"workers_comp": {
"type": "object",
"required": [
"coverage",
"expires_on"
],
"properties": {
"coverage": {
"enum": [
"policy",
"exempt",
"none"
],
"type": "string"
},
"expires_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"disciplinary_bond": {
"type": "boolean"
},
"pending_suspension": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"specialist": {
"type": "boolean"
},
"distance_mi": {
"type": "number",
"minimum": 0
},
"location_precision": {
"enum": [
"exact",
"zip"
],
"type": "string"
}
},
"additionalProperties": false
},
"evidence": {
"type": "object",
"required": [
"attempts",
"verdicts",
"by_source"
],
"properties": {
"attempts": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"verdicts": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"by_source": {
"type": "object",
"properties": {
"website": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"license_db": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"text_reply": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"agent_report": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"tallyho_call": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"booking_surface": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_platform": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"promises": {
"type": "array",
"items": {
"type": "object",
"required": [
"promise",
"p",
"n",
"interval",
"last_evidence_at",
"basis"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"promise": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"capability": {
"type": "object",
"required": [
"system",
"claims"
],
"properties": {
"claims": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind",
"value",
"source_type",
"confidence",
"observed_at"
],
"properties": {
"kind": {
"enum": [
"system",
"wont_touch",
"serves_zip",
"brand",
"price_band",
"availability"
],
"type": "string"
},
"value": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"confidence": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"observed_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"source_type": {
"enum": [
"license_db",
"website",
"booking_surface",
"text_reply",
"partner_platform",
"agent_report",
"tallyho_call"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"system": {
"enum": [
"matched",
"unknown",
"not_applicable"
],
"type": "string"
}
},
"additionalProperties": false
},
"how_to_book": {
"type": "object",
"required": [
"channel",
"available_channels",
"billable"
],
"properties": {
"channel": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
},
"billable": {
"type": "boolean"
},
"available_channels": {
"type": "array",
"items": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"business_now": {
"type": "object",
"required": [
"promises",
"joint"
],
"properties": {
"joint": {
"type": "object",
"required": [
"p",
"n",
"interval",
"last_evidence_at",
"basis",
"assumption"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"assumption": {
"type": "string",
"const": "independent"
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"promises": {
"type": "array",
"items": {
"type": "object",
"required": [
"promise",
"p",
"n",
"interval",
"last_evidence_at",
"basis"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"promise": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"contract_version": {
"type": "string",
"const": "1.0"
},
"still_unobserved": {
"type": "array",
"items": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Read a booking as it stands, by booking_id, from any session; holding the booking_id is enough. Works on every booking, handoff ones too. On a booking Tallyho is calling about, status moves from requested to confirmed, counter, declined, not_booked or pending: call status again after check_after_s seconds, and stop when check_after_s is absent. Never tell the user a job is booked unless booked is true. Returns the quote once known, the reason a booking fell through or was countered, the promises still to report, and, if it fell through, the next best plumbers from the same search. Reads only; never contacts a business.
| Parameter | Type | Description |
|---|---|---|
| booking_id * | string |
{
"name": "status",
"title": "Read a booking",
"description": "Read a booking as it stands, by booking_id, from any session; holding the booking_id is enough. Works on every booking, handoff ones too. On a booking Tallyho is calling about, status moves from requested to confirmed, counter, declined, not_booked or pending: call status again after check_after_s seconds, and stop when check_after_s is absent. Never tell the user a job is booked unless booked is true. Returns the quote once known, the reason a booking fell through or was countered, the promises still to report, and, if it fell through, the next best plumbers from the same search. Reads only; never contacts a business.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"booking_id"
],
"properties": {
"booking_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"contract_version",
"environment",
"booking_id",
"status",
"booked",
"channel",
"billable",
"business",
"job",
"promises_in_scope",
"contact_used",
"handoff",
"report_after",
"quote",
"reason",
"still_unobserved",
"alternatives"
],
"properties": {
"job": {
"type": "object",
"required": [
"trade",
"location",
"urgency",
"city",
"window_derived"
],
"properties": {
"city": {
"type": "string"
},
"brand": {
"type": "string",
"pattern": "^[A-Za-z0-9 &.'\\/-]+$",
"maxLength": 40,
"minLength": 1,
"description": "Equipment brand, e.g. \"Rinnai\". Letters, digits and spaces only: it is kept as demand data."
},
"issue": {
"enum": [
"no_hot_water",
"leak",
"clog",
"backup",
"no_water",
"low_pressure",
"running",
"install",
"replace",
"inspect",
"other"
],
"type": "string",
"description": "What is wrong, or what is wanted"
},
"trade": {
"type": "string",
"const": "plumbing"
},
"system": {
"enum": [
"water_heater",
"drain",
"sewer",
"toilet",
"faucet_fixture",
"pipes",
"gas_line",
"garbage_disposal",
"water_line",
"other"
],
"type": "string",
"description": "What the job is on"
},
"window": {
"type": "object",
"required": [
"earliest",
"latest"
],
"properties": {
"latest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset"
},
"earliest": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ISO 8601 with a UTC offset, e.g. 2026-11-02T09:00:00-08:00"
}
},
"description": "When the user can have the plumber come. Must end in the future.",
"additionalProperties": false
},
"urgency": {
"enum": [
"emergency",
"today",
"this_week",
"flexible"
],
"type": "string",
"default": "flexible",
"description": "emergency = next 4 hours, today = by midnight local (at least 4 hours), this_week = next 7 days; used as the window when none is given"
},
"location": {
"type": "object",
"required": [
"zip"
],
"properties": {
"zip": {
"type": "string",
"maxLength": 10,
"description": "ZIP of the job (5 digits, or ZIP+4), in San Francisco, Oakland, Berkeley or the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), e.g. 94110"
}
},
"additionalProperties": false
},
"window_derived": {
"type": "boolean"
},
"price_ceiling_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay, in cents"
},
"max_service_call_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 1,
"description": "The most the user will pay just for the plumber to come out and look (a service-call or diagnostic fee), in cents. On a Tallyho call, an offer that names only such a fee is accepted only when it is at or under this."
}
},
"additionalProperties": false
},
"call": {
"anyOf": [
{
"type": "object",
"required": [
"state",
"dials",
"callback_by"
],
"properties": {
"dials": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"state": {
"enum": [
"queued",
"dialing",
"in_progress",
"awaiting_callback",
"ended"
],
"type": "string"
},
"callback_by": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"quote": {
"anyOf": [
{
"type": "object",
"required": [
"price_cents",
"service_call_cents",
"window"
],
"properties": {
"window": {
"anyOf": [
{
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"start": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"price_cents": {
"anyOf": [
{
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
{
"type": "null"
}
]
},
"service_call_cents": {
"anyOf": [
{
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"booked": {
"type": "boolean"
},
"reason": {
"anyOf": [
{
"enum": [
"no_answer",
"no_availability",
"outside_spec",
"operator_declined",
"refused_ai",
"recording_refused",
"do_not_call",
"callback_missed",
"call_failed",
"cancelled"
],
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"enum": [
"handoff",
"requested",
"pending",
"confirmed",
"counter",
"declined",
"not_booked",
"completed",
"not_completed",
"no_show",
"cancelled_by_user",
"cancelled_by_business",
"expired"
],
"type": "string"
},
"channel": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
},
"handoff": {
"anyOf": [
{
"type": "object",
"required": [
"phone",
"instructions",
"questions"
],
"properties": {
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
},
"questions": {
"type": "array",
"items": {
"type": "string"
}
},
"instructions": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"billable": {
"type": "boolean"
},
"business": {
"type": "object",
"required": [
"id",
"name",
"phone"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"name": {
"type": "string"
},
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
}
},
"additionalProperties": false
},
"booking_id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"environment": {
"enum": [
"live",
"test"
],
"type": "string"
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"required": [
"rank",
"role",
"business",
"promises",
"joint",
"capability",
"evidence",
"how_to_book"
],
"properties": {
"rank": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"role": {
"enum": [
"ranked",
"explore"
],
"type": "string"
},
"joint": {
"type": "object",
"required": [
"p",
"n",
"interval",
"last_evidence_at",
"basis",
"assumption"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"assumption": {
"type": "string",
"const": "independent"
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"business": {
"type": "object",
"required": [
"id",
"name",
"phone",
"city",
"zip",
"distance_mi",
"location_precision",
"license",
"specialist"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"zip": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
},
"license": {
"anyOf": [
{
"type": "object",
"required": [
"number",
"classes",
"status",
"pending_suspension",
"expires_on",
"bond",
"workers_comp",
"disciplinary_bond",
"source",
"checked_at",
"confidence",
"cost_cents"
],
"properties": {
"bond": {
"type": "object",
"required": [
"on_file",
"amount_cents"
],
"properties": {
"on_file": {
"type": "boolean"
},
"amount_cents": {
"anyOf": [
{
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"number": {
"type": "string"
},
"source": {
"type": "string",
"const": "license_db"
},
"status": {
"enum": [
"active",
"suspended",
"expired",
"inactive",
"removed"
],
"type": "string"
},
"classes": {
"type": "array",
"items": {
"type": "string"
}
},
"checked_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"confidence": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"cost_cents": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0
},
"expires_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
},
"workers_comp": {
"type": "object",
"required": [
"coverage",
"expires_on"
],
"properties": {
"coverage": {
"enum": [
"policy",
"exempt",
"none"
],
"type": "string"
},
"expires_on": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"disciplinary_bond": {
"type": "boolean"
},
"pending_suspension": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"specialist": {
"type": "boolean"
},
"distance_mi": {
"type": "number",
"minimum": 0
},
"location_precision": {
"enum": [
"exact",
"zip"
],
"type": "string"
}
},
"additionalProperties": false
},
"evidence": {
"type": "object",
"required": [
"attempts",
"verdicts",
"by_source"
],
"properties": {
"attempts": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"verdicts": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"by_source": {
"type": "object",
"properties": {
"website": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"license_db": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"text_reply": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"agent_report": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"tallyho_call": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"booking_surface": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_platform": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"promises": {
"type": "array",
"items": {
"type": "object",
"required": [
"promise",
"p",
"n",
"interval",
"last_evidence_at",
"basis"
],
"properties": {
"n": {
"type": "number",
"minimum": 0
},
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"basis": {
"enum": [
"evidence",
"prior"
],
"type": "string"
},
"promise": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
},
"interval": {
"type": "array",
"items": [
{
"type": "number",
"maximum": 1,
"minimum": 0
},
{
"type": "number",
"maximum": 1,
"minimum": 0
}
],
"maxItems": 2,
"minItems": 2,
"additionalItems": false
},
"last_evidence_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"capability": {
"type": "object",
"required": [
"system",
"claims"
],
"properties": {
"claims": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind",
"value",
"source_type",
"confidence",
"observed_at"
],
"properties": {
"kind": {
"enum": [
"system",
"wont_touch",
"serves_zip",
"brand",
"price_band",
"availability"
],
"type": "string"
},
"value": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"confidence": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"observed_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"source_type": {
"enum": [
"license_db",
"website",
"booking_surface",
"text_reply",
"partner_platform",
"agent_report",
"tallyho_call"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"system": {
"enum": [
"matched",
"unknown",
"not_applicable"
],
"type": "string"
}
},
"additionalProperties": false
},
"how_to_book": {
"type": "object",
"required": [
"channel",
"available_channels",
"billable"
],
"properties": {
"channel": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
},
"billable": {
"type": "boolean"
},
"available_channels": {
"type": "array",
"items": {
"enum": [
"handoff",
"tallyho_call",
"partner_platform"
],
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"contact_used": {
"type": "boolean"
},
"report_after": {
"type": "array",
"items": {
"type": "string"
}
},
"check_after_s": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"contract_version": {
"type": "string",
"const": "1.0"
},
"still_unobserved": {
"type": "array",
"items": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
}
},
"promises_in_scope": {
"type": "array",
"items": {
"enum": [
"does_the_job",
"has_slot_in_window",
"quote_under_ceiling",
"arrives_in_window",
"quote_holds",
"job_completed",
"no_upsell"
],
"type": "string"
}
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Tallyho finds the plumbers most likely to keep their promises on a job, and learns from what actually happened. Coverage: residential plumbing in San Francisco, Oakland, Berkeley and the Tri-Valley (Danville, San Ramon, Dublin, Pleasanton, Livermore), from California's contractor license records. Flow: find (rank plumbers for a job spec) → book (version 1 hands you the plumber's number and what to ask; the user calls) → report (what happened, after the call and after the job). Every likelihood carries n, an 80% interval and freshness. n=0 means Tallyho's starting estimate, not a measurement; say so to the user. Never tell the user a job is booked unless book or report says booked/confirmed. Keep the booking_id: report needs nothing else, from any session. status(booking_id) reads a booking as it stands, from any session.
Names, descriptions and schemas were written by the server and are shown as data.