Skip to main content
Glama

Field Service Business Platform by Doing Work

quotes_comparables

Read-only

Past prices related to one new line, for you to price it. Every matching quote line is included: signed, sent, draft, and declined, including quotes imported as history. Signed first, then newest. Each row has the description, the size and unit (from the import when the file had a size column, otherwise from the description: sq ft, lf, each, hour, and the same spellings), the unit rate when that size is there, the line total, status, date, customer, whether that customer has another quote here, discount lines, notes, and why it matched. Pass cursor for the next page. Also returns the owner's pricing rules and recent quote lessons. You do the math, apply the shop's rules, and explain the price to the owner. Nothing is priced or sent here.

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": {
      "shop_id": "<shop_id>",
      "description": "<description>"
    },
    "name": "quotes_comparables"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoThe new line's unit, if you measured it: sq ft, lf, each, hour. Not used to filter.
limitNoHow many comparables. Default 20.
cursorNoFrom the previous next_cursor.
shop_idYes
quantityNoThe new line's quantity, if you measured it. Not used to filter.
descriptionYes

Output Schema

NameRequiredDescriptionDefault
lessonsYes
shop_idYes
asked_unitYes
price_bookYes
comparablesYes
descriptionYes
instructionYes
next_cursorYes
pricing_rulesYes
asked_quantityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/closed-world/non-destructive, and the description adds substantial behavior on top: exactly which statuses are included, the sort order (signed first, then newest), per-row contents, the cursor-paging mechanism, and the side-channel payload of the owner's pricing rules and recent quote lessons. It also clarifies the division of labor – retrieval only, no pricing or sending – which is not in the annotations.

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?

The payoff – what this returns and how to use it – is front-loaded in the first clause, and the row-contents enumeration is dense but useful. It loses a point for a long multi-clause middle sentence and a parenthetical aside about import size columns that reads as stream-of-consciousness rather than structured guidance.

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

Completeness4/5

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

With an output schema present, the description needn't document return shape, yet it still covers inclusion criteria, ordering, paging, and the extra rules/lessons payload, which is complete for a read-only lookup. The remaining hole is matching mechanics: it promises a "why it matched" field but never tells the agent how lenient the description match is, which matters for getting useful comparables.

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

Parameters3/5

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

Schema coverage is 67%, so the schema already documents most parameters, including cursor provenance and that unit/quantity are not filters. The description reinforces the cursor paging step and explains where the returned size/unit spellings come from (import column vs parsed description), but it adds no guidance on how the required description string should be formed (exact phrase vs fuzzy) or how limit affects ordering.

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?

The description states a specific resource and scope: past prices from matching quote lines for one new line the agent is pricing. It enumerates which lines count (signed, sent, draft, declined, imported history) and explicitly rules out sibling behaviors by noting nothing is priced or sent here, so an agent can tell this apart from quotes_search or quotes_get without opening a schema.

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

Usage Guidelines4/5

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

"For you to price it" plus "You do the math, apply the shop's rules, and explain the price to the owner" gives a clear usage context, and "Nothing is priced or sent here" sets a boundary on expected outcomes. What's missing is an explicit alternative: it never names quotes_search or quotes_get as the path for other lookup needs, so the when-not guidance is only implied.

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.