Skip to main content
Glama

Field Service Business Platform by Doing Work

quotes_revise

Destructive

Pass the COMPLETE new line list; any line you omit is removed. Replace an unsigned quote with a new version. Earlier signing links stop working; send it again for a new link.

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": {
      "quote_id": "<quote_id>",
      "lines": "<lines>"
    },
    "name": "quotes_revise"
  }
}

Input Schema

NameRequiredDescriptionDefault
tmNoNew rates. Leave out to keep the rates of the last version; null to make it a fixed price quote.
linesYes
notesNoWritten scope of work stored on this version. Leave out to keep the notes of the last version; null to clear.
optionsNoGood, better, best: 2 to 5 options the customer chooses one of when signing. Each needs its own lines.
quote_idYes
tax_rate_idNoTax rate to charge (taxes.listRates). Leave out to use the shop default rate; null for no tax.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / notes
      Added value: +{
      +  "description": "Written scope of work stored on this version. Leave out to keep the notes of the last version; null to clear.",
      +  "maxLength": 8000,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / tm
      Added value: +{
      +  "description": "New rates. Leave out to keep the rates of the last version; null to make it a fixed price quote.",
      +  "properties": {
      +    "cap_minor": {
      +      "description": "Optional not-to-exceed amount. Billing stops there until a change order is approved.",
      +      "type": "integer"
      +    },
      +    "hours_per_day": {
      +      "description": "Hours that make one day on a day rate. Default 8.",
      +      "type": "number"
      +    },
      +    "materials_markup_bps": {
      +      "description": "Added to what the shop paid for materials, in basis points (2000 is 20%)",
      +      "type": "integer"
      +    },
      +    "rate_minor": {
      +      "description": "Price per worker per hour or day, in cents",
      +      "type": "integer"
      +    },
      +    "rate_unit": {
      +      "enum": [
      +        "hour",
      +        "day"
      +      ],
      +      "type": "string"
      +    },
      +    "rush_rate_minor": {
      +      "description": "Optional higher rate for time the shop marks as rush",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "rate_unit",
      +    "rate_minor"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, but the description adds concrete detail the annotations do not: the line list is a full replacement so omitted lines are deleted, and prior signing links are invalidated, requiring a resend. It does not mention permission or auth requirements, which is a minor gap.

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

Conciseness5/5

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

Three short sentences, each earning its place. The most dangerous constraint (complete line list) is front-loaded, followed by the core operation and the side effect on signing links.

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?

For a destructive mutation with destructiveHint=true, the description covers the replacement semantics and the link-invalidation side effect. It does not state what the call returns (e.g., new version id), and there is no output schema, so that remains a small gap.

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 67%, so the schema documents most fields. The description still adds the crucial meaning that 'lines' is a complete replacement list, not a merge, which the schema does not convey. This is the key semantic an agent needs to avoid accidentally deleting lines.

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

Purpose4/5

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

States a specific verb and resource: 'Replace an unsigned quote with a new version.' An agent knows this creates a new version rather than editing in place. It does not name a sibling such as quotes_create or quotes_draft, so the differentiation is only implicit.

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

Usage Guidelines3/5

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

The precondition 'unsigned quote' is clearly stated, which implicitly excludes signed quotes. However, there is no explicit when-to-use-vs-alternatives guidance, and no named sibling for revising an already-signed quote or drafting a new one.

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.