Skip to main content
Glama

Aitole — Kaspi Pay

Get operation

get_operation
Read-onlyIdempotent

Get one payment operation (QR or invoice) by id, with its current status: created, pending, paid, cancelled, expired or failed. A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Also shows refunded_amount and failure_reason/failure_message. Amounts in whole tenge. Use to check one payment whose id you have; to find payments by status or date use list_operations. 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": {
      "operation_id": "<operation_id>"
    },
    "name": "get_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
operation_idYesOperation id returned by create_qr / create_invoice.

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered; the description adds real value beyond them by enumerating the possible statuses, stating the critical business rule that only a 'paid' status confirms payment (creating a QR or invoice does not), listing extra returned fields (refunded_amount, failure_reason/failure_message), specifying units (whole tenge) and disclosing the 404 not_found behaviour for unknown ids.

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?

Every sentence carries distinct load: identity and statuses first, then the paid-confirmation rule, then returned fields and units, then the sibling routing, then the error case. There is no filler and the most important caveat (paid is the only confirmation) is front-loaded.

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?

With no output schema and one required parameter, the description supplies the return semantics an agent needs: status values, refund fields, failure fields, and amount units. Only minor details such as the timestamp fields or response shape remain unstated, which is acceptable for a simple read tool.

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 in the schema as the operation id returned by create_qr / create_invoice. The description reinforces that the id must be one the caller already holds and adds the 404 semantics for invalid ids, but contributes little new meaning about the parameter itself, so the baseline of 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?

The description states a specific verb and resource (get one payment operation, QR or invoice, by id) and immediately defines scope as a single lookup, which separates it from the sibling list_operations. The parenthetical resource types and the id-based retrieval leave no ambiguity about what is returned.

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 explicitly routes the agent: 'Use to check one payment whose id you have; to find payments by status or date use list_operations.' That is an explicit when-to-use plus a named alternative with the condition that selects it, 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.