Skip to main content
Glama

Aitole — Kaspi Pay

Update recurring invoice

update_subscription
Idempotent

Change a recurring invoice that is not cancelled: amount of future invoices, description, billing_time, subscriber_name, external_subscriber_id, metadata. Pass only the fields to change. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Already sent invoices keep their amount. The phone and the period cannot be changed: cancel and create a new one. Use to change future invoices of an existing subscription; to stop it for a while use pause_subscription, for good cancel_subscription. Returns the updated subscription.

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": "update_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoNew amount of each future invoice. Integer, whole tenge (KZT).
metadataNoOptional JSON object stored with the record and returned back (e.g. {"order_id": "1024"}).
descriptionNoNew invoice description; "{today}" is replaced by the billing date.
billing_timeNoNew time "HH:MM" in Almaty time, 06:00-22:00.
subscriber_nameNoCustomer name for your records.
subscription_idYesSubscription id.
external_subscriber_idNoId of the customer in your system.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true, and the description is consistent with them rather than adding risk detail beyond them. It does add real behavioral context: "Pass only the fields to change" (partial update), pre-existing sent invoices are unaffected, and the return is the updated subscription. Those are useful, but the safety profile is largely carried by annotations already.

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 mutation scope and mutable fields, then constraints, then sibling routing. Every sentence carries distinct information — tenge units, immutability of sent invoices, forbidden field changes, alternative tools, and return value — with no repetition.

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?

A 7-parameter mutation tool with no output schema and rich annotations; the description still covers scope, partial-update behavior, unit conventions, immutable aspects, alternatives, and what is returned. Nothing an agent needs to invoke this correctly is missing.

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 description coverage is 100%, so all seven parameters are already documented, including tenge-as-integer and billing_time format. The description still adds meaning beyond the schema: PATCH-style "pass only the fields to change" semantics and the explicit rule that amount changes apply only to future invoices, which the schema does not say.

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 ("Change a recurring invoice") plus the exact set of mutable fields, and immediately scopes it with "that is not cancelled". An agent can distinguish it from pause/cancel/create siblings without opening a 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 routing: "Use to change future invoices of an existing subscription; to stop it for a while use pause_subscription, for good cancel_subscription." It also states a hard when-not (phone and period cannot be changed — cancel and create a new one), which is exactly the exclusion an agent needs.

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.