Skip to main content
Glama

Aitole — Kaspi Pay

Cancel recurring invoice (irreversible)

cancel_subscription
Destructive

IRREVERSIBLE: cancel a recurring invoice (subscription); no further invoices will be sent to the customer and it cannot be resumed. Ask the user to confirm the subscription id before calling. Its unpaid invoice, if one is open, is cancelled too; already paid invoices are not refunded. To stop only for a while use pause_subscription instead. Returns the subscription with status "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": {
      "subscription_id": "<subscription_id>"
    },
    "name": "cancel_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
idempotency_keyNoOptional. Your own unique id for this request, e.g. the order number "order-1024". Repeating a call with the same idempotency_key returns the same result instead of creating a duplicate, so pass one whenever you might retry. If omitted, a random key is generated (then a retry WILL create a duplicate).
subscription_idYesSubscription id to cancel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and readOnlyHint=false, but the description adds real behavioral consequences beyond them: irreversibility, no resume, the open unpaid invoice being cancelled along with it, and that paid invoices are not refunded. It also states the returned status, which matters since there is no output schema.

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-loads the irreversible warning, then consequences, then the alternative, then the return value. Every sentence carries decision-relevant information with no 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?

For a destructive two-parameter tool with no output schema, the description covers risk, side effects on related invoices, the alternative, the required confirmation habit, and the response shape. Nothing an agent needs before invoking is missing.

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 coverage is 100% and the idempotency_key parameter is thoroughly documented in the schema itself, so the baseline applies. The description only adds a confirmation step for subscription_id rather than explaining parameter semantics 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?

Opens with a specific verb and resource ("cancel a recurring invoice") plus the crucial scope note that no further invoices are sent and it cannot be resumed. It is clearly distinguishable from pause_subscription, which it names explicitly.

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?

States both when to use it (permanent cancellation) and when not to ("To stop only for a while use pause_subscription instead"), and adds an operational prerequisite: confirm the subscription id with the user before calling.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.