Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Export quarterly VAT filings

export_vat_return

Prepare quarterly VAT filings as EPO XML files for Moje daně: VAT return, control statement, and EC sales list when EU services apply, returning computed form rows and file paths.

Instructions

Prepare the quarterly VAT filings as EPO XML files: VAT return (DPHDP3), control statement (DPHKH1) and, only if there were EU services, the EC sales list (DPHSHV). Returns the computed form rows and file paths.

Side effects: first runs the same import as sync_invoices (new PDFs are added to the ledger and the import-issue lists are rewritten), then writes into ~/Documents/Účetnictví/Přehledy//_Q_přehledy/{DPH,KH,SH}/. File names carry a timestamp, so every non-preview call adds a new set of files instead of overwriting. Nothing is filed: the user uploads the files on Moje daně (EPO). Requires a quarterly VAT payer and the epo section in ~/.ucetka/tax.yaml; fails on documents that cannot be classified (e.g. an EU supplier without DIČ, VAT ID). Resolve list_import_issues first. For a quick look at VAT due use tax_overview.

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": {
      "year": "<year>",
      "quarter": "<quarter>"
    },
    "name": "export_vat_return"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesCalendar year of the VAT quarter, e.g. 2026.
previewNoTrue = only compute and show the form rows, write no XML files (the import sync still runs). Default False.
quarterYesVAT quarter 1–4 (1 = January–March, … 4 = October–December).
filed_onNoFiling date YYYY-MM-DD written into the XML forms. Omitted = today.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / filed_on / description
      Previous value: -"Datum podání YYYY-MM-DD. Default dnes."New value: +"Filing date YYYY-MM-DD written into the XML forms. Omitted = today."
    • changedInput schema / properties / preview / description
      Previous value: -"True = jen spočítat a ukázat, nic neukládat."New value: +"True = only compute and show the form rows, write no XML files (the import sync still runs). Default False."
    • changedInput schema / properties / quarter / description
      Previous value: -"Čtvrtletí 1–4."New value: +"VAT quarter 1–4 (1 = January–March, … 4 = October–December)."
    • addedInput schema / properties / quarter / maximum
      Added value: +4
    • addedInput schema / properties / quarter / minimum
      Added value: +1
    • changedInput schema / properties / year / description
      Previous value: -"Rok."New value: +"Calendar year of the VAT quarter, e.g. 2026."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Despite annotations already flagging non-read-only and non-idempotent, the description adds high-value disclosure those hints cannot convey: the tool silently runs the same import as sync_invoices (adding PDFs and rewriting import-issue lists), writes to a specific directory, and timestamped filenames mean each non-preview call creates a new file set rather than overwriting. It also names concrete failure modes (unclassifiable documents, e.g. an EU supplier without DIČ/VAT ID) — exceptional for this corpus.

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 purpose and artifacts, then a compact 'Side effects:' block covering the riskiest behavior, then prerequisites — a sensible ordering. The filesystem path template is dense but functional; a bulleted layout would scan marginally faster, and the paragraph is long for a single block of prose.

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 mutating, multi-artifact export tool, everything an agent needs is present: what gets written, where, whether files overwrite, what prerequisites must hold, what to do first, and which sibling to use instead for a quick figure. Return values are noted briefly and the output schema carries the rest, so no gap remains that would cause a wrong invocation.

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% and preview/year/quarter/filed_on are all documented in the schema, including that preview leaves the import sync running, so the baseline is 3. The description reinforces the same idea ('every non-preview call adds a new set of files instead of overwriting') but adds no syntax, format, or defaulting detail the schema does not already carry.

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?

Names a specific verb (Prepare/Export) and resource (quarterly VAT filings) and enumerates the exact artifacts produced: DPHDP3, DPHKH1, and conditionally DPHSHV. The conditional rule for the EC sales list ('only if there were EU services') lets an agent predict output shape without opening the schema, and the tool is clearly distinguishable from export_book and tax_overview.

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 explicit prerequisites ('Requires a quarterly VAT payer and the `epo` section in ~/.ucetka/tax.yaml'), an ordering constraint ('Resolve list_import_issues first'), and an alternative route for a lighter need ('For a quick look at VAT due use tax_overview'). It also sets expectations about what happens after the call ('Nothing is filed: the user uploads the files on Moje daně'), removing the most likely misuse.

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