Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Mark expense paid

mark_expense_paid

Marks a recorded expense invoice as paid and stores the paid date, so tax-evidence bookkeeping counts the expense for income tax. Fails if already paid or missing.

Instructions

Mark a received invoice (expense) as paid. Matters for bookkeeping with actual expenses (daňová evidence), where an expense counts for income tax only once paid; flat-rate users rarely need it.

Updates ~/.ucetka/expenses/<expense_id>.json. Not idempotent: fails if the expense is already marked paid (the stored date is kept) or does not exist. Returns a confirmation. For issued invoices paid by customers use mark_paid; for tax or insurance payments use record_payment; to set the date when first recording an expense pass paid_date to add_expense.

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": {
      "expense_id": "<expense_id>"
    },
    "name": "mark_expense_paid"
  }
}

Input Schema

NameRequiredDescriptionDefault
paid_dateNoDate the expense was paid, YYYY-MM-DD. Omitted = today.
expense_idYesID of a recorded expense = its PDF name without extension, e.g. '2603002'.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / expense_id / description
      Previous value: -"ID výdaje (název PDF bez přípony)."New value: +"ID of a recorded expense = its PDF name without extension, e.g. '2603002'."
    • addedInput schema / properties / expense_id / pattern
      Added value: +"^[A-Za-z0-9_-]{1,40}$"
    • changedInput schema / properties / paid_date / description
      Previous value: -"Datum úhrady YYYY-MM-DD. Default dnes."New value: +"Date the expense was paid, YYYY-MM-DD. Omitted = today."
  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?

Annotations already declare idempotentHint=false and destructiveHint=false, but the description goes further: it names the storage location being mutated, states that a repeat call fails while the stored date is kept, and states failure for a nonexistent expense. That is exactly the failure semantics an agent needs before retrying.

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?

Purpose and audience come first, then side effects, then sibling routing, each in a single dense clause. No sentence is filler, including the file path and the idempotency note, both of which change agent behavior.

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?

With an output schema present, return values need only a nod, which 'Returns a confirmation' supplies. For a two-parameter state mutation the description covers target, precondition, failure modes, and alternatives without leaving gaps.

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 100%, with paid_date already documented as YYYY-MM-DD defaulting to today and expense_id defined as the PDF filename stem. The description only alludes to paid_date indirectly via add_expense, adding little beyond the schema, so baseline 3 applies.

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?

Specific verb and resource: 'Mark a received invoice (expense) as paid', and it immediately scopes the audience ('actual expenses (daňová evidence)'). It distinguishes itself from mark_paid by naming the exact dividing line: received expenses vs issued invoices paid by customers.

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?

Provides explicit routing: mark_paid for issued invoices paid by customers, record_payment for tax/insurance, and paid_date on add_expense if the date should be set at record time. It also states when the tool is rarely needed (flat-rate users), which is a genuine when-not-to-use signal.

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