Skip to main content
Glama
lokesh-sparrow

PNPC-MCP-Tally-Prime

update_voucher

DestructiveIdempotent

Modify an existing TallyPrime voucher by matching type, date, and voucher number, replacing its ledger entries and narration to correct financial records.

Instructions

Update an existing voucher in TallyPrime, replacing its ledger entries and narration. The voucher is matched by type + date + voucher number, so that combination must be unique and must exactly match an existing voucher (use get_ledger_vouchers or get_vouchers first to confirm it). Either pass debitLedger/creditLedger/amount for a simple 2-leg voucher, or pass 'entries' for 3+ lines, same as create_voucher. 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesExisting voucher's date in DD-MM-YYYY format
amountNoNew amount of the transaction (simple 2-leg mode; omit if using 'entries')
entriesNoFor a voucher with more than 2 lines: an array of { ledgerName, amount, type: 'debit'|'credit', billName?, billType?, costCentre?, costCategory? }, same shape as create_voucher's entries. Debit and credit amounts must sum to the same total. When provided, this replaces debitLedger/creditLedger/amount.
buyerTrnNoThe buyer's TRN on this voucher — same voucher-level field and Sales-class caveat as create_voucher's buyerTrn.
narrationNoNew narration / description for the voucher
referenceNoFree-text reference for this voucher, backed by Tally's voucher-level REFERENCE field — same field and same independence from voucherNumber/bill references as on create_voucher.
buyerStateNoThe buyer's Emirate/state on this voucher's Party Details.
debitLedgerNoLedger name to debit (simple 2-leg mode; omit if using 'entries')
voucherTypeYesVoucher type, e.g. 'Payment', 'Receipt', 'Journal'
buyerCountryNoThe buyer's country on this voucher's Party Details.
costCategoryNoCost category the cost centre belongs to. Defaults to 'Primary Cost Category'.
creditLedgerNoLedger name to credit (simple 2-leg mode; omit if using 'entries')
referenceDateNoDate for the reference above, in DD-MM-YYYY format (Tally's REFERENCEDATE field). Independent of the voucher's own date.
voucherNumberYesExact voucher number of the voucher to update
debitCostCentreNoCost centre to allocate the debit leg to (optional).
creditCostCentreNoCost centre to allocate the credit leg to (optional).
placeOfSupplyCountryNoUAE VAT Place of Supply Country for this voucher.
placeOfSupplyEmirateNoUAE VAT Place of Supply Emirate for this voucher.

Schema Changelog

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

  1. Changed12 schema fields changedv1.11.2
    • changedInput schema / properties / amount / description
      Previous value: -"New amount of the transaction"New value: +"New amount of the transaction (simple 2-leg mode; omit if using 'entries')"
    • addedInput schema / properties / buyerCountry
      Added value: +{
      +  "description": "The buyer's country on this voucher's Party Details.",
      +  "type": "string"
      +}
    • addedInput schema / properties / buyerState
      Added value: +{
      +  "description": "The buyer's Emirate/state on this voucher's Party Details.",
      +  "type": "string"
      +}
    • addedInput schema / properties / buyerTrn
      Added value: +{
      +  "description": "The buyer's TRN on this voucher — same voucher-level field and Sales-class caveat as create_voucher's buyerTrn.",
      +  "type": "string"
      +}
    • changedInput schema / properties / creditLedger / description
      Previous value: -"Ledger name to credit"New value: +"Ledger name to credit (simple 2-leg mode; omit if using 'entries')"
    • changedInput schema / properties / debitLedger / description
      Previous value: -"Ledger name to debit"New value: +"Ledger name to debit (simple 2-leg mode; omit if using 'entries')"
    • addedInput schema / properties / entries
      Added value: +{
      +  "description": "For a voucher with more than 2 lines: an array of { ledgerName, amount, type: 'debit'|'credit', billName?, billType?, costCentre?, costCategory? }, same shape as create_voucher's entries. Debit and credit amounts must sum to the same total. When provided, this replaces debitLedger/creditLedger/amount.",
      +  "items": {
      +    "properties": {
      +      "amount": {
      +        "type": "number"
      +      },
      +      "billName": {
      +        "type": "string"
      +      },
      +      "billType": {
      +        "type": "string"
      +      },
      +      "costCategory": {
      +        "type": "string"
      +      },
      +      "costCentre": {
      +        "type": "string"
      +      },
      +      "ledgerName": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "debit",
      +          "credit"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ledgerName",
      +      "amount",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / placeOfSupplyCountry
      Added value: +{
      +  "description": "UAE VAT Place of Supply Country for this voucher.",
      +  "type": "string"
      +}
    • addedInput schema / properties / placeOfSupplyEmirate
      Added value: +{
      +  "description": "UAE VAT Place of Supply Emirate for this voucher.",
      +  "type": "string"
      +}
    • addedInput schema / properties / reference
      Added value: +{
      +  "description": "Free-text reference for this voucher, backed by Tally's voucher-level REFERENCE field — same field and same independence from voucherNumber/bill references as on create_voucher.",
      +  "type": "string"
      +}
    • addedInput schema / properties / referenceDate
      Added value: +{
      +  "description": "Date for the reference above, in DD-MM-YYYY format (Tally's REFERENCEDATE field). Independent of the voucher's own date.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "voucherType",
      -  "voucherNumber",
      -  "date",
      -  "debitLedger",
      -  "creditLedger",
      -  "amount"
      -]New value: +[
      +  "voucherType",
      +  "voucherNumber",
      +  "date"
      +]
  2. First observedv1.0.3

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description builds on them substantially: it discloses that ledger entries and narration are overwritten, that matching is by type + date + number and must be exact, and — most valuably — that the tool refuses on type collisions because Tally's Alter lookup ignores voucher type and can 'silently corrupt the wrong one'. That live-confirmed corruption warning is exactly the kind of behavior an agent cannot infer from annotations or schema. No contradiction with annotations.

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?

Four sentences with zero filler, ordered by importance: core action first, then matching criteria and perequisite, then the two input modes, then the failure mode and remediation. For an 18-parameter destructive tool, every sentence carries distinct operational value.

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

Completeness4/5

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

For a complex, destructive tool, the description covers the critical operational facts: what gets replaced, how the target voucher is identified, the uniqueness requirement, the existence-check prerequisite, both input modes, and the collision refusal with its remedy. The main gap is that it does not route agents among the many update_* siblings (e.g., when to prefer update_sales_invoice over this generic updater), and with no output schema it says nothing about return behavior — a minor gap against an otherwise rich coverage.

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 coverage is 100%, so the baseline is 3; the description adds real value on top by explaining the mode split the schema only hints at: debitLedger/creditLedger/amount for simple 2-leg vouchers versus entries for 3+ lines, with mutual exclusivity made explicit. It also elevates the three required parameters (voucherType, voucherNumber, date) into a matching-key constraint, giving them meaning beyond their individual field descriptions.

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 states a specific verb and resource — 'Update an existing voucher in TallyPrime' — and specifies the scope of the operation ('replacing its ledger entries and narration'), which clearly separates it from create_voucher and delete_voucher. However, it never explicitly differentiates itself from the many specialized update_* siblings (update_sales_invoice, update_credit_note, etc.), so an agent must infer that this is the generic updater from the voucherType parameter.

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?

The description gives actionable usage context: confirm the voucher exists first via get_ledger_vouchers or get_vouchers, and if the tool refuses on a number collision, resolve it in Tally before retrying. It does not, however, state when not to use this tool in favor of a specialized sibling like update_sales_invoice, so exclusions are left implicit.

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