Skip to main content
Glama

Taokeh MCP server

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as mcp. If you published it, claim ownership there.

Trial balance

trial_balance
Read-only

Your trial balance as of a date (default today, Malaysia time) — the same figures as Reports → Trial Balance. Each row is an account with a posting on or before asOf: code, name, type, debit / credit (the account's NET posting placed on the side it landed — a contra account shows on its natural side, so the debit column adds up to the credit column) and balance (the account's balance signed by its statement section — positive is normal: a debit balance for assets and expenses, a credit balance for liabilities, equity and revenue; it equals general_ledger's closing for that account from the first entry to asOf). Accounts with nothing posted are left out, as on the page, and counted in accountsWithNoPostings. totals gives the debit and credit column sums and balanced (true when they agree to the sen). An entry dated after asOf is never included. There is no year-end closing journal in these books, so revenue and expense accounts carry their balance since the first entry — the balance_sheet tool closes the year by arithmetic; this tool does not.

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": "trial_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only establish that this is a safe read; the description goes far beyond that, explaining net-posting placement for contra accounts, the section-based sign convention for `balance`, the sen-level `balanced` check, that unposted accounts are omitted and merely counted, and that no year-end closing journal exists. These are exactly the non-obvious traits an agent needs to interpret the numbers correctly.

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?

Purpose and scope are front-loaded, and nearly every clause carries information (row fields, sign conventions, exclusions, totals). It is dense and parenthetical-heavy in the middle, with mild repetition between "as of a date" and "on or before `asOf`", but nothing is filler.

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 fully specifies the return shape — row fields (`code`, `name`, `type`, `debit`/`credit`, `balance`), `totals`, `accountsWithNoPostings`, and `balanced`. Combined with the cutoff behavior and the year-end caveat, an agent can call it and interpret results without further context.

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

Parameters5/5

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

Schema coverage is 0%, so the description must carry the parameter — and it does: it supplies the default (today), the timezone (Malaysia time), and the hard cutoff semantics that postings dated after `asOf` are never included. That is meaning the bare regex pattern in the schema cannot convey.

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?

"Your trial balance as of a date" names the verb and resource immediately and pins the output to a known reference (Reports → Trial Balance). It further distinguishes itself from general_ledger (whose closing balance it equals) and balance_sheet (which does the year-closing arithmetic this tool does not), so an agent can tell the three apart without opening schemas.

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 description clearly frames the tool as the point-in-time trial balance and explicitly contrasts it with balance_sheet's arithmetic year-close, giving enough context to pick correctly between them. It stops short of an explicit "use this when / not when" rule and never names general_ledger as an alternative for entry-level detail, leaving some inference to the agent.

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