Skip to main content
Glama

Aitole — Kaspi Pay

Update or disable payment link

update_payment_link
Idempotent

Change a permanent payment link: title, fixed amount or min/max range, description, merchant name, ask_name. Set status "disabled" to stop accepting payments through it (the page then answers "not found") and "active" to turn it back on; nothing is deleted. Pass only the fields to change. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. The slug (address) cannot be changed. Use to edit or switch off an existing link; for a different address create a new one with create_payment_link. Returns the updated link.

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": {
      "payment_link_id": "<payment_link_id>"
    },
    "name": "update_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoNew title.
amountNoNew fixed amount. Integer, whole tenge (KZT).
statusNo"disabled" stops payments, "active" resumes them.
ask_nameNoAsk the customer for their name.
max_amountNoNew maximum when the customer enters the amount. Integer, whole tenge (KZT).
min_amountNoNew minimum when the customer enters the amount. Integer, whole tenge (KZT).
descriptionNoNew description.
merchant_nameNoNew merchant name shown on the page.
payment_link_idYesPayment link id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that disabling makes the page answer "not found" while nothing is deleted, that the slug is immutable, and that status can be flipped back to "active". This resolves the main fear an agent would have about a destructiveHint=false mutation (does disabling destroy the link?).

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 editable fields, then behavior, then units, then routing guidance — each sentence carries distinct information. There is minor overlap with the schema on tenge units, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the essentials for a 9-parameter mutation with no output schema: return value ("Returns the updated link"), immutability, deletion semantics, and patch behavior. The one omission is whether switching between a fixed amount and an entered-amount range clears the other mode's fields.

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 already 100%, so the baseline is 3; the description earns an extra point by giving a concrete unit example ("5000 means 5,000 tenge, no tiyn/decimals") and by framing the parameters as a partial patch rather than a full replace. It does not clarify how fixed amount vs min/max range interact, which is the remaining semantic gap.

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 ("Change a permanent payment link") and then enumerates exactly which fields can be edited. The title and description together make it unmistakable from create_payment_link or get_payment_link.

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?

Explicitly states when to reach for this tool ("Use to edit or switch off an existing link") and names the alternative and its trigger condition ("for a different address create a new one with create_payment_link"). It also supplies a key operating rule — "Pass only the fields to change" — which prevents agents from overwriting untouched fields.

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.