Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Export income/expense book

export_book
Idempotent

Exports the yearly Czech cash-basis income and expense book as CSV and PDF, using paid invoices and paid expenses by payment date; returns totals and file paths.

Instructions

Export the yearly income and expense book (kniha příjmů a výdajů, the cash-basis tax record) as CSV (semicolon-separated, opens in Czech Excel) and PDF. Rows are only PAID issued invoices and PAID expenses, dated by payment date. Returns income, deductible expenses, their difference and both file paths.

Writes ~/Documents/Účetnictví/Přehledy//kniha_.csv and .pdf, overwriting previous versions, so repeating is safe. Does not run the import (call sync_invoices first if new PDFs were added) and contacts no network. Needs supplier config from ucetka init. Use tax_overview for estimates of tax due and export_vat_return for VAT filings.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoCalendar year of the book, e.g. 2025. Omitted = current year.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / year / description
      Previous value: -"Rok. Default letošní."New value: +"Calendar year of the book, e.g. 2025. Omitted = current year."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false; the description adds real context beyond them by naming the exact output path, disclosing that previous versions are overwritten so repeating is safe, and stating that no network is contacted. It does not explicitly restate that this is a write-to-disk operation beyond the overwrite note, which is the only minor gap.

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 first sentence front-loads what is produced and in what formats, followed by row scope, side effects, then prerequisites and alternatives — a sensible order. It is slightly dense but nearly every clause carries information an agent needs; nothing is redundant filler.

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?

Output schema exists, yet the description still summarizes the return contents (income, deductible expenses, difference, both file paths) and covers side effects, preconditions, and alternative tools. For a one-parameter export tool this leaves nothing material unspecified.

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?

With a single parameter at 100% schema coverage, the schema already documents `year`, its integer type and the 'omitted = current year' default. The description's mention of the 'yearly' book reinforces the parameter's meaning but adds no syntax or edge-case detail beyond the schema, so the 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?

States a specific verb (export) and a precisely scoped resource: the yearly cash-basis income/expense book, delivered as semicolon-separated CSV and PDF. It even characterizes which rows appear (paid issued invoices and paid expenses, dated by payment date), so the agent knows exactly what data it is producing.

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 prerequisites ('call sync_invoices first if new PDFs were added', 'Needs supplier config from `ucetka init`') and explicitly routes two alternatives to their own tools: tax_overview for tax-due estimates and export_vat_return for VAT filings. Both when-to-use and when-not-to-use are covered.

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