Skip to main content
Glama

Get invoice

get_invoice
Read-onlyIdempotent

One invoice or quote with its lines and totals in cents.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoice_idYesThe website's id — from list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / invoice_id / description
      Added value: +"The website's id — from list_sites."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description's one contribution beyond annotations is the return shape (lines and totals in cents), which matters since there is no output schema, but it says nothing about not-found behavior, currency, or whether the same id resolves to an invoice or a quote.

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?

A single tight sentence with no filler, and the payoff information (lines, totals in cents) is packed in. It is slightly clipped to the point of ambiguity around the invoice/quote duality.

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

Completeness3/5

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

With no output schema, the description is the only place return values can be described, and it does so only in outline. For a simple one-parameter read tool this is close to adequate, but the invoice-vs-quote ambiguity and not-found behavior leave real gaps.

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 100%, so the schema carries the parameter documentation and a baseline 3 applies. The description adds nothing about invoice_id and even introduces ambiguity by suggesting the id may address either an invoice or a quote, which the schema's "website's id — from list_sites" description does not resolve.

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?

"One invoice or quote with its lines and totals in cents" names the resource and its scope (single record, with line items and cent-denominated totals), which distinguishes it from list_invoices without naming it. It lacks an explicit verb, but the title plus "One" makes the singular fetch unambiguous.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no reference to the obvious alternative (list_invoices) for browsing or searching. The agent must infer that this is the single-record lookup counterpart of the list tool.

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