Price a job from past work
estimate_jobA price range for a described job, built from this contractor OWN completed and invoiced work, their own labor rates, and optionally an AI breakdown of the scope. Always report basis: "company_history" is real comparables, "rate_card" is arithmetic on hours supplied, "ai_assisted" means a model split the scope and WE priced it at their own rates. WARNING: basis: "undetermined" returns NO figures at all and the missing list says what is needed — report that plainly and do not invent a number. This is a starting point, never a quote. To quote it, create_estimate with price_from saves the same figure as a draft estimate (suggested_lines shows its lines).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"description": "<description>"
},
"name": "estimate_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Estimated labor hours, if known. Improves the answer when there is no comparable history. | |
| trade | No | Plumbing, HVAC, electrical, and so on. | |
| use_ai | No | Override the company own setting for the AI scope breakdown. | |
| after_hours | No | The work is after hours or at a weekend. Only changes the price when the company has after-hours pricing switched on; `surge` in the result says whether it applied and why. | |
| description | Yes | What the work involves, in a sentence or more. | |
| scheduled_at | No | When the work is, as an ISO date-time. Used to decide whether it is after hours when `after_hours` is not given. | |
| materials_cost | No | Estimated materials cost, if known. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the result was truncated, when it was. | |
| basis | No | ||
| notes | No | ||
| surge | No | ||
| missing | No | ||
| advisory | No | ||
| low_cost | No | ||
| high_cost | No | ||
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| confidence | No | ||
| labor_cost | No | ||
| comparables | No | ||
| labor_hours | No | ||
| likely_cost | No | ||
| sample_size | No | ||
| basis_detail | No | ||
| materials_cost | No | ||
| total_available | No | How many rows existed before truncation. | |
| contingency_percent | No |