Skip to main content
Glama

get_invoice_payment_evidence

Read-only

Retrieve payment and voucher details for a single invoice, including payment method, amounts, and VAT, receivable, bank, and revenue rows to verify how that invoice was settled.

Instructions

Payments and the vouchers linked to ONE invoice: payment method, amounts, and the VAT / receivable / bank / revenue rows of each voucher. No ledger browsing beyond this invoice. Accounting entries are not bank receipts.

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": {
      "document_number": "<document_number>"
    },
    "name": "get_invoice_payment_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnlyHint and openWorldHint, so the description rightly focuses on content: it discloses which data categories come back and adds a real interpretation caveat that 'accounting entries are not bank receipts,' preventing an agent from conflating ledger rows with actual payments. It does not discuss volume, missing-payment cases, or output shape.

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 tight sentences, front-loaded with the payload contents before the scoping and interpretation caveats. The line break mid-sentence is slightly awkward but no wording is wasted.

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 one-parameter, read-only lookup with no output schema, the description supplies enough: what is retrieved, the per-invoice scope, and a caution about interpreting accounting rows. Minor gaps remain around behavior when an invoice has no payments, but nothing essential to correct invocation is missing.

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?

With a single parameter at 0% schema description coverage, the description must carry the semantics, and it partially does by emphasizing 'ONE invoice,' implying document_number identifies a single invoice. It never states the expected format or origin of the document number, so the compensation is incomplete.

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 verb (retrieve payments/vouchers) and resource (one invoice's payment evidence), and enumerates the returned content: payment method, amounts, and the VAT/receivable/bank/revenue rows. It is clearly not a registration or mutation tool, though it does not explicitly name a sibling such as get_invoice to contrast against.

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 implied by the scoping sentence 'No ledger browsing beyond this invoice,' which tells the agent this is a per-invoice drill-down rather than a general ledger search. However, there is no explicit statement of when to prefer this over get_invoice or when to call register_invoice_payment instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.