Skip to main content
Glama

Aitole — Kaspi Pay

Sandbox: customer rejects invoice

sandbox_reject
Idempotent

SANDBOX ONLY (sk_test_ key): simulate the customer rejecting the invoice in Kaspi. The operation becomes "cancelled" with failure_reason "payer_refused" a few seconds later; check with get_operation. Use in tests for a declined invoice; for an unpaid timeout use sandbox_expire, for success sandbox_pay.

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_reject"
  }
}

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?

Beyond the annotations, the description discloses that this is sandbox-only with an sk_test_ key, that the operation becomes cancelled with failure_reason payer_refused after a few seconds, and that the result should be checked with get_operation. These details add meaningful behavioral context beyond the structured annotations.

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?

The description is compact and front-loads the sandbox-only constraint. Every sentence contributes either the simulation outcome, verification step, or alternative tool routing.

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 simulation tool with no output schema, the description covers the required context: environment restriction, expected resulting state, delay, verification tool, and alternatives for adjacent test scenarios.

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?

The input schema has full description coverage for the single operation_id parameter. The description confirms this is a sandbox operation id but does not add syntax, format, or selection guidance beyond what the schema already provides.

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 uses a specific verb and resource: simulate the customer rejecting the invoice in Kaspi, explicitly in sandbox. It also states the resulting operation state and failure_reason, so the agent can distinguish it from other sandbox simulation tools.

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 gives explicit usage conditions: use it in tests for a declined invoice. It also names alternatives and the conditions that select them, including sandbox_expire for unpaid timeout and sandbox_pay for success.

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.