Skip to main content
Glama

accounting.balance

Read-onlyIdempotent

Validates that total debits equal total credits in journal entry lists, returning balance status, both totals, and absolute difference.

Instructions

분개 목록의 차변 합계와 대변 합계가 같은지 검증한다. entries 는 {account, debit, credit} 항목의 목록이며 금액은 Decimal 문자열, 비어 있으면 0 으로 본다. 반환값은 balanced 여부, 두 합계, 차이의 절댓값(diff). account 는 합계에 쓰이지 않으므로 계정별 잔액 검증에는 쓸 수 없다.

Input Schema

NameRequiredDescriptionDefault
entriesYes

Output Schema

NameRequiredDescriptionDefault
diffYes
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
balancedYes
debit_totalYes
credit_totalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world behavior, so the safety profile is covered. The description adds real substance beyond them: empty entries are treated as zero, amounts are Decimal strings, and the account field is inert — all behaviors an agent would otherwise have to guess.

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 the purpose, then input shape, then return values, then the scope caveat. Short Korean sentences with no filler; the caveat is placed last where it reads as a qualifier rather than burying the main point.

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?

The tool is a single-parameter validator with an output schema, so return-value documentation is not strictly required, and the description supplies it anyway plus input semantics and scope limits. Nothing an agent needs to invoke it correctly is missing.

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 0% and the schema only says 'array of objects', so the description carries the burden and largely meets it: it specifies the {account, debit, credit} item shape, the Decimal-string amount format, and the zero-default for empty values. It does not address optionality of debit/credit or what additional keys do, leaving a modest gap.

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: validating that the debit total and credit total of a journal-entry list match. It also scopes itself out of per-account balance checking, which separates it from the other accounting.* tools such as accounting.income_statement and accounting.ratios.

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

Usage Guidelines4/5

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

The closing sentence gives an explicit when-not-to-use: the account field is ignored in the totals, so it cannot verify per-account balances. That is strong exclusion guidance, but no named alternative is offered for the per-account case.

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

Deploy Server

Other Tools