Skip to main content
Glama

Get invoice

get_invoice
Read-onlyIdempotent

Returns one document (invoice or proforma): a summary and the parts listed in fields. Files (PDF, XML, UPO) are not returned; they are available in the app at app_url.

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

Input Schema

NameRequiredDescriptionDefault
fieldsNoParts to return; the summary (type, status, number, dates, customer id and name, currency, total, app_url) is always returned. "parties" (seller and customer as printed on the document, buyer and order references), "items" (description, type, quantity, unit, price, VAT rate, category and exemption reason), "totals" (net, VAT, gross, VAT per rate, VAT category, exemption reason and note), "payment" (bank account, payment terms and reference, split payment, exchange rate, payment QR codes), "ksef" (KSeF status, number, the KSeF environment it was sent to with a notice when it is a test environment that is not legally binding, sent and accepted time, offline mode, deadline), "deliveries" (e-mails sent: address, status, opens), "notes" (notes printed on the document).
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the document, from list_invoices.

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 cover the safety profile (readOnly, idempotent, non-destructive), so the description's added value is the scope disclosure: binaries (PDF, XML, UPO) are deliberately excluded and must be fetched from the app via app_url. That pre-empts a likely wrong expectation about the return payload, which is meaningful context beyond the annotations.

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?

Two tight sentences with the main behavior front-loaded and the exclusion caveat second. Every clause earns its place: what is returned, what is not, and where the missing artifacts live.

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 and only three parameters, the description supplies the essential shape of the response (summary plus requested parts) and explicitly rules out file content. It does not characterize summary field composition or field-level return shape beyond the schema's own enumeration, but nothing critical for 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?

Schema coverage is 100%, and the schema already enumerates the fields array values in detail, so the description is not required to carry parameter meaning. The description reinforces that the summary is always returned regardless of the fields selection, which is a small but real addition; otherwise it restates schema content.

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?

States a specific verb and resource: returns exactly one document (invoice or proforma), split into an always-present summary plus optional named parts. This distinguishes it from aggregate siblings like get_invoice_totals and list-style tools, though it never names an alternative explicitly.

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 required identifiers (company_id, invoice_id) and by the note that this returns a single document, but there is no explicit when-to-use statement, no prerequisite guidance (e.g. permissions), and no named alternative for related needs such as totals.

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