Skip to main content
Glama
tally-prime-mcp

tally-prime-mcp

alter_stock_item

Modify an existing stock item's name, group, unit, opening stock, GST rate, HSN, or description; only supplied fields change, and opening stock updates require confirmation.

Instructions

Modify a stock item: rename (new_name), group, unit, opening stock, GST rate, HSN, description. Only given fields change. Opening stock changes are two-step: the first call only returns current vs new opening figures; ask the user, then repeat with confirm_opening_change: true.

Input Schema

NameRequiredDescriptionDefault
nameYesCurrent item name
unitNoBase unit symbol; must exist (see create_master type unit)
groupNoStock group (default Primary)
aliasesNoAlias names
companyNoCompany name as shown in Tally. Omit to use the currently active company.
dry_runNoIf true, only return the XML that would be sent; nothing is written to Tally and no backup is taken.
categoryNoStock category
gst_rateNoTotal GST % (IGST); CGST/SGST are set to half each
hsn_codeNo
new_nameNo
cess_rateNo
extra_xmlNoAdvanced: raw XML tags appended inside <STOCKITEM>
taxabilityNo
descriptionNo
opening_rateNo
opening_valueNoDefaults to quantity x rate
opening_godownNoGodown holding the opening stock (default Main Location)
hsn_descriptionNo
opening_quantityNo
confirm_opening_changeNoSet true ONLY after the user has seen the current vs new opening figures and explicitly approved the change

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it usefully discloses the non-obvious two-step opening-stock confirmation and that unspecified fields are left untouched. It never states that this writes to Tally and takes a backup, and it omits the dry_run safety path entirely even though the schema exposes it.

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

Conciseness4/5

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

Three dense sentences, front-loaded with the field list and the highest-risk behavior. The opening-stock explanation is longer than the rest but earns its length; minor slack from the parenthetical field naming.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter mutation tool with no annotations and no output schema, the description covers the dangerous path but not the general return shape, the dry_run escape hatch, or the advanced XML extension point. Adequate to start, not adequate to call confidently.

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?

It names new_name, group, unit, GST rate, HSN, description and opening stock plus the critical confirm_opening_change flag. But at 60% schema coverage, roughly half the parameters (aliases, category, cess_rate, extra_xml, taxability, opening_rate, opening_value, opening_godown, hsn_description, dry_run) get no meaning from either source.

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?

Opens with a specific verb+resource ("Modify a stock item") and enumerates the updatable fields, which clearly separates it from create_stock_item and the master/ledger siblings. It doesn't explicitly name those siblings, so it falls just short of a 5.

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?

"Only given fields change" establishes partial-update semantics and the opening-stock paragraph prescribes an exact procedure (call, show figures to user, repeat with confirm_opening_change). What's missing is any exclusion or pointer to create_stock_item / alter_master for adjacent operations.

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