Skip to main content
Glama

Invoice details

get_invoice
Read-onlyIdempotent

One invoice: its lines (service, period, amount), subtotal, taxes, credit applied, total, payments received, balance due, status and the client-area link.

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 from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description's contribution is the return-field inventory (lines, taxes, credit applied, payments, balance due, status, client-area link), which is genuinely useful since no output schema exists. It does not say what happens if the invoice id is not found or whether a link requires auth, so it adds context but not depth.

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 front-loaded sentence that enumerates returned content with no filler. It borders on a field dump, but every clause maps to something an agent would want to know before calling.

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?

For a one-parameter read tool with full annotation coverage, the essential calling information is present, and the return-field list substitutes for the missing output schema. What is missing is failure behavior (unknown id) and confirmation that amounts/currency are formatted consistently, leaving a small but real gap.

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?

Only one parameter and schema description coverage is 100%, with the schema itself stating 'Invoice id from list_invoices.' Per the high-coverage baseline, a 3 is appropriate; the description adds no format or sourcing detail beyond the schema.

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') and enumerates the fields it carries, which implicitly opposes it to the sibling list_invoices. It is clear what the tool returns, though the verb ('retrieves') is only implied by the noun phrase.

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?

There is no explicit statement of when to use this over list_invoices or get_invoice_transactions; the singular 'One invoice' hints at single-record retrieval but the agent must infer it. No prerequisites, no when-not-to-use, no named alternative.

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