Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Show invoice detail

get_invoice
Read-onlyIdempotent

Retrieve a single issued invoice from the ledger by number, showing state, PDF path, customer, items, bank account IBAN, and SPAYD QR payment string.

Instructions

Show one issued invoice from the ledger: summary line with state, PDF path, customer, items, bank account with IBAN and the SPAYD string encoded in its QR payment code.

Read-only, no network. Use it when the number is known; to search or filter use list_invoices. Fails with InvoiceNotFound for an unknown number. Invoices without a bank account (e.g. recorded via add_manual_invoice) show no IBAN/SPAYD.

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

Input Schema

NameRequiredDescriptionDefault
numberYesInvoice or credit-note number exactly as in the ledger, e.g. '2610001' (see list_invoices).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / number / description
      Previous value: -"Číslo faktury."New value: +"Invoice or credit-note number exactly as in the ledger, e.g. '2610001' (see list_invoices)."
    • addedInput schema / properties / number / pattern
      Added value: +"^[A-Za-z0-9_-]{1,20}$"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, so 'Read-only, no network' is largely redundant; the added value comes from disclosing the InvoiceNotFound failure mode and the conditional behavior for invoices recorded without a bank account (no IBAN/SPAYD).

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 the payload summary, then usage, failure and edge cases in order; the comma-separated field list in the first sentence is dense but each element tells the agent what to expect, so little 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?

Covers purpose, usage, error case and a null-field edge case for a single-parameter read tool with an output schema; the response-field listing slightly overlaps what the output schema already declares, but nothing an agent needs to invoke it correctly 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 carries the pattern, title and an example number, so the description adds little format information; it contributes only the lookup-failure semantics and the pointer that numbers can be discovered via list_invoices, which keeps it at the baseline.

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?

Specific verb and resource ('Show one issued invoice from the ledger') plus an enumeration of the returned content (state, PDF path, customer, items, IBAN/SPAYD), which clearly separates it from the bulk-oriented sibling 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 Guidelines5/5

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

Explicitly states 'Use it when the number is known' and names the alternative for the opposite case ('to search or filter use list_invoices'), giving a clean selection rule an agent can apply without inference.

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