Skip to main content
Glama

Wait for checkout

jami_wait_for_checkout
Read-onlyIdempotent

Poll a checkout session until it is paid or ends, up to timeout_seconds, reporting progress; if still open, call again to keep waiting.

Instructions

Poll a checkout session until it's paid or ends, up to timeout_seconds. Reports progress while it waits.

If the buyer hasn't finished when the timeout hits, this returns status 'open' (not an error) — call it again to keep waiting. Sessions expire 30 minutes after creation.

Args:

  • session_id: from jami_create_checkout.

  • timeout_seconds: 5–300 (default 90).

  • interval_seconds: 2–30 between polls (default 3).

Returns the same shape as jami_get_checkout_status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesCheckout session id returned by jami_create_checkout, e.g. "6710c2e8b1a2f0012ab34cd9"
response_formatNo'markdown' (default) for a readable summary, 'json' for the full structured payloadmarkdown
timeout_secondsNo
interval_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesHuman-readable amount, e.g. "150.00 ETB"
statusYes
failureYesWhy the session ended without an order; null unless status is "expired"
order_idYes
expires_atYes
session_idYes
amount_minorYesInteger santim (100 = 1.00 ETB)
order_statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, but the description adds genuinely new behavior: a timeout returns status 'open' rather than an error, progress is reported while waiting, and sessions expire after 30 minutes. These operational details go meaningfully beyond the annotation set.

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 behavior, then edge case, then a structured Args block. The Args section partially duplicates the schema, but given the missing schema descriptions for two parameters it earns its place rather than being pure repetition.

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?

An output schema exists and the description correctly defers to it by pointing at jami_get_checkout_status for the return shape. The timeout-as-status behavior, retry loop, and expiration window give an agent everything needed to drive it correctly; only the get-vs-wait tradeoff is left implicit.

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?

With only 50% schema coverage, the description carries weight: it supplies the 5–300 range and default 90 for timeout_seconds and 2–30/default 3 for interval_seconds, which the schema declares only as min/max. It omits response_format, which the schema documents, so compensation is partial but effective for the two undocumented parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Poll a checkout session until it's paid or ends, up to timeout_seconds') with scope and stopping conditions front-loaded. It distinguishes itself from jami_get_checkout_status by framing itself as a persistent poller rather than a one-shot read, though it never says so explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context: call it again after a timeout returns 'open', and notes sessions expire 30 minutes after creation. It stops short of an explicit when-not clause naming jami_get_checkout_status as the single-check alternative, so the routing guidance is contextual rather than exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.