Skip to main content
Glama

Aitole — Kaspi Pay

Sandbox: mark operation paid

sandbox_pay
Idempotent

SANDBOX ONLY (sk_test_ key): simulate the customer paying a sandbox QR or invoice. No real money. The operation status changes to "paid" a few seconds later (the same poller as in production); check with get_operation. Use in tests after create_qr or create_invoice with a sk_test_ key to play out a successful payment; for the unhappy paths use sandbox_expire or sandbox_reject.

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

Input Schema

NameRequiredDescriptionDefault
operation_idYesSandbox operation id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag readOnlyHint=false, idempotentHint=true, and destructiveHint=false, but the description supplies the crucial non-obvious behaviors: it is sandbox-only, requires a sk_test_ key, moves no real money, and the status flip to 'paid' is asynchronous (a few seconds, same poller as production). The async timing plus the polling pointer is exactly the context that prevents an agent from assuming the call returns a settled state.

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?

Three sentences, front-loaded with the 'SANDBOX ONLY' guard, then the effect, then the routing advice. No repetition of the title and no filler; each clause adds a distinct fact.

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 one-parameter sandbox mutation with no output schema, it covers safety (no real money, test key required), the asynchronous outcome and verification path, and the sibling alternatives. Nothing an agent needs in order to call it correctly 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 coverage is 100% and the single operation_id parameter is already documented as 'Sandbox operation id.' in the schema, so the description is not required to compensate. It adds only indirect meaning by tying the id to operations created by create_qr or create_invoice; it does not state the id format or where to obtain one directly. Baseline 3 is appropriate.

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: 'simulate the customer paying a sandbox QR or invoice', immediately qualified as sandbox-only. This is clearly distinguishable from sandbox_expire, sandbox_reject, and the real payment flow, so an agent can select it without opening the 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 about when to use it ('after create_qr or create_invoice with a sk_test_ key to play out a successful payment'), names the alternatives for other paths ('for the unhappy paths use sandbox_expire or sandbox_reject'), and points to get_operation for verification. This is a full when/when-not/alternatives mapping.

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.