Skip to main content
Glama

Aitole — Kaspi Pay

Resume recurring invoice

resume_subscription
Idempotent

Resume a paused or expired recurring invoice. Paused within the same period: it continues where it stopped, with the invoice already sent (no second invoice for that period). Otherwise billing continues from the next scheduled date (see next_billing_at in the result): periods skipped meanwhile are not billed, an unpaid invoice of a past period is cancelled, one paid during the pause is counted. A cancelled or fully paid one cannot be resumed. Use after pause_subscription or when an expired subscription should bill again. Returns the subscription with status "active" and the new next_billing_at.

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": "resume_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 resume.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses non-obvious consequences: no duplicate invoice when resuming within the same period, skipped periods not billed, an unpaid past-period invoice being cancelled, and a paid one being counted. These side effects on related invoices are exactly the hidden behavior an agent could not infer from readOnlyHint/idempotentHint/destructiveHint alone.

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?

It is front-loaded with the action, followed by state-dependent outcomes, and every sentence conveys information. The dense colon/semicolon chaining makes it slightly harder to parse than a cleaner bulleted structure would, but there is 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?

With no output schema, the description still specifies the return ('status "active" and the new next_billing_at') and points the agent at next_billing_at to determine the resumed schedule. Combined with the edge-case coverage, nothing needed to call or interpret the result 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 description coverage is 100%, including a detailed explanation of idempotency_key retry behavior, so the schema already carries parameter meaning. The description adds nothing further about subscription_id or idempotency_key, making the baseline 3 correct here.

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?

The description opens with a specific verb and resource ('Resume a paused or expired recurring invoice') and immediately bounds the scope (paused vs expired vs non-resumable states). It is clearly distinct from the sibling 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?

It states exactly when to call it ('after pause_subscription or when an expired subscription should bill again') and when it will fail ('A cancelled or fully paid one cannot be resumed'). Both the trigger and the exclusion are explicit, so no inference is required.

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.