Skip to main content
Glama

Aitole — Kaspi Pay

Create permanent payment link

create_payment_link

Create a permanent payment page aitole.kz/pay/. Each click on "Pay" creates a fresh Kaspi QR, so the link can be shared in messengers and bios. Set a fixed amount, or omit it so the customer enters the amount within min_amount/max_amount. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Payments through the link are normal operations with payment_link_id; A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Note: this endpoint is not idempotent, so do not retry blindly (a taken slug returns 409 slug_taken). Use for one reusable page shared with many customers; for a single charge use create_qr or create_invoice. Returns the link with id and url, the address to share.

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": {
      "title": "<title>"
    },
    "name": "create_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoOptional custom address; by default it is built from the title.
titleYesTitle shown on the payment page, e.g. "Consultation".
amountNoFixed amount. Integer, whole tenge (KZT).
ask_nameNoAsk the customer for their name (default true): Kaspi does not tell who paid by QR.
max_amountNoMaximum amount when the customer enters it. Integer, whole tenge (KZT).
min_amountNoMinimum amount when the customer enters it. Integer, whole tenge (KZT).
descriptionNoOptional description on the page.
connection_idNoOptional Kaspi connection (cash register) id. Only needed when the account has several connections.
merchant_nameNoOptional merchant name shown on the page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, it discloses concrete behavioral traits: a fresh Kaspi QR per click, the non-idempotency consequence (do not retry blindly, 409 slug_taken), and the critical caveat that a paid status is required for confirmation — creating a QR or invoice is not payment. It restates non-idempotency already carried by idempotentHint=false, so it is additive rather than fully novel, but the error code and settlement semantics are genuinely new information.

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?

Front-loaded with the artifact and URL shape, then usage, then payment semantics, then a return summary — a sensible order with no filler sentences. It is dense but slightly overpacked for a single paragraph; the return-value sentence is justified only because no output schema exists.

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 9-parameter creation tool with 100% schema coverage and no output schema, the description covers what is produced (link with id and url), the sharing model, amount handling, failure mode, and payment confirmation. Nothing an agent needs to call and interpret it 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 coverage is 100%, so the baseline would be 3; the description exceeds that by explaining the conditional relationship between amount and min_amount/max_amount (set a fixed amount, or omit it so the customer enters within the range) and by clarifying the KZT integer convention (5000 means 5,000 tenge, no tiyn). Those are cross-parameter semantics the schema cannot express.

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 up front — "Create a permanent payment page aitole.kz/pay/<slug>" — and immediately distinguishes the artifact (a reusable page) from a one-off charge. An agent can tell this apart from create_qr and create_invoice 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 routing: "Use for one reusable page shared with many customers; for a single charge use create_qr or create_invoice." It names both alternatives and the condition that selects them, leaving nothing to inference.

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.