Skip to main content
Glama

Aitole — Kaspi Pay

Get recurring invoice

get_subscription
Read-onlyIdempotent

Get one recurring invoice (subscription) by id: status (active, paused, cancelled, expired) and status_reason, amount (whole tenge), schedule, next_billing_at, cycles_paid, retry settings and a masked phone. Use when you have the subscription id (from create_subscription or list_subscriptions); for the invoices it sent use list_subscription_invoices. An unknown id returns a 404 not_found error.

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

Input Schema

NameRequiredDescriptionDefault
subscription_idYesSubscription id returned by create_subscription / list_subscriptions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered; the description adds value beyond that by disclosing the returned field set and the 404 not_found failure mode for unknown ids. It does not mention pagination, rate limits, or authentication, but those are minor for a single-record read.

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?

Two sentences, purpose front-loaded, usage and the sibling routing second; no filler. The long field enumeration in the first sentence is dense but every item conveys return content, so almost nothing is wasted.

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 must carry the return-value burden — and it does, listing the key fields and the masked phone. Combined with the named error case and sibling routing, an agent has everything needed to call this correctly.

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 the single parameter is already documented as the id returned by create_subscription/list_subscriptions. The description restates the same provenance and adds no format or syntax detail, so the schema is doing the work here — baseline 3 applies.

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 ('Get one recurring invoice (subscription) by id') and immediately enumerates what is returned (status, amount, schedule, next_billing_at, cycles_paid, retry settings, masked phone). An agent can distinguish this read-by-id tool from list_subscriptions and list_subscription_invoices 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?

Explicit when-to-use condition ('when you have the subscription id') plus the id's provenance (create_subscription or list_subscriptions) and an explicit alternative for the adjacent need ('for the invoices it sent use list_subscription_invoices'). The error path is also named (unknown id → 404 not_found).

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.