Skip to main content
Glama

Get invoice details

get_invoice
Read-onlyIdempotent

One invoice by id: line items, subtotal, tax, credit, total, balance, status and payments received. Card and bank details are never included.

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_idYesInvoice id, as returned by the matching list tool.

Output Schema

NameRequiredDescriptionDefault
idNo
itemsNo
totalNo
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, closed-world, non-destructive fetch, so the safety profile is covered. The description adds genuinely useful context beyond that by saying card and bank details are never included, which tells the agent what sensitive data it cannot get here. It does not cover error behavior for an unknown id, so 4 rather than 5.

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?

One tight sentence, front-loaded with the operation and immediately followed by the returned fields and the privacy boundary. Every clause earns its place.

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?

With a full output schema, the description need not document return structure, and annotations cover the safety profile. The enumeration of key fields plus the card/bank exclusion makes it complete for a simple single-record getter; only the not-found or invalid-id behavior is left unstated.

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?

There is a single parameter with 100% schema description coverage, which already explains that invoice_id comes from the matching list tool. The description's 'by id' adds no syntax, format, or constraint information beyond the schema, so the baseline of 3 applies.

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?

The description names a specific resource ('One invoice by id') and enumerates the payload fields (line items, subtotal, tax, credit, total, balance, status, payments received), so the agent knows exactly what the tool returns. It does not differentiate itself from sibling getters such as get_renewals or get_account_overview, so it stops short of a 5.

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?

Usage is only implied: fetch a single invoice by its id. There is no statement about when to prefer this over related resource getters, nor any prerequisite or exclusion. The 'as returned by the matching list tool' hint lives in the schema, not the description, so guidance remains minimal.

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.