Skip to main content
Glama
MarketingBNG

tally-mcp

by MarketingBNG

tally_create_stock_journal

Preview a new stock journal in TallyPrime to move stock between godowns, record production, or adjust inventory. Returns a confirm token; no data is written until you confirm.

Instructions

Post a NEW stock journal in TallyPrime: stock that goes OUT (consumed) and stock that comes IN (produced or received), with no ledger lines. Use it to transfer stock between godowns (same item out of one godown, into another), to record production (raw materials out, finished goods in), or to adjust stock.

Each line is a stock item, quantity, rate and godown. The value of each line is quantity × rate. For a sale or purchase of items use tally_create_voucher with items.

WRITES TO TALLYPRIME, in two steps. This call only PREVIEWS: it checks the change against the live books and returns exactly what would be written plus a confirmToken — nothing is changed. Show the preview to the user, and only after they approve it call tally_confirm_write with the token. Never confirm on your own initiative, and never confirm a preview the user has not seen.

Input Schema

NameRequiredDescriptionDefault
dateYesVoucher date, ISO YYYY-MM-DD.
companyNoCompany name. Omit to use whichever company TallyPrime has loaded. If given and it is not the loaded one, the call fails with TALLY_COMPANY_NOT_LOADED rather than returning another company's data.
consumedYesStock going OUT.
producedYesStock coming IN.
narrationNo
voucherTypeNoDefault "Stock Journal". A custom type must be based on Stock Journal.
voucherNumberNoOnly for types numbered manually. Omit to let TallyPrime number it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false, openWorld=false; the description adds the crucial two-step protocol: this call PREVIEWS only, changes nothing, and returns a confirmToken that must be passed to tally_confirm_write after the user sees and approves the preview. It even adds a behavioral constraint ("never confirm on your own initiative"), which no annotation conveys.

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?

Three short paragraphs, front-loaded with purpose, then line semantics, then the write/confirm protocol. No filler; each sentence carries an actionable constraint or distinction.

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?

No output schema exists, but the description compensates by stating what the preview returns (exactly what would be written plus a confirmToken). Combined with the mutation semantics and sibling routing, an agent has everything needed to invoke and complete the two-step flow correctly.

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 description coverage is 86%, so the schema already carries most parameter meaning (baseline 3). The description adds genuine semantics beyond it: the shape of a line (stock item, quantity, rate, godown), the derived line value (quantity × rate), and the consumed/produced direction convention.

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?

Specific verb+resource ("Post a NEW stock journal") with the domain meaning spelled out (stock OUT / stock IN, no ledger lines). It explicitly distinguishes itself from the nearest sibling by naming tally_create_voucher with `items` as the tool for sales/purchases of items.

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

Usage Guidelines5/5

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

Gives concrete when-to-use cases (godown transfer, production, stock adjustment) and an explicit when-not/alternative ("For a sale or purchase of items use tally_create_voucher"). It also states the required downstream step, tally_confirm_write, and the approval condition that gates it.

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