Skip to main content
Glama

Get trial balance

get-trial-balance
Read-onlyIdempotent

One entity's trial balance from the live ledger: each account's posted debits, credits and net over a window.

WHEN TO USE:

  • Month-end review: does the ledger foot, and what does each account carry at the month's end?

  • Checking a balance against a bank statement or the source system before reconciling

  • One department's or project's figures: dimension_type with dimension_member_id

PARAMETERS:

  • start_date / end_date (optional, YYYY-MM-DD): the posting window, both inclusive; omit the start for inception to date

  • entity_id (optional): omit for the group parent

  • dimension_type + dimension_member_id (optional, together): only the lines that carry that member; unallocated for the lines no member of the axis tags

RETURNS: rows: each account's account_id, account_code, account_name, trait, account_type, total_debits, total_credits and net_balance (debit-positive), with total_debits and total_credits for the whole. Amounts are in dollars; only posted entries count. sliced is true for a dimension slice, which need not foot.

RELATED TOOLS:

  • get-mapped-trial-balance — the same balances rolled up to reporting concepts

  • get-account-register — the lines behind one account's balance

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": "get-trial-balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNoYYYY-MM-DD.
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.
start_dateNoYYYY-MM-DD.
dimension_typeNoA management dimension axis, with dimension_member_id.
dimension_member_idNoThe member whose lines to sum, or `unallocated`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior on top: only posted entries count, amounts are in dollars, net_balance is debit-positive, and a dimension slice may legitimately not foot. That last caveat is exactly the kind of non-obvious trait annotations could never convey.

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?

Header-delimited sections are front-loaded with purpose, then usage, parameters, returns, and related tools. Every line carries information – even the RETURNS block earns its place because no output schema exists.

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?

With no output schema, the description compensates by enumerating every returned field and the totals row, and it flags the sliced/does-not-foot edge case. Five optional parameters are all explained, and the interaction with sibling tools is covered, leaving no obvious gap for correct invocation.

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 already 100%, yet the description still adds meaning beyond it: dates are inclusive, omitting start_date means inception to date, the dimension pair must be supplied together, and 'unallocated' covers lines no member tags. It does not, however, explain behavior for conflicting combinations (e.g., a member id without a type) or what happens with a start after an end.

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?

Opens with a precise verb and resource plus scope: 'One entity's trial balance from the live ledger,' and names which figures are returned (posted debits, credits, net) over a defined window. It is clearly separable from get-mapped-trial-balance (rolled-up) and get-account-register (line detail), so an agent can pick it without opening a schema.

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?

The WHEN TO USE block gives three concrete, mutually distinct scenarios (month-end review, reconciling to a bank statement, dimension slicing), and RELATED TOOLS names the two nearest alternatives along with how they differ. When-not guidance is implicit in the alternative descriptions rather than stated as an exclusion, but the routing is unambiguous.

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.