Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Export invoice to Pohoda XML

export_invoice_pohoda
Idempotent

Export an issued invoice as a Pohoda XML import file (windows-1250, XSD-validated) written next to the invoice PDF, so an accountant can import it directly into Pohoda accounting software.

Instructions

Export one issued invoice as a Pohoda XML import file (windows-1250, validated against the Pohoda XSD), for an accountant who uses the Pohoda accounting software.

Writes faktura_.pohoda.xml next to the invoice PDF and overwrites it on repeat, so calling again is safe. No network. Fails for unknown numbers, credit notes (not supported), reverse-charge invoices without eu_classification, VAT rates other than 21/12/0, item texts too long for Pohoda or characters not representable in windows-1250. Returns the file path and the Pohoda import menu path. Not needed for the built-in reports (export_vat_return, export_book).

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": "export_invoice_pohoda"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesIssued invoice number from the ledger, e.g. '2610001'.
eu_classificationNoPohoda VAT classification code (Nastavení → Členění DPH) for an EU service. Required when the invoice is reverse charge, ignored otherwise.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / eu_classification / description
      Previous value: -"Zkratka členění DPH z Pohody pro službu do EU — povinné u reverse charge."New value: +"Pohoda VAT classification code (Nastavení → Členění DPH) for an EU service. Required when the invoice is reverse charge, ignored otherwise."
    • changedInput schema / properties / number / description
      Previous value: -"Číslo faktury z evidence."New value: +"Issued invoice number from the ledger, e.g. '2610001'."
    • addedInput schema / properties / number / pattern
      Added value: +"^[A-Za-z0-9_-]{1,20}$"
  2. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

Goes well beyond the annotations: file naming convention (faktura_<number>.pohoda.xml), placement next to the invoice PDF, overwrite-on-repeat safety, no network, windows-1250 encoding, XSD validation, and an enumerated failure list (unknown numbers, credit notes, missing eu_classification, unsupported VAT rates, over-long item texts, unrepresentable characters). The overwrite/safe-on-repeat statement is consistent with idempotentHint=true and destructiveHint=false rather than merely restating them.

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?

Front-loaded with the core action and artifact, then behavior, then failure modes, then exclusions. Dense but every clause carries distinct information: encoding, filename, idempotency, failure set, return values, and the not-needed-for statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a file-producing export with an output schema, the description covers everything an agent needs: what is written, where, under what encoding, what conditions abort, and what the result contains (file path plus Pohoda import menu path). Nothing material is left to inference.

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

Parameters5/5

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

Schema coverage is already 100%, but the description adds consequence-level meaning: it names eu_classification and explains that a reverse-charge invoice missing it is a hard failure, which is more actionable than the schema's 'required when the invoice is reverse charge' alone. The number parameter's format and example are also reinforced by the output filename pattern.

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, resource, and output artifact: export one issued invoice as a Pohoda XML import file, with encoding and XSD validation named. It explicitly distinguishes itself from sibling report tools (export_vat_return, export_book) in the closing sentence, so an agent can pick it without opening a schema.

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?

Gives the positive case (an accountant using Pohoda), the negative case (not needed for built-in reports, naming the two alternatives), and the prerequisites (reverse-charge invoices need eu_classification). Explicit when/when-not coverage with alternatives named is exactly the 5 bar.

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