Skip to main content
Glama

Upravit doklad

update_document
DestructiveIdempotent

Opravi udaje dokladu: datum, DUZP, castky po sazbach DPH, typ, firmu, poznamku. Zmena rozpadu DPH dopocita zaklad a DPH celkem. Zmena samotne castky (totalAmount) u dokladu s jednou sazbou DPH prepocita zaklad a DPH shora z nove castky; u vice sazeb zustane rozpad beze zmeny a odpoved vrati warning s rozdilem, rozpad pak opravte po sazbach. Cizi mena se prepocte kurzem CNB k DUZP. Zmena se zapise do historie dokladu.

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": {
      "id": "<id>"
    },
    "name": "update_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID dokladu z list_documents
noteNoInterni poznamka (nahradi stavajici)
taxDateNoDUZP YYYY-MM-DD, null = smazat
currencyNoMena ISO 4217, napr. CZK, EUR, USD
companyIdNoId firmy z list_companies, null = odebrat firmu
receiptDateNoDatum vystaveni YYYY-MM-DD
totalAmountNoCastka celkem vcetne DPH v mene dokladu (zaporna u dobropisu)
documentTypeNoTyp dokladu; vyuctovani = vyuctovani prodeje vstupenek nebo komisniho prodeje, nejde do odpoctu DPH; prijmovy_doklad = uctenka nebo pokladni doklad vystaveny vlastni firmou (prijem s DPH na vystupu, neni vydana faktura)
vatRate0BaseNoZaklad bez DPH (0 % / osvobozeno)
vatRate12VatNo
vatRate15VatNo
vatRate21VatNo
vatRate12BaseNo
vatRate15BaseNo
vatRate21BaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / documentType / description
      Previous value: -"Typ dokladu; vyuctovani = vyuctovani prodeje vstupenek nebo komisniho prodeje, nejde do odpoctu DPH"New value: +"Typ dokladu; vyuctovani = vyuctovani prodeje vstupenek nebo komisniho prodeje, nejde do odpoctu DPH; prijmovy_doklad = uctenka nebo pokladni doklad vystaveny vlastni firmou (prijem s DPH na vystupu, neni vydana faktura)"
    • changedInput schema / properties / documentType / enum
      Previous value: -[
      -  "faktura",
      -  "uctenka",
      -  "pokladni_blok",
      -  "dobropis",
      -  "zalohova_faktura",
      -  "vydana_faktura",
      -  "proforma",
      -  "objednavka",
      -  "smlouva",
      -  "jine",
      -  "jsd",
      -  "vyuctovani"
      -]New value: +[
      +  "faktura",
      +  "uctenka",
      +  "pokladni_blok",
      +  "dobropis",
      +  "zalohova_faktura",
      +  "vydana_faktura",
      +  "proforma",
      +  "prijmovy_doklad",
      +  "objednavka",
      +  "smlouva",
      +  "jine",
      +  "jsd",
      +  "vyuctovani"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / documentType / enum
      Previous value: -[
      -  "faktura",
      -  "uctenka",
      -  "pokladni_blok",
      -  "dobropis",
      -  "zalohova_faktura",
      -  "vydana_faktura",
      -  "objednavka",
      -  "smlouva",
      -  "jine",
      -  "jsd",
      -  "vyuctovani"
      -]New value: +[
      +  "faktura",
      +  "uctenka",
      +  "pokladni_blok",
      +  "dobropis",
      +  "zalohova_faktura",
      +  "vydana_faktura",
      +  "proforma",
      +  "objednavka",
      +  "smlouva",
      +  "jine",
      +  "jsd",
      +  "vyuctovani"
      +]
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses that VAT breakdowns are recomputed, that single-rate totalAmount changes recalculate base and VAT from the new amount, that multi-rate changes leave the breakdown untouched and return a warning with the difference, that foreign currency is converted at the CNB rate to the tax date, and that changes are logged to document history. That is substantial behavioral context an agent could not infer from the annotations alone.

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?

Four dense sentences, front-loaded with the field list and then ordered by consequence (recompute, warning, currency, history). Every sentence carries information; only minor cost is the compressed Czech phrasing of the multi-rate branch, which takes a second read.

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 15-parameter mutation tool with no output schema, the description covers the risky behavior (recompute side effects, warning return, history logging) that an agent most needs before calling. It stops short of describing permissions or reversibility, but relative to the annotations and schema richness it is close to complete.

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 60%, and the description does add real meaning for totalAmount (sign convention is in schema, but the recompute/ warning behavior is not) and for currency (CNB conversion to tax date). Other parameters map only loosely, and several VAT base/VAT parameters are neither documented in the schema nor mentioned in the description, leaving a gap the description does not close.

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 opens with a concrete verb+resource ('Opravi udaje dokladu') and enumerates the editable field groups (date, tax date, VAT-rate amounts, type, company, note), so an agent immediately knows this is a document-edit tool. It is distinguishable from get_document/delete_document by the field list, though it never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied through the totalAmount branches and the instruction 'rozpad pak opravte po sazbach', which is actionable follow-up guidance. However, there is no statement of when to prefer this over alternatives such as correct_vat_filing or approve_document, nor any prerequisites or when-not-to-use conditions.

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