Skip to main content
Glama

Check whether an order was paid

check_order
Read-onlyIdempotent

Check the state of an order from the link returned by create_business_card, update_business_card or print_design. Use it after the user says they have paid, or when they ask whether their order went through. The result's state is one of: none (the user has not started checkout), started (checkout was opened but nothing is paid yet), paid (paid and in production), refunded (paid and later refunded), canceled (canceled before it was paid), failed (the payment did not go through), or unknown (the link does not match any proof). The order is complete only when the state is paid. Once an order exists the result also gives statusUrl, the user's own page for following that order, which you can pass on to them.

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": {
      "order": "<order>"
    },
    "name": "check_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYesThe order link returned by create_business_card, update_business_card or print_design, or the id inside it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive behavior, and the description adds the important semantics: the full state vocabulary, the rule that only 'paid' means complete, and the 'unknown' case for unmatched links. It also notes the statusUrl return field. It stops short of stating rate limits or what happens between polls, so it is strong rather than exhaustive.

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 action and trigger, and the state enumeration is long but load-bearing since no output schema exists. The sentences are dense with information rather than padded, though the list-heavy middle section could be tightened.

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?

There is no output schema, so the description carries the return-contract burden and does so fully: all seven state values are defined and the statusUrl field is explained. For a single-parameter read-only tool this leaves nothing an agent needs to call it correctly.

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 real meaning by tying the value to the outputs of three named tools and implying that polling the same order repeatedly is safe. It does not add format detail for the string itself, which the schema already constrains.

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 ('check the state of an order') plus input provenance, distinguishing it cleanly from create_business_card, update_business_card and print_design, which produce the very links this tool consumes.

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?

Gives explicit triggering conditions: after the user says they paid, or when they ask whether the order went through. It also names the three sibling tools that generate valid input, so the agent knows when this tool is reachable and when it is not.

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.

Resources