Skip to main content
Glama

get_invoice

Read-only

One invoice with its lines and totals. Required: invoice_id. Read-only.

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_idYesID of the invoice to read

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / invoice_id / description
      Added value: +"ID of the invoice to read"
  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=true and openWorldHint=false, so restating 'Read-only' adds nothing. The one genuinely additive phrase is 'with its lines and totals', which tells the agent the response includes nested line items even though no output schema exists. Undisclosed behavior remains: what happens when the invoice_id is unknown, and whether results are paginated or trimmable.

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?

Three short fragments, front-loaded with the outcome, then the requirement, then the safety property. Nothing is padded, though the telegraphic style and the redundant 'Read-only' fragment cost it the top score.

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 single-parameter read tool with full schema coverage and annotations covering the safety profile, the description covers what is fetched and what comes back at a high level. The remaining gap is error behavior for a missing or invalid invoice_id, which is minor for a lookup of this simplicity.

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 description coverage is 100% and the single parameter already carries 'ID of the invoice to read'. The description only repeats that invoice_id is required, adding no format, source, or example guidance beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 outcome: fetch a single invoice together with its line items and totals. That is meaningfully more precise than the name alone and distinguishes it from list/create/update invoice operations. It does not explicitly contrast with the several sibling invoice readers, but the 'one invoice' framing makes single-record retrieval 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?

The description gives no when-to-use or when-not-to-use guidance and names no alternatives such as get_sap_supplier_invoice or the update/create variants. The 'Required: invoice_id' line implies you must already know the identifier, which hints that this is a direct lookup rather than a search, but that inference is all the agent gets.

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.