Skip to main content
Glama

Read invoice payment evidence

get_invoice
Read-onlyIdempotent

Read a fresh invoice from an owned Fakturoid or ABRA Flexi connection. Invoice status and balance come only from the provider. A caller's claim or transcript is not payment evidence. Inspect status, amountDueMinor (minor currency units or null), currency, fetchedAt and evidence. This is read-only. Same data as GET /v1/integrations/{id}/invoices/{invoiceId} (response schema in /openapi.json).

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

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesProvider invoice id (externalId) from list_invoices.
integrationIdYesId of the connection (int_...) from list_integrations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description earns credit for adding genuinely new context: the data is 'fresh' and authoritative, status/balance come only from the provider, and minor-unit amounts may be null. It stops short of saying what happens on a missing invoice, stale connection, or auth failure.

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?

Front-loaded with purpose and scope, then evidence semantics, then return fields, with no filler. 'This is read-only' mildly duplicates the readOnlyHint annotation and could be cut, but everything else carries information.

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 no output schema, the description correctly names the returned fields (status, amountDueMinor, currency, fetchedAt, evidence) and flags the null/minor-unit convention, which is the key trap for consumers. The pointer to /openapi.json covers the rest, though error and not-found behavior remain 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?

Schema description coverage is 100% and both parameters already document their source (externalId from list_invoices, int_... id from list_integrations). The description adds nothing about either input path or format, so it sits at the baseline where the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (read a fresh invoice) plus the scope constraint that it must come from an owned Fakturoid or ABRA Flexi connection. The ending pointer to the equivalent REST endpoint pins down exactly what data is returned, so an agent can distinguish it from sibling reads like list_invoices.

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

Usage Guidelines4/5

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

The line 'A caller's claim or transcript is not payment evidence' implicitly establishes when this tool must be used: to verify payment from provider state rather than from what a caller said. It gives no explicit exclusions or named alternative tools, so the routing guidance is clear but not complete.

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.