Skip to main content
Glama
lokesh-sparrow

PNPC-MCP-Tally-Prime

update_sales_order

DestructiveIdempotent

Replace lines, party, order number, and narration on an existing TallyPrime sales order. Locates the voucher by date and exact voucher number to avoid editing the wrong entry.

Instructions

Update an existing Sales Order in TallyPrime, replacing its item lines, party, order number, and narration. Same fields as create_sales_order (orderNumber and each item's dueDate still REQUIRED), plus voucherNumber to locate the existing voucher. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens. Note voucherNumber here is the existing voucher's own number to match by — Tally may still not let you change it, since Order-class vouchers use 'Auto Retain' numbering (see create_sales_order).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesExisting order's date in DD-MM-YYYY format
itemsYesOne entry per line — replaces all existing lines.
narrationNoNarration / description
orderNumberYesREQUIRED — the order reference shown as 'Order no.' in Tally's UI.
partyLedgerYesCustomer ledger name
voucherNumberYesExact voucher number of the sales order to update

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.11.2

TDQS

A5/5.0
Behavior5/5

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

The description goes well beyond the annotations: it discloses the date + voucher-number matching rule, the refusal behavior on shared voucher numbers, the risk of silently corrupting the wrong voucher, and the Auto Retain numbering limitation. It even cites confirmed live behavior, which is strong transparency for a destructive operation.

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?

The description is dense but every sentence earns its place: purpose, prerequisites, collision behavior, and numbering caveat. It does not repeat field-level schema details and front-loads the core update action before caveats.

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?

For a mutating tool with no output schema, the description supplies all essential operational context: how to locate the voucher, how to handle ambiguity, possible refusal, and a key limitation. The schema already covers field-level details, so nothing critical is missing.

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

Parameters5/5

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

The description adds critical meaning beyond the schema: orderNumber and each item's dueDate remain required, voucherNumber is the locating key, matching is by date and voucher number, and voucherNumber may not actually be changeable. This materially improves the agent's ability to construct a correct invocation.

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?

Description opens with a specific verb plus resource: 'Update an existing Sales Order in TallyPrime', and enumerates exactly what gets replaced: item lines, party, order number, and narration. This clearly distinguishes it from create_sales_order and the other create/update voucher siblings.

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?

Explicitly instructs the agent to call get_ledger_vouchers or get_vouchers first to confirm existence and uniqueness, and tells it what to do if a collision occurs: resolve it in Tally first. It also clarifies how this tool relates to create_sales_order by referencing the same fields plus voucherNumber.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lokesh-sparrow/PNPC-MCP-Tally-Prime'

If you have feedback or need assistance with the MCP directory API, please join our Discord server