Skip to main content
Glama

Vygenerovat DPH podani

generate_vat_filing
DestructiveIdempotent

Vygeneruje NAVRH XML podani DPH za dany mesic nebo ctvrtleti: priznani k DPH (DPHDP3), kontrolni hlaseni (DPHKH1) nebo souhrnne hlaseni (DPHSHV). Mesicni platce zadava month, ctvrtletni platce (zdanovaci obdobi firmy v nastaveni) quarter 1-4; u ctvrtletniho platce je KH pravnicke osoby mesicni (za ctvrtleti vzniknou tri KH, odpoved ma submissions a khMonthly=true), fyzicke osoby ctvrtletni. Identifikovana osoba kontrolni hlaseni nepodava. XML se overi proti XSD Financni spravy. Podani se NIKAM neodesila - jen se pripravi a ulozi, odeslani (napr. datovkou) probiha vyhradne v dashboardu po kontrole uzivatelem. Vystup: souhrn (danova povinnost nebo nadmerny odpocet, radky priznani, oddily KH, lhuta), chyby a varovani, odkaz ke stazeni XML. Opakovane volani za stejne obdobi a druh podani PREPISE drivejsi neodeslany navrh; odeslane podani prepsat nejde. Bez companyId hlavni firma, pokud je platce DPH. Vychozi jen ze schvalenych dokladu. Doklady obdobi podle DUZP, bez DUZP podle data vystaveni (stejne jako get_vat_summary).

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>",
      "submissionType": "<submissionType>"
    },
    "name": "generate_vat_filing"
  }
}

Input Schema

NameRequiredDescriptionDefault
okecNoKod prevazujici cinnosti CZ-NACE pro priznani (c_okec)
yearYesRok, napr. 2026
monthNoMesic 1-12 (mesicni platce; u ctvrtletniho jen KH a SH za mesic). Zadej bud month, nebo quarter
quarterNoCtvrtleti 1-4 (jen ctvrtletni platce)
cisloUfoNoCislo financniho uradu (napr. 451 Praha); vychozi odhad z PSC sidla
companyIdNoId firmy z list_companies; vychozi hlavni firma platce DPH
includePendingNotrue = i neschvalene doklady, vychozi false
submissionTypeYespriznani = priznani k DPH, kontrolni = kontrolni hlaseni, souhrnne = souhrnne hlaseni (plneni do EU)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / month / description
      Previous value: -"Mesic 1-12"New value: +"Mesic 1-12 (mesicni platce; u ctvrtletniho jen KH a SH za mesic). Zadej bud month, nebo quarter"
    • addedInput schema / properties / quarter
      Added value: +{
      +  "description": "Ctvrtleti 1-4 (jen ctvrtletni platce)",
      +  "maximum": 4,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "year",
      -  "month",
      -  "submissionType"
      -]New value: +[
      +  "year",
      +  "submissionType"
      +]
  2. Changed7 schema fields changed
    • addedInput schema / properties / cisloUfo
      Added value: +{
      +  "description": "Cislo financniho uradu (napr. 451 Praha); vychozi odhad z PSC sidla",
      +  "maximum": 999,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / companyId / description
      Previous value: -"Id firmy z list_companies"New value: +"Id firmy z list_companies; vychozi hlavni firma platce DPH"
    • addedInput schema / properties / includePending
      Added value: +{
      +  "description": "true = i neschvalene doklady, vychozi false",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / okec
      Added value: +{
      +  "description": "Kod prevazujici cinnosti CZ-NACE pro priznani (c_okec)",
      +  "pattern": "^\\d{1,6}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / submissionType / description
      Previous value: -"priznani = priznani k DPH, kontrolni = kontrolni hlaseni"New value: +"priznani = priznani k DPH, kontrolni = kontrolni hlaseni, souhrnne = souhrnne hlaseni (plneni do EU)"
    • changedInput schema / properties / submissionType / enum
      Previous value: -[
      -  "priznani",
      -  "kontrolni"
      -]New value: +[
      +  "priznani",
      +  "kontrolni",
      +  "souhrnne"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "companyId",
      -  "year",
      -  "month",
      -  "submissionType"
      -]New value: +[
      +  "year",
      +  "month",
      +  "submissionType"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations the description discloses the non-obvious traits that matter: nothing is transmitted, XML is validated against the Financial Administration XSD, only approved documents are used by default, an identified person does not file a control statement, and a repeat call for the same period and type overwrites an unsent draft but never a sent one — consistent with destructiveHint=true and idempotentHint=true. The one gap is that it does not spell out what happens on validation failure or how the draft is stored/retrieved, but the overwrite and no-send semantics are exactly the context annotations cannot convey.

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?

The text is front-loaded with the purpose and submission types, then layers period rules, side effects, output and document-date semantics in a logical order with no filler. It is dense and long for a single paragraph, and the parenthetical about three KH per quarter is slightly convoluted, but nearly every clause carries an operational rule an agent needs.

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?

There is no output schema, and the description compensates by summarising the response (tax liability or overpayment, return lines, KH sections, deadline, errors and warnings, XML download link). Combined with the period rules, overwrite semantics and the DUZP-versus-issue-date convention tied to get_vat_summary, an agent has everything needed to call this correctly on the first attempt.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real business semantics on top: the month-vs-quarter exclusivity and payer-type dependence, the companyId default (main VAT-payer company), and the meaning of the default document set (approved only, implying includePending). It does not elaborate on okec or cisloUfo, which the schema already documents.

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?

The description opens with a precise verb+resource ('Vygeneruje NAVRH XML podani DPH') and immediately enumerates the three concrete artefacts it can produce (DPHDP3, DPHKH1, DPHSHV), which map directly onto the submissionType enum. An agent can distinguish this from get_vat_filing, submit_vat_filing or validate_vat_filing purely from the text.

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?

It states the selection rule between the two mutually exclusive period parameters (month for monthly payers, quarter 1-4 for quarterly payers) and the exception that a quarterly payer still files monthly KH. It also states the negative case clearly: the filing is never sent from here, dispatch happens in the dashboard, which steers the agent away from assuming a submit behaviour. Prerequisite (VAT payer) and default company behaviour are also given.

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