Skip to main content
Glama

cancel_purchase_bill

Cancels a purchase bill by ID and marks it cancelled via the Paraşüt API, preventing further processing.

Instructions

Cancel a purchase bill (HTTP DELETE on /cancel — marks it cancelled).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "cancel_purchase_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPurchase bill ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does add one valuable fact: the call marks the bill cancelled rather than deleting the record. It omits reversibility, permission requirements, idempotency, and what happens to an already-cancelled or paid bill.

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?

One sentence, front-loaded with the action, and the parenthetical earns its place by clarifying soft-cancel semantics. No padding or restated title.

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

Completeness3/5

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

For a destructive single-parameter mutation with no annotations and no output schema, the definition omits outcome details: the response shape, error cases (already cancelled, paid bill), and whether the effect can be undone. Adequate but with clear gaps.

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?

Single parameter with 100% schema description coverage ('Purchase bill ID'), so the schema already documents it. The description adds only implicit confirmation that the ID is the target of the cancellation — the baseline for full coverage.

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?

Specific verb+resource: 'Cancel a purchase bill', with the mechanism spelled out (HTTP DELETE on /cancel). It is clearly distinct from get_purchase_bill or create_purchase_bill by name, but it does not explicitly differentiate cancel semantics from the archive_/cancel_ siblings on other resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no preconditions (e.g. bill must be unpaid/unposted), and no alternatives such as archiving vs cancelling. The agent must infer entirely from the name when this is the right operation.

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