Skip to main content
Glama

Invoice an estimate

invoice_estimate

Turn an estimate (or percent of it — progress billing) into an invoice. On a CONTRACTING business's books it makes a DRAFT in Invoices & tax, with the sales tax worked out for the job site, that a person issues there; on other books it makes an open invoice posted to the books. A deposit already invoiced is taken off once. It is NOT emailed to anybody and no money moves. An estimate whose customer has not chosen an option, or that is held for approval, is refused. 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": "invoice_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
percentNoShare of the estimate to bill. Default 100.
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
estimate_idYesFrom `list_estimates`.

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.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses the two distinct outcomes (draft in Invoices & tax vs. posted open invoice), that sales tax is computed for the job site, that an already-invoiced deposit is deducted once, that nothing is emailed and no money moves, and that the call may be staged rather than executed. This is exactly the mutation context an agent needs.

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 core action and its branch conditions are front-loaded in the first two sentences, and the side-effect disclaimers follow. It is dense with parentheticals and semicolons, which makes it slightly harder to scan, but essentially no sentence is filler.

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 not be explained. For a non-idempotent mutation the description covers the important unknowns: where the invoice lands, tax handling, deposit netting, refusal conditions, approval staging, and absence of email or payment movement.

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 real meaning: `percent` is framed as progress billing against the estimate, and `entity_id` is framed as selecting a books entity relative to the one the person is working in. That goes beyond the schema's terse field descriptions.

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 opens with a specific verb and resource ('Turn an estimate ... into an invoice') and immediately scopes the variants: percent-based progress billing, draft on contracting books vs. posted open invoice elsewhere. An agent can tell this apart from a generic invoice creator without reading any 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?

It states the conditions under which the call is refused (customer hasn't chosen an option, estimate held for approval) and that the result is usually queued for account-holder approval, directing the agent to read `staged`. It stops short of naming a sibling alternative for the non-queued path, so it is clear context without explicit when-not-to-use routing.

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