Skip to main content
Glama
MarketingBNG

tally-mcp

by MarketingBNG

tally_delete_master

Destructive

Preview deleting a TallyPrime master (group, stock item, etc.) by checking it's not in use; returns a confirmToken for user-approved write.

Instructions

Delete a group, cost centre, unit, stock group, godown, stock item, voucher type or budget from TallyPrime. For ledgers use tally_delete_ledger.

TallyPrime refuses to delete a master that is in use — a group with ledgers under it, a unit an item uses, an item with stock movements. That refusal comes back as WRITE_REJECTED and nothing changes.

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
kindYes
nameYesThe master to delete, by its exact name.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (destructiveHint=true, readOnlyHint=false), yet the description adds material behaviour the annotations cannot: the call is preview-only and changes nothing, blockers surface as WRITE_REJECTED with in-use masters (group with ledgers, unit in use, item with movements), and completion requires tally_confirm_write. That is exactly the kind of two-step semantics an agent would otherwise get wrong.

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?

Front-loaded with the purpose and the sibling routing, followed by the refusal behaviour and then the write workflow. Every paragraph carries distinct information, though the middle refusal paragraph could be compressed without loss.

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?

With no output schema, the description supplies the missing return semantics: a preview payload plus a confirmToken, and a WRITE_REJECTED outcome when the master is in use. For a destructive, confirmation-gated tool, an agent has everything needed to call it 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 coverage is 67%, and the description restates the kind list in prose, reinforcing the enum's semantics, plus the name field ('by its exact name') and company behaviour are documented in the schema. It adds scoping value (which master kinds are eligible) but no additional syntax or format hints for the parameters themselves.

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?

States a specific verb (delete) and enumerates every resource kind it covers (group, cost centre, unit, stock group, godown, stock item, voucher type, budget), then explicitly routes ledgers to the sibling tool tally_delete_ledger. An agent can distinguish this from tally_delete_ledger, tally_delete_voucher and tally_alter_master without opening any schema.

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 explicit when-to-use routing (ledgers → tally_delete_ledger) and a precise operating procedure: this call only previews, the user must approve the preview, and only then call tally_confirm_write with the token. It also states the exclusion condition (never confirm unprompted or unseen), leaving nothing to inference.

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