Skip to main content
Glama
ComplyEaze Bridge: TallyPrime MCP server for Claude Desktop

ComplyEaze Bridge: TallyPrime MCP server for Claude Desktop

Official

balance_sheet

Read-only

Retrieve a TallyPrime Balance Sheet for a date range, with each primary group's closing balance and Profit & Loss carried result, verified against Tally's own statements.

Instructions

Return the Balance Sheet for a date range, derived from Tally's native Trial Balance: one line per reserved Balance Sheet primary group (Capital Account, Loans (Liability), Current Liabilities, Suspense A/c, Branch / Divisions, Fixed Assets, Investments, Current Assets, Misc. Expenses (ASSET)), each the signed closing balance at to (a debit negative), and result.profit_and_loss: the Profit & Loss A/c ledger's closing and the carried result (that closing plus every P&L ledger's closing; in a part-year window the year's earlier result sits in that ledger). The top-level lines is null while carried is not established, so a derived line is never shown as the statement. Reads the Trial Balance, the group tree, Tally's own Balance Sheet and its Profit and Loss inside one company, mode and book-extent bracket; requires one INR currency master and supported date boundaries. Each line's amount has sum (of the amounts Tally returned), present_count and empty_count. A result is established only if every ledger is classified (a ledger under a user-created primary group, or whose group chain is incomplete, is listed in unclassified, up to 100, with unclassified_total), no Stock-in-Hand ledger carries an amount, and Tally's own Balance Sheet for the window ties line for line to the derived one (balance_sheet_gate). Otherwise it is not_established with a reason (unclassified_ledger_carries_an_amount, closing_stock_not_derivable_from_trial_balance, profit_and_loss_ledger_not_returned, tally_balance_sheet_differs); for that reason lines names the lines that did not tie. On the one book measured, Tally's own Balance Sheet export left out the Difference in opening balances line its screen showed: when the export's lines do not sum to zero the result carries tally_balance_sheet_sides (the credit and debit totals), the first line says so, and nothing is established (tally_balance_sheet_does_not_balance when no other reason applies). The top-level state is observed only while carried is established, else not_established with the nested reason. With integrated inventory and no opening stock, Tally's own Profit and Loss Less: Closing Stock is used (not in Current Assets) and shown in closing_stock, only if that one figure ties Current Assets, this line and Cost of Sales, and the lines sum to zero (one book seen); otherwise a book with stock items refuses. A Tally line with an amount and no derived counterpart (a heading) refuses. Tally's statements name no company; the checks around the read bind them. The gate has been measured over one full year on one book and one month on another; a window spanning more than one financial year is unmeasured. Each call appends metadata-only receipt lines (tool, company, counts, request and response fingerprints; no book content) to ComplyEaze Bridge's local log on this computer; it writes nothing to Tally.

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": {
      "company_guid": "<company_guid>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "balance_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe last day of the date range, included (YYYYMMDD or YYYY-MM-DD).
fromYesThe first day of the date range, included (YYYYMMDD or YYYY-MM-DD).
company_guidYesThe company's company_guid, as list_companies returns it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.3
    • addedInput schema / properties / company_guid / description
      Added value: +"The company's company_guid, as list_companies returns it."
    • addedInput schema / properties / from / description
      Added value: +"The first day of the date range, included (YYYYMMDD or YYYY-MM-DD)."
    • addedInput schema / properties / to / description
      Added value: +"The last day of the date range, included (YYYYMMDD or YYYY-MM-DD)."
  2. First observedv0.4.1

TDQS

A4.4/5.0
Behavior5/5

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

Annotations declare a safe read; the description goes far beyond by disclosing the gate mechanism, the full set of `not_established` reasons, the unclassified-ledger cap of 100, the closing-stock tie-out, and the receipt-logging side effect with the explicit note that nothing is written to Tally. This is exactly the contextual depth a read tool with no output schema needs.

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

Conciseness2/5

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

The purpose is front-loaded, but the body is a dense, run-on block with heavy parenthetical nesting that is hard for an agent to parse in one pass. For a three-parameter read tool this is substantially over-sized; the gate, refusal, and receipt details could be structured far more tightly.

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 return-value burden, and it does: `lines`, `carried`, per-line `amount` breakdown (`sum`/`present_count`/`empty_count`), `unclassified`/`unclassified_total`, `closing_stock`, `state`, and `tally_balance_sheet_sides` are all explained. Nothing an agent needs in order to interpret a 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?

Schema coverage is 100%, so baseline is 3, but the description adds real semantics: `to` is the signed closing balance date with debits negative, the range must be supported date boundaries, and `company_guid` scopes to one company/mode/book-extent bracket. It does not elaborate on the accepted date formats beyond the schema pattern.

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 verb and resource ("Return the Balance Sheet for a date range") and immediately states its derivation (Tally's native Trial Balance) plus exactly what a line represents. The embedded `profit_and_loss` result is spelled out, which cleanly separates it from the sibling profit_and_loss and trial_balance tools.

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 concrete preconditions (one INR currency master, supported date boundaries, single company/mode/book-extent bracket) and explicit refusal situations (a Tally heading with no derived counterpart, a book with stock items when closing stock cannot be tied). It does not explicitly name alternative tools to use instead, keeping it below a 5.

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