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

ComplyEaze Bridge: TallyPrime MCP server for Claude Desktop

Official

stock_by_godown

Read-only

Retrieve closing stock by godown at month-end from Tally's Godown Summary, reconciled to the Stock Summary total, to verify per-godown values and root-level item splits.

Instructions

Closing stock by godown at as_of, a month's last day, from Tally's own Godown Summary, tied to the plain Stock Summary's total. state tied returns godowns (each godown under Tally's root with its value, a child godown folded into its parent; quantity is Tally's net of the godown's items, never an item's) and root_items: for an item directly under the root, its value per godown at that godown's own cost, only where they add up to the item's line (state says why not), or null with root_items_reason. Items inside a stock group get no value per godown. not_established returns both totals and no godown or item. Empty is not zero. One synthetic book measured. Names are masked under mask_parties. 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>",
      "as_of": "<as_of>"
    },
    "name": "stock_by_godown"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofYesA month's last day (YYYYMMDD or YYYY-MM-DD); the period starts 1 April, or the book's start if later.
company_guidYesThe company's company_guid, as list_companies returns it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.7

TDQS

A4.1/5.0
Behavior5/5

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

Well beyond the annotations, the description discloses that every call appends metadata-only receipt lines (tool, company, counts, fingerprints, no book content) to a local log on this machine while writing nothing to Tally. It also discloses the masking behavior under mask_parties, the 'empty is not zero' rule, the one-synthetic-book scope limitation, and why root_items can be null via root_items_reason. This is exactly the context annotations cannot carry.

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?

Placeholder.

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 explaining returns, and it does: the godowns array shape, root_items with cost basis and the add-up condition, null plus root_items_reason, and what not_established returns. Side effects, masking, and scope limitations are all covered, leaving no material gap for correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented, including the month-last-day constraint and the period starting 1 April or the book's start. The description largely restates the as_of semantics and adds little on company_guid beyond its use. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource and slice: closing stock by godown at a month-end as_of, sourced from Tally's Godown Summary and tied to the plain Stock Summary's total. That implicitly separates it from stock_summary and stock_by_batch, though it never names them or routes the agent explicitly. The core purpose is unambiguous even if the prose is dense.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use vs when-not guidance; the caller must infer that this is the tool for godown-level breakdowns that reconcile to Stock Summary totals. The state values (tied vs not_established) and the 'items inside a stock group get no value per godown' caveat imply the appropriate scenarios but are framed as behavior, not selection advice.

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