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

ComplyEaze Bridge: TallyPrime MCP server for Claude Desktop

Official

stock_by_batch

Read-only

Retrieve TallyPrime stock quantities by batch and godown for up to 20 item GUIDs at a specified month-end, with per-item states showing whether lines match closing stock.

Instructions

Tally's own Stock Query for 1 to 20 stock items by GUID: each item's quantity per godown and batch at as_of, a month's last day. Quantities only. Each item's state ties its lines to its closing in Tally's stock item list: tied, differs, not_comparable (why in not_comparable), no_stock (empty answer, zero closing) or no_movement (empty answer, no closing: not a finding of no stock); or item_not_found, name_unmeasured, refused (with code; an answer over 262,144 bytes, a chosen limit, refuses that item), not_read or not_sent: a failed send stops the reads and state is partial. godowns adds lines per godown and is compared with nothing. 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>",
      "items": "<items>"
    },
    "name": "stock_by_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofYesA month's last day (YYYYMMDD or YYYY-MM-DD); the period starts 1 April.
itemsYes1 to 20 stock item GUIDs, each once; one Stock Query each, in order.
company_guidYesThe company's company_guid, as list_companies returns it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.7

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses a full `state` taxonomy with causes, the 262,144-byte refusal limit, that a failed send halts reads and yields `partial`, that a synthetic book was measured, mask_parties masking, and that each call appends metadata-only receipt lines to a local log while writing nothing to Tally. That last point also explains why idempotentHint is false for a read-only tool, resolving what would otherwise look inconsistent.

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?

The purpose is front-loaded and most content earns its place, but the body is a single dense run-on of semicolon-chained clauses, nested parentheticals, and colon-lists that is hard to parse on first read. Restructuring the state taxonomy into a list would preserve the information at a fraction of the cognitive cost.

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 carries the full burden of explaining returns, and it does so thoroughly: per-godown and per-batch lines, the seven-plus state outcomes with their meanings, and the partial-failure condition. An agent has enough to interpret any response correctly.

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 coverage is 100%, so `company_guid`, `as_of`, and `items` are already documented with patterns and bounds. The description restates the same constraints (1-20 GUIDs, month's last day) without adding format or edge-case meaning beyond the schema, so the baseline 3 applies.

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 opens with a specific verb and resource: Tally's own Stock Query over 1-20 stock items by GUID, returning quantity per godown and batch at a month-end `as_of`, with the explicit scope limitation 'Quantities only.' It does not route the agent among the stock siblings (stock_by_godown, stock_summary, negative_stock), so it is clear in itself but not differentiating.

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?

Usage is implied rather than stated: month-end date, 1-20 item GUIDs, quantities only. The caveat that `no_movement` is 'not a finding of no stock' is genuine interpretive guidance, but there is no explicit when-to-use/when-not or alternative-tool steering despite several stock-related siblings.

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