Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Record tax or insurance payment

record_payment

Records advance or settlement payments to income tax, ČSSZ, health insurance, or VAT authorities so tax overviews show what is paid and what remains.

Instructions

Record a payment the user made to an authority — an advance (záloha) or settlement (doplatek) of income tax, ČSSZ (social insurance), health insurance or VAT. tax_overview and advance_schedule use these to show what is paid and what remains.

Appends to ~/.ucetka/payments.json. Not idempotent: there is no duplicate check, so calling twice records the payment twice (there is no tool to delete one). Pays nothing and contacts no one. Returns a confirmation. For invoices paid by customers use mark_paid; for paid supplier invoices use mark_expense_paid.

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": {
      "kind": "<kind>",
      "amount": "<amount>"
    },
    "name": "record_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesWhat was paid: 'dpfo' = personal income tax, 'cssz' = ČSSZ social insurance, 'zp' = health insurance, 'dph' = VAT.
noteNoFree-text note, e.g. 'doplatek za 2025' (settlement for 2025).
amountYesAmount paid in CZK, positive, e.g. 4759.
periodNoFor a monthly advance: the month it covers, YYYY-MM, e.g. '2026-03'. Leave empty for a settlement (doplatek) or other one-off payment.
paid_onNoDate of the payment YYYY-MM-DD. Omitted = today.
tax_yearNoTax year the payment belongs to, e.g. 2025 for a settlement paid in 2026. Omitted = year of period if given, otherwise year of paid_on.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / amount / anyOf
      Previous value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  },
      -  {
      -    "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / amount / description
      Previous value: -"Zaplacená částka v Kč."New value: +"Amount paid in CZK, positive, e.g. 4759."
    • changedInput schema / properties / kind / description
      Previous value: -"dpfo = daň z příjmů, cssz = sociální, zp = zdravotní, dph = DPH."New value: +"What was paid: 'dpfo' = personal income tax, 'cssz' = ČSSZ social insurance, 'zp' = health insurance, 'dph' = VAT."
    • changedInput schema / properties / note / description
      Previous value: -"Např. 'doplatek za 2025'."New value: +"Free-text note, e.g. 'doplatek za 2025' (settlement for 2025)."
    • changedInput schema / properties / paid_on / description
      Previous value: -"Datum platby YYYY-MM-DD. Default dnes."New value: +"Date of the payment YYYY-MM-DD. Omitted = today."
    • changedInput schema / properties / period / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^\\d{4}-\\d{2}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / period / description
      Previous value: -"Měsíc, za který je měsíční záloha, YYYY-MM. U doplatků nevyplňovat."New value: +"For a monthly advance: the month it covers, YYYY-MM, e.g. '2026-03'. Leave empty for a settlement (doplatek) or other one-off payment."
    • changedInput schema / properties / tax_year / description
      Previous value: -"Za který rok (default rok platby)."New value: +"Tax year the payment belongs to, e.g. 2025 for a settlement paid in 2026. Omitted = year of period if given, otherwise year of paid_on."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the storage side effect (~/.ucetka/payments.json append), spells out the consequence of the declared non-idempotency (no duplicate check, double-call records twice, no delete tool exists), and reassures that it pays nothing and contacts no one. It even notes what is returned (a confirmation), which 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short blocks with zero filler: purpose first, then side effects and idempotency risk, then sibling routing. Every sentence carries operational information an agent would otherwise have to guess.

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 six-parameter mutation tool with an output schema, the definition covers purpose, storage target, non-idempotency hazard, minimal-return expectation and sibling disambiguation. Nothing material is missing for correct 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 the schema already defines kind enums, amount, period format and tax_year defaulting rules in detail. The description adds only the high-level advance-vs-settlement framing, which indirectly motivates period/tax_year but does not explain any parameter beyond what the schema says.

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 and resource ('Record a payment the user made to an authority') and enumerates the exact scope (advance/settlement of income tax, ČSSZ, health insurance, VAT). It also names the two sibling tools with adjacent semantics (mark_paid, mark_expense_paid) and says which domain each covers, so the agent can separate them without reading schemas.

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 positive conditions (payments to an authority, záloha vs doplatek) and explicit negatives ('For invoices paid by customers use mark_paid; for paid supplier invoices use mark_expense_paid'), naming the alternative for each exclusion. It also states downstream consumers (tax_overview, advance_schedule), which reinforces the use case.

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