Skip to main content
Glama

Change a draft estimate

update_estimate
DestructiveIdempotent

Change an estimate that is a draft or sent and NOT accepted. lines REPLACES every line (read them with get_estimate first); without lines, only the title, message, contract, valid-until date or job site change. Changing a SENT estimate takes it off the client's portal until somebody sends it again, and any approval has to be given again. Usually queued for the account holder to approve (read staged).

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": {
      "estimate_id": "<estimate_id>"
    },
    "name": "update_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNo
titleNo
contractNo
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
customer_idNoA different client (needs `lines`).
estimate_idYesFrom `list_estimates`.
property_idNoOne of the client's service addresses — the job site.
valid_untilNoISO date.
deposit_percentNoNeeds `lines`.
message_to_clientNo

Output Schema

NameRequiredDescriptionDefault
idNoThe created or updated record's id, when the write was applied rather than staged.
noteNoWhy the result was truncated, when it was.
stagedNoTRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done.
draft_idNoThe staged proposal's id, when it was queued rather than performed.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

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 only say destructive and idempotent; the description explains what is actually destroyed (every line is replaced) and the real-world consequence of editing a SENT estimate: it comes off the client portal until resent and any approval must be given again. The note that changes are usually queued for the account holder to approve adds workflow context absent from all structured fields.

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?

Dense and front-loaded: the state gate arrives first, then the lines replacement rule, then consequences. Slightly overcrowded with parentheticals and backticked references, but no sentence is expendable.

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?

For a 10-parameter destructive mutation with an output schema already covering return values, it carries everything an agent needs: preconditions, destructive semantics of `lines`, side effects on the client portal, and the approval queue. No material gap remains for correct invocation.

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?

Explains that `lines` is a full replacement rather than a merge, and that omitting it restricts the edit to title, message, contract, valid-until and job site, a conditional rule the schema does not encode. With only 60% schema coverage, some parameters (entity_id, property_id nuances) still rely on schema text, so it is strong but not exhaustive.

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?

States a specific verb plus resource and narrows it with a state predicate: change an estimate that is a draft or sent and NOT accepted. That single clause separates it from get_estimate (read) and create_estimate (new) without the agent 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 Guidelines5/5

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

Gives the when (draft, or sent and unaccepted), the when-not (accepted estimates are out of scope), and an explicit alternative for the read step: read lines with `get_estimate` first. It also states that the approval outcome is visible via `staged`, routing the agent to the right follow-up call.

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