Skip to main content
Glama

Journal Entry Balance Check

journal_entry_check
Read-onlyIdempotent

Check a journal entry before an agent posts it to the books. Send the lines, each with an account and a debit or a credit. Get back whether debits equal credits to the cent, both totals and the difference, and every line problem: a line with both a debit and a credit, a line with neither, an amount with more than 2 decimals, an entry with fewer than 2 lines or with only one side, and lines that look duplicated (same account, side and amount). Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/journal-entry-check). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

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": {
      "lines": "<lines>"
    },
    "name": "journal_entry_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesEntry lines, up to 200.
entry_dateNoOptional entry date, YYYY-MM-DD (echoed and signed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, and the description adds substantial context beyond them: no data retention, no model or network, signed responses with a verification URL, an hourly rate limit, input restrictions on label text (emails, URLs, long digit runs refused), and a non-advice disclaimer. It also enumerates the error envelope (ok=false with bad input, too large, hourly limit).

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 purpose, then the input contract, then the return contract, then side effects and restrictions – a logical order with no filler sentences. The rule enumeration and the long list of answer field names make it dense, and a couple of clauses ('Free. No model, no network') could be tightened, but every sentence carries information.

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?

With no output schema, the description carries the return contract and does list answer field names plus the error shape, which is more than most tools provide. However, the field names (verdict, result, rule, does_not, observation, signature, verify) are named without explaining what each contains, leaving some return-value ambiguity.

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 100%, so the baseline is 3, but the description adds business semantics the schema cannot express: each line must carry an account and exactly one of debit or credit, and it spells out the validation rules for lines with both, neither, excess decimals, single-sided entries, and duplicates. It does not clarify the echoed entry_date or memo handling beyond what the schema says.

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 ('Check a journal entry before an agent posts it') plus the exact scope of the check (debits equal credits to the cent, per-line problems). This is clearly distinguishable from sibling checks like vat_number_check or spend_limit_check, which validate entirely different objects.

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 phrase 'before an agent posts it to the books' establishes the usage context: pre-posting validation gating a write. It does not name an alternative tool or state when-not to use it, so it stops short of full routing guidance.

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.

Resources