Skip to main content
Glama

mechacut

ledger_summary

Monthly rollup of a signed journal with a RUNNING BALANCE chain: every month between first and last entry is emitted (an empty month still carries the balance — no holes in a chain). Exact Decimal, cent-level only: sub-cent and grouped forms refused with a pointer, zero entries and zero amounts refused by name, calendar beyond 1200 months refused, never truncated. Sign is the direction: + inflow, - outflow. Free.

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": {
      "entries": "<entries>"
    },
    "name": "ledger_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
entriesYes
opening_balanceNocarryforward in, same form as amount (default '0')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description does the heavy lifting well: it discloses that empty months are still emitted, that output is never truncated, that invalid amounts are refused 'by name', and the sign convention. Gaps remain: it never states the tool is non-mutating/pure ('Free' is ambiguous) and gives no shape for the returned rows beyond 'month carries balance'.

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?

Front-loaded with the core behavior (monthly rollup with running balance) before the constraint catalog, and no sentence is filler. The dense clause-chaining ('refused with a pointer ... refused by name ... refused, never truncated') makes it harder to scan than it needs to be.

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 no-output-schema, no-annotation tool, the description covers the essential contract: emission rule, precision rule, refusal set, no truncation, sign semantics. Missing pieces are the read-only/non-mutating guarantee and any indication of the returned record structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%, so description must compensate — and it does for the amount/opening_balance semantics: signed Decimal, cent-level only, + inflow / - outflow, sub-cent and grouped forms refused. It does not mention opening_balance by name or restate the ISO date format, leaving that half to the schema.

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?

Names a specific verb and resource — 'Monthly rollup of a signed journal with a RUNNING BALANCE chain' — and even specifies the output granularity (one row per month, empty months included). It doesn't explicitly route against a sibling such as ledger_apply_payments, but the 'rollup/summary' framing is distinctive enough that an agent can place it without opening the schema.

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 rather than stated: the refusal rules (sub-cent, grouped, zero, >1200 months) tell the agent what inputs are invalid and that a 'pointer' will be offered elsewhere, which hints at a workflow. There is no explicit when-to-use/when-not-to-use statement or named alternative, so guidance remains inferred.

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.