Skip to main content
Glama

Prove the ledger balances

trial_balance

Total the debits and the credits for a period and prove they are equal to the minor unit. When they are not, name the entries whose own legs do not add up and the source document behind each. Free and unlimited.

Input Schema

NameRequiredDescriptionDefault
toYesLast day of the period, YYYY-MM-DD, inclusive
fromYesFirst day of the period, YYYY-MM-DD
currencyNoNeeded when the period holds documents in more than one currency. Currencies are never added together

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the out-of-balance behavior (it returns the offending entries plus their source documents) and the cost profile ('Free and unlimited'), which is genuinely useful operational context. It stops short of describing return shape, ordering, or whether results are scoped per currency, so it does not reach a 5. The read-like framing sits in mild tension with readOnlyHint=false, but the text never asserts that nothing is modified.

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?

Three tight sentences, front-loaded with the primary action and its result, then the failure-path behavior, then cost. Nothing is redundant. Minor deduction only because 'prove they are equal to the minor unit' is dense phrasing that reads awkwardly for an agent.

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 three-parameter read-style computation with full schema coverage and no output schema, the definition tells the agent what the operation does, what it emits on failure, and that it is unmetered. Missing only comparative guidance against sibling tools, which is the one thing an agent would still have to guess.

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%, so all three parameters are already documented in the schema, including the multi-currency caveat. The description's mention of 'for a period' and 'minor unit' echoes that without adding format or semantics beyond the schema. Baseline 3 applies.

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?

States a specific verb-and-resource pair: total debits and credits for a period and prove they are equal. It also describes the secondary output (naming unbalanced entries and their source documents), which makes the tool's identity as a trial-balance check unmistakable. It does not explicitly contrast itself with siblings such as ledger_report or ledger_lines, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no named alternative. An agent cannot tell from the description whether this should be run before month_close or instead of ledger_report, nor whether a period must be closed first. Only the implicit signal 'for a period' hints at usage.

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.