Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Mark issued invoices paid

mark_paid
Idempotent

Marks issued invoices as paid on a specified date, updating each invoice file and returning its summary line. Use after checking a bank statement; repeating the call keeps the same paid state.

Instructions

Mark issued invoices (money received from customers) as paid on a given date, e.g. after checking a bank statement. Updates ~/.ucetka/invoices/.json and returns the updated summary line of each invoice.

Idempotent: repeating the call sets the same state; a different paid_date overwrites the stored one. Invoices are processed in order and the call stops at the first unknown number (earlier ones stay paid). It does not check the current state, so do not use it on a cancelled invoice. For received invoices (expenses) use mark_expense_paid; for tax or insurance payments to authorities use record_payment.

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": {
      "numbers": "<numbers>"
    },
    "name": "mark_paid"
  }
}

Input Schema

NameRequiredDescriptionDefault
numbersYesOne or more issued invoice numbers, e.g. ['2610001', '2610002'].
paid_dateNoPayment date YYYY-MM-DD applied to all listed invoices, or the literal 'due' to use each invoice's own due date. Omitted = today.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / numbers / description
      Previous value: -"Čísla faktur."New value: +"One or more issued invoice numbers, e.g. ['2610001', '2610002']."
    • changedInput schema / properties / paid_date / description
      Previous value: -"Datum úhrady YYYY-MM-DD. Default dnes; 'due' = ke dni splatnosti každé faktury."New value: +"Payment date YYYY-MM-DD applied to all listed invoices, or the literal 'due' to use each invoice's own due date. Omitted = today."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing ordering and partial-failure behavior ("processed in order and the call stops at the first unknown number (earlier ones stay paid)"), that it skips state validation, and the on-disk target file. The overwrite semantics of a second paid_date add real behavioral context rather than just restating idempotentHint=true.

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?

Front-loaded with verb and scope, then behavioral caveats, then sibling routing, each on its own sentence with no filler. The bank-statement example is the only flourish and it earns its place by anchoring the typical trigger.

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?

An output schema exists so return values needn't be explained, yet the description still notes it returns the updated summary line. Combined with partial-failure semantics and cancelled-invoice exclusion, an agent has everything needed to invoke and handle results safely.

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 documents both parameters, including the 'due' literal and the today default, so the baseline is 3. The description only adds the overwrite consequence of a differing paid_date, not new syntax or format meaning.

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 ("Mark issued invoices ... as paid") plus scope ("issued" = money received from customers), which distinguishes it from mark_expense_paid and record_payment without opening any schema. The parenthetical disambiguates issued vs received invoices directly in the first line.

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 an explicit scenario ("after checking a bank statement"), an explicit prohibition ("do not use it on a cancelled invoice"), and routes two alternatives to named siblings: mark_expense_paid for expenses and record_payment for tax/insurance. When-to-use, when-not-to-use, and alternatives are all present.

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