stock_by_batch
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
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | A month's last day (YYYYMMDD or YYYY-MM-DD); the period starts 1 April. | |
| items | Yes | 1 to 20 stock item GUIDs, each once; one Stock Query each, in order. | |
| company_guid | Yes | The company's company_guid, as list_companies returns it. |