Skip to main content
Glama

Price a job from past work

estimate_job
Read-onlyIdempotent

A 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

NameRequiredDescriptionDefault
hoursNoEstimated labor hours, if known. Improves the answer when there is no comparable history.
tradeNoPlumbing, HVAC, electrical, and so on.
use_aiNoOverride the company own setting for the AI scope breakdown.
after_hoursNoThe 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.
descriptionYesWhat the work involves, in a sentence or more.
scheduled_atNoWhen the work is, as an ISO date-time. Used to decide whether it is after hours when `after_hours` is not given.
materials_costNoEstimated materials cost, if known.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
basisNo
notesNo
surgeNo
missingNo
advisoryNo
low_costNo
high_costNo
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
confidenceNo
labor_costNo
comparablesNo
labor_hoursNo
likely_costNo
sample_sizeNo
basis_detailNo
materials_costNo
total_availableNoHow many rows existed before truncation.
contingency_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavioral context on top: the three basis values and what each means about the provenance of the number, plus the failure mode where undetermined returns no figures at all. That warning about a silent-looking empty result is exactly the kind of disclosure annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and value, then the basis semantics, then the routing to create_estimate. Dense but nearly every clause carries signal; the backtick-heavy enumeration of basis values is slightly list-like rather than prose, which costs a bit of readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no full explanation, yet the description still covers the one thing the schema cannot: how to interpret basis and what to do when it is undetermined. Combined with the create_estimate handoff, an agent has everything needed to call this correctly and report results honestly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds outcome mapping the schema lacks: hours supplied yields basis rate_card, while use_ai yields an ai_assisted scope split priced at the contractor's own rates. It stops short of covering the other inputs (materials_cost, scheduled_at, trade) in prose, leaving that to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: a price range for a described job, built from the contractor's own completed and invoiced work plus their labor rates. It also names the boundary against the sibling that turns the figure into a quote (create_estimate), so the agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly frames this as a starting point, never a quote, and names the alternative path: use create_estimate with price_from to save the same figure as a draft. It also gives a concrete when-not rule for the degenerate case (basis undetermined means report the missing list and do not invent a number).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources