Skip to main content
Glama
ucetka-mcp

ucetka-mcp

issue_invoice

Issues an invoice as PDF/A-3a with ISDOC 6.0.2 and QR Platba, saves it to records, and returns a summary.

Instructions

Vystaví fakturu: PDF/A-3a s ISDOC 6.0.2 a QR Platbou+F, uloží ji do evidence a vrátí shrnutí.

Před vystavením si ověř odběratele (list_customers / lookup_company) a částky s uživatelem.

Input Schema

NameRequiredDescriptionDefault
noteNoPoznámka na faktuře.
linesYesPoložky faktury.
currencyNoMěna faktury (CZK, EUR…). Kurz ČNB k DUZP se doplní sám.CZK
due_daysNoSplatnost ve dnech od vystavení.
languageNoJazyk PDF faktury: cs (default) nebo en.cs
issue_dateNoDatum vystavení YYYY-MM-DD. Default dnes.
customer_idNoKlíč z adresáře (list_customers).
bank_accountNoJiný než výchozí účet '[předčíslí-]číslo/kód'.
customer_dicNoDIČ / EU VAT ID odběratele bez IČO.
customer_icoNoIČO odběratele mimo adresář — údaje se vezmou z ARES.
customer_zipNoPSČ odběratele bez IČO.
customer_cityNoMěsto odběratele bez IČO.
customer_nameNoOdběratel bez IČO (např. zahraniční firma).
invoice_numberNoVynucené číslo. Default další z evidence.
reverse_chargeNoSlužba plátci DPH v jiném státě EU — daň odvede zákazník.
tax_point_dateNoDUZP YYYY-MM-DD. Default = datum vystavení.
customer_streetNoUlice a číslo odběratele bez IČO.
customer_countryNoNázev země odběratele bez IČO, např. 'Německo'.
customer_country_codeNoISO kód země odběratele bez IČO.CZ

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose meaningful behavior: the exact output format/version, that the invoice is persisted to the records, and that a summary is returned. It omits whether issuing consumes the next number from the sequence, whether the operation is reversible, and what permissions are needed.

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 short sentences: the first front-loads what the tool produces and persists, the second front-loads the prerequisite checks. Nothing is redundant.

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 19-parameter mutation tool with an output schema and full schema coverage, the description covers the essentials: outputs, persistence, and the pre-flight validation steps. It could go further on numbering behavior and reversibility/cancellation, but the core is present.

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%, so all 19 parameters, including the vat_rate and currency defaults and the customer ID source, are already documented in the schema. The description only reinforces where customer_id comes from (list_customers); it adds no line-item or rounding semantics beyond the schema.

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 gives a specific verb and resource ('Vystaví fakturu') and even names the concrete artifacts produced (PDF/A-3a, ISDOC 6.0.2, QR Platba+F) plus the side effect of storing it in the records. It does not, however, distinguish this tool from close siblings such as add_manual_invoice or issue_credit_note, so an agent still has to infer the boundary from the names alone.

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?

It states a real precondition workflow: verify the customer with list_customers / lookup_company and confirm the amounts with the user before issuing. That is clear when-to-use context naming actual sibling tools, but there is no guidance on when NOT to use it (e.g. versus add_manual_invoice or cancel_invoice).

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