Skip to main content
Glama

Aitole — Kaspi Pay

List account events

list_events
Read-onlyIdempotent

List the account event log, newest first, with cursor pagination: payment.created, payment.paid, payment.expired, payment.cancelled, payment.refunded, connection.session_expired, connection.restored, billing., subscription. (created, payment_succeeded, payment_failed, grace_period_started, expired, cancelled, paused, resumed) and checkout.* (paid, expired, double_paid, amount_mismatch, notify_failed); all of them work as the type filter. payment.paid is the confirmation that money was received. Use it as a fallback when a webhook was missed. Use to see what happened across the account recently; for the current state of one payment use get_operation. Returns data[], has_more and next_cursor.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by event type.
limitNoPage size, 1-100 (default 20).
cursorNoPagination cursor: pass next_cursor from the previous page.
date_toNoCreated on or before this date. Date YYYY-MM-DD in Almaty time, inclusive.
date_fromNoCreated on or after this date. Date YYYY-MM-DD in Almaty time, inclusive.
connection_idNoOptional Kaspi connection (cash register) id. Only needed when the account has several connections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "payment.created",
      -  "payment.paid",
      -  "payment.expired",
      -  "payment.cancelled",
      -  "payment.refunded",
      -  "connection.session_expired",
      -  "connection.restored",
      -  "billing.past_due",
      -  "billing.downgraded"
      -]New value: +[
      +  "payment.created",
      +  "payment.paid",
      +  "payment.expired",
      +  "payment.cancelled",
      +  "payment.refunded",
      +  "connection.session_expired",
      +  "connection.restored",
      +  "billing.past_due",
      +  "billing.downgraded",
      +  "subscription.created",
      +  "subscription.payment_succeeded",
      +  "subscription.payment_failed",
      +  "subscription.grace_period_started",
      +  "subscription.expired",
      +  "subscription.cancelled",
      +  "subscription.paused",
      +  "subscription.resumed",
      +  "checkout.paid",
      +  "checkout.expired",
      +  "checkout.double_paid",
      +  "checkout.amount_mismatch",
      +  "checkout.notify_failed"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real behavior beyond them: newest-first ordering, cursor-based paging, and the return shape (data[], has_more, next_cursor). It also gives semantic weight to the data ('payment.paid is the confirmation that money was received'). It does not say how far back the log is retained, which matters for the 'missed webhook fallback' use case it recommends.

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 core operation, and the semicolon-separated structure keeps a dense amount of guidance readable. The long enumeration of event types partially duplicates the schema enum, and the wildcard forms 'billing.*' / 'checkout.*' are less precise than the concrete values the schema accepts.

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?

No output schema exists, so the description's return-shape sentence is doing necessary work, and the usage guidance plus full schema coverage covers all six optional parameters. Only the log's retention horizon and page-size default expectations are unaddressed, both minor for a read-only listing tool.

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 is 3, but the description adds meaning the schema does not: it explains what the type values mean in business terms and that every listed event works as the type filter. The other filters (date_from/date_to, connection_id) are left entirely to the schema, so it stops short of full compensation.

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 ('List the account event log'), adds ordering ('newest first') and pagination form ('cursor pagination'), and explicitly distinguishes itself from the sibling get_operation. An agent can identify the tool 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?

Names two concrete use cases — auditing what happened across the account recently and recovering from a missed webhook — and names the alternative (get_operation) for the contrasting case of a single payment's current state. The decision rule is explicit rather than implied.

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.