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.

Balance sheet

balance_sheet
Read-only

Balance sheet as of a date: assets, liabilities and equity, with the balanced check. The financial year closes by arithmetic, not by a journal: financialYear is the year asOf falls in, and equity lines whose code starts with an em-dash (synthetic: true) are computed lines, not accounts; nothing posts to them and they have no ledger. — 'Profit for the year' is revenue minus expenses from financialYear.start to asOf (equal to income_statement's net income over those dates). With equityLayout 'retained_earnings' (Sdn Bhd, or type not set), —E 'Profit from earlier years' is the profit of every entry before the year start. With 'capital_account' (sole proprietor or partnership), —C 'Capital at start of year' is capital and drawings before the year plus earlier years' profit, and each equity account line shows this year's movement only (from = the year start). Every other line is the account's balance at asOf; the lines add up to totalEquity. An optional comparison sets one date against another (two positions, not a period): compare 'previous_month_end', 'previous_year_end' or 'same_date_last_year', or an explicit compareAsOf. It returns both positions and, per line and total, deltaCents and deltaPct (server-side, integer cents): the movement between the two dates. deltaPct is null when the earlier balance is zero and is measured against the absolute earlier balance. Across two financial years, current and previous are each date's own sheet, while the equity variance splits both at the earlier date's year start (a note says so). points gives both dates, the days between them and whether either is still open; notes states the basis, including a warning if either sheet does not 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": "balance_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNo
compareNoA named earlier point (a single date, not a range). Omitted: no comparison.
compareAsOfNoAn explicit earlier date to compare the position against (overrides `compare`).

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. Changed1 schema field changed
    • changedInput schema / properties / compare / description
      Previous value: -"Named comparison POINT (a single earlier date, not a range). Omit for no comparison."New value: +"A named earlier point (a single date, not a range). Omitted: no comparison."
  3. Changed2 schema fields changed
    • addedInput schema / properties / compare
      Added value: +{
      +  "description": "Named comparison POINT (a single earlier date, not a range). Omit for no comparison.",
      +  "enum": [
      +    "previous_month_end",
      +    "previous_year_end",
      +    "same_date_last_year"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / compareAsOf
      Added value: +{
      +  "description": "An explicit earlier date to compare the position against (overrides `compare`).",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description adds substantial behavior beyond them: synthetic equity lines are computed and never posted to, deltaCents/deltaPct are computed server-side in integer cents, deltaPct is null when the earlier balance is zero, and notes warn when a sheet does not balance. That is exactly the kind of non-obvious semantics an agent cannot get from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body is a dense wall of domain detail with heavy backtick notation, and a meaningful share of it (the equityLayout branching, the cross-financial-year variance split) is reference material rather than call-time guidance. It is informative but not economical; an agent must parse a lot to extract the two or three facts it needs to invoke the tool.

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?

There is no output schema, so the description carries the full burden of describing returns, and it does: both positions, per-line and total deltaCents/deltaPct, the points object with dates and open status, and the notes basis including the balance warning. For a report of this complexity, nothing an agent needs in order to call it or interpret the result 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?

Adds meaning beyond the 67%-covered schema: asOf determines financialYear as the year the date falls in, and compare is explicitly a single earlier date rather than a range, with compareAsOf overriding it. The one blemish is that it discusses an `equityLayout` parameter ('retained_earnings' / 'capital_account') that does not appear in the input schema, which could send an agent looking for a parameter it cannot set.

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 specific resource and scope: 'Balance sheet as of a date: assets, liabilities and equity, with the balanced check.' It also distinguishes itself from the sibling income_statement by stating that '—' Profit for the year equals income_statement's net income over the same dates, so an agent can tell the two reports apart without opening either schema.

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?

Gives clear conditional guidance for the comparison mode ('two positions, not a period') and for the two equity layouts, which is real when-to-use context. It stops short of explicitly routing the agent away from alternatives such as trial_balance or business_snapshot, so it is strong context rather than full when/when-not 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