Skip to main content
Glama

AskMia.app travel eSIM AI agent

check_order_status

Read-onlyIdempotent

Check the status of a Stripe checkout session created by create_checkout. You MUST call this after sending payment_url to the user; never trust the user's word that they paid. Returns a status (awaiting_payment | paid_processing | delivered | failed). Safe to poll every few seconds while waiting for paid_processing -> delivered. When status is delivered it also returns an esim block (package, activation code / LPA string, qr_code_image_url, iOS/Android install links, activation mode) plus install_instructions - show these to the customer directly in the chat, the email is only a backup. No payment or billing data is ever returned. If failed, give them the escalation block returned by this tool verbatim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesStripe checkout session id returned by create_checkout (starts with 'cs_').

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive. The description adds valuable behavioral context: safe polling, status transitions, exact returned payload, and a clear statement that no payment or billing data is ever returned. This goes well beyond the annotation baseline.

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 dense but every sentence contributes: purpose, mandatory sequencing, trust boundary, polling guidance, return payload, customer-facing instructions, and failed-case handling. It is well-organized and front-loaded with the core purpose.

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?

With no output schema, the description carries full responsibility for explaining return values, and it does so thoroughly: status values, the esim block, install_instructions, escalation block, and the absence of payment data. All necessary behavior is covered.

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 already explains that session_id is the Stripe checkout session id returned by create_checkout, including the 'cs_' prefix. The description reinforces this provenance but does not add meaningfully new parameter-level detail, so 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?

The description states a specific action and resource: check the status of a Stripe checkout session created by `create_checkout`. It clearly distinguishes this tool from siblings by focusing on order status polling and explicitly references the related creation tool.

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?

The description gives explicit when-to-use guidance: MUST be called after sending payment_url, never trust user claims of payment, safe to poll, and what to do with delivered/failed results. This is direct operational guidance that leaves little ambiguity.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct aspect of the eSIM purchasing workflow: coverage, device compatibility, country listing, package search, package details, checkout creation, and order status. There is no overlap between tools.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using snake_case (check_, create_, get_, list_, search_). The verbs are specific to the action and nouns describe the resource, creating a predictable pattern.

Tool Count5/5

Seven tools is well within the ideal range for a domain-specific server. Each tool covers a step in the journey from discovery to delivery, with no redundant utilities.

Completeness5/5

The tool set covers the entire eSIM purchase lifecycle: discovery (list_countries, search_packages, get_package_details), compatibility verification (check_device_compatibility), coverage assessment (check_coverage), payment (create_checkout), and order tracking (check_order_status). No obvious gaps exist for the intended use case.

Resources