Skip to main content
Glama

Intents Checkout

Fetch an invoice

get_invoice
Read-onlyIdempotent

Read one invoice in full: status, amounts, settlement, fee, payer, transactions and attempts.

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

Input Schema

NameRequiredDescriptionDefault
invoiceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare this is a read-only, idempotent, non-destructive operation, so the safety profile is covered. The description adds value by previewing the returned surface, which matters because there is no output schema. It says nothing about behavior on an unknown invoiceId, permissions needed, or whether the response includes the attempts/transactions as embedded objects.

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 with no filler. The field enumeration is dense but earns its place given the absence of an output schema; a light structural touch (separating input guidance from return preview) would be the only improvement.

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 simple one-parameter read with rich annotations and no output schema, the description covers what is returned but leaves the input side and error behavior unaddressed. That gap is the main thing an agent would need before calling it reliably.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the sole parameter, invoiceId, is undocumented in both schema and description. The description does not state the ID format, whether it comes from create_invoice or list_invoices, or that it is required — the agent must infer this from "one invoice" alone.

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?

"Read one invoice in full" gives a specific verb plus resource and scopes it to a single record, which distinguishes it from list_invoices and create_invoice in the sibling set. It also enumerates the data surfaced (status, amounts, settlement, fee, payer, transactions, attempts), but never names a sibling explicitly.

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 when-to-use or when-not-to-use guidance, no mention of alternatives such as list_invoices for discovery or payment_status for payment state, and no hint about where a valid invoiceId comes from. Usage is only implied by "read one invoice."

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.