Skip to main content
Glama
lokesh-sparrow

PNPC-MCP-Tally-Prime

delete_master

DestructiveIdempotent

Delete masters (ledger, group, stock item, etc.) from TallyPrime by name. Delete dependent vouchers first; if 'Cannot be deleted!' persists, run Company Data → Rewrite.

Instructions

Delete one or more masters (ledger, group, stock item, voucher type, unit, godown, cost centre, etc.) from TallyPrime by name. If a master was used in a voucher you're also deleting, delete the voucher first and confirm it succeeded before calling this — doing both in the same parallel batch can race (the master delete reaching Tally before the voucher delete has committed), confirmed live. If a ledger/stock item was used in both a Sales AND a Purchase item-invoice, it may return 'Cannot be deleted!' permanently even with no transactions left — this is fixed by running Company Data → Rewrite in Tally itself (confirmed live), not by retrying or sequencing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namesYesExact name(s) of the master(s) to delete
collectionYesType of master to delete, as Tally's XML tag name, e.g. 'LEDGER', 'GROUP', 'STOCKITEM', 'VOUCHERTYPE', 'UNIT', 'GODOWN', 'COSTCATEGORY', 'COSTCENTRE'

Schema Changelog

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

  1. First observedv1.0.3

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true), the description discloses two confirmed behavioral caveats: the race condition when deleting a master and its voucher in the same batch, and the permanent 'Cannot be deleted!' scenario that requires a Company Data rewrite in Tally. These are rich, operationally critical details that annotations alone do not capture.

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 two sentences and front-loaded with the primary purpose, then followed by a high-value operational warning. There is no filler or unnecessary repetition, and the additional clauses all contribute useful context.

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 destructive, multi-type deletion tool without an output schema, the description covers the essential use case: general usage, sequencing with vouchers, known race condition, a specific permanent error, and the Tally-side fix. It provides enough operational context to use the tool safely and to understand what can go wrong.

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?

The input schema describes both parameters in detail, including the collection of XML tag names and the exact names array; schema coverage is 100%. The description restates examples of master types but adds no new information about parameter formats, constraints, or behavior beyond the schema.

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?

The description explicitly states the action: 'Delete one or more masters (ledger, group, stock item, voucher type, unit, godown, cost centre, etc.) by name.' It names both the verb and the resource scope, and it distinguishes this generic deletion tool from sibling tools like delete_stock_item and delete_voucher which are type-specific.

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 provides concrete usage guidance: delete a voucher first and confirm success before deleting the related master, and avoid parallel batch execution to prevent a race. It also explicitly states that a certain permanent deletion failure should be handled with a Tally rewrite, not retry or sequencing. However, it does not explicitly say 'use delete_stock_item instead for stock items' or otherwise contrast with the sibling delete tools.

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