Skip to main content
Glama
MarketingBNG

tally-mcp

by MarketingBNG

tally_cancel_voucher

Destructive

Cancel an existing TallyPrime voucher to void posted amounts while keeping its number and avoiding gaps; preview the write, then confirm after user approval.

Instructions

CANCEL an existing voucher in TallyPrime. It keeps its voucher number, marked cancelled, and its amounts stop counting — so the number series has no gap. Prefer this to deleting when a posted entry has to be voided.

Give the guid and current date from tally_get_vouchers, and a reason, which becomes the narration.

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
guidYesThe voucher's guid, as returned by tally_get_vouchers.
reasonYesWhy it is cancelled. Becomes the narration.
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.
currentDateYesThe voucher's date as it is NOW in TallyPrime (from the same read).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description goes far beyond them: it discloses that this call mutates nothing, that it returns a confirmToken plus the exact pending write, that confirmation must be user-driven, and that the cancelled voucher keeps its number. That is precisely the behavior an agent needs and could not infer from the 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?

Front-loaded with the verb and its distinguishing semantics, then inputs, then the write protocol. Three short paragraphs, each carrying distinct information with no repetition or filler.

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 compensates by describing the return shape (the would-be write plus a confirmToken) and the exact next step. For a destructive, non-idempotent, non-open-world mutation it supplies the approval gate, the follow-up tool, and the non-obvious state effect of cancelling.

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?

Schema description coverage is 100% and every parameter is already documented there, including the source read for guid and currentDate and the narration linkage for reason. The description restates those facts in prose rather than adding format, constraint, or edge-case detail, so it earns only the baseline.

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 and resource (CANCEL a voucher in TallyPrime) and immediately describes the distinguishing semantics: number retained, marked cancelled, amounts excluded, no gap in the series. It explicitly contrasts itself with the delete sibling, so an agent can route correctly 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 an explicit when-to-use rule ('Prefer this to deleting when a posted entry has to be voided') plus the full two-step call protocol: this tool only previews, the user must approve the preview, and tally_confirm_write is required with the returned token. It also states the precondition for inputs (guid and currentDate from tally_get_vouchers).

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