Skip to main content
Glama

Washawash

confirm_order

Idempotent

Confirm ONLY after the customer explicitly approves the displayed booking and maximum authorization. May return a Stripe-hosted checkout URL; never collect card details. Requires OAuth scope orders:write.

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_id": "<order_id>",
      "approved": "<approved>",
      "authorized_cents": "<authorized_cents>"
    },
    "name": "confirm_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
approvedYes
order_idYes
authorized_centsYes

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, it discloses that the call may return a Stripe-hosted checkout URL, that card details must never be collected, and that the orders:write OAuth scope is required — meaningful auth and side-effect context the annotations do not convey. The annotations already cover idempotency (idempotentHint=true) and non-destructiveness, so the remaining gap is minor, though it does not say what happens if confirmation fails or the authorization expires.

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?

Three short sentences, each carrying distinct information — precondition, return/security behavior, and auth scope — with the most consequential constraint ('Confirm ONLY after...') front-loaded. No filler or repetition of the tool name.

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?

For a three-required-parameter mutation with an output schema and rich annotations, the definition covers the critical agent-facing concerns: gating precondition, OAuth scope, and a security constraint on payment data. The only shortfall is that individual parameter meanings, particularly the authorization cap, are left to the schema.

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 0%, so the description must compensate. It hints at the meaning of approved ('customer explicitly approves') and authorized_cents ('maximum authorization'), but never explains order_id's 32-hex format or the 10,000,000 cap and positive-only bound, relying entirely on the structural constraints in the schema.

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?

The description names a specific verb ('Confirm') tied to the booking/order being displayed, and the required-parameter set (order_id, approved, authorized_cents) makes the resource unambiguous. It stops short of explicitly contrasting with cancel_order or create_order_draft, but the action itself is clearly distinguishable from those siblings.

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?

It gives an explicit precondition: confirm ONLY after the customer explicitly approves both the displayed booking and the maximum authorization, which functions as a when-not gate. It does not name alternative tools or say what to do if approval has not been given, leaving that routing to inference.

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