Skip to main content
Glama

Confirm order request with emailed code

confirm_order
Idempotent

Confirm an order request with the 6-digit code the buyer received by email, plus order_number and order_secret from place_order. Use it after place_order, when the buyer tells you the code. Do not call it without a code from the buyer; never guess it. Returns status: verified (sent to the manager), already (was confirmed before), invalid (wrong data; attempts_left shows how many tries remain), locked, expired (call resend_code); plus a message. 8 attempts per order request in total (a resent code does not reset them). After confirmation the request goes to a manager; no payment is taken.

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_number": "<order_number>",
      "order_secret": "<order_secret>",
      "code": "<code>"
    },
    "name": "confirm_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe 6-digit confirmation code from the email the buyer received, digits only, e.g. "482913". Ask the buyer for it; never guess (8 attempts per order request).
order_numberYesorder_number from the place_order reply: a positive integer, e.g. 1042.
order_secretYesorder_secret from the place_order reply: 32 lowercase hexadecimal characters. Pass it exactly as received; it is shown only in that reply, so keep it for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"The 6-digit confirmation code from the email the buyer received, digits only, e.g. \"482913\". Ask the buyer for it; never guess (8 attempts per order request)."
    • addedInput schema / properties / order_number / description
      Added value: +"order_number from the place_order reply: a positive integer, e.g. 1042."
    • changedInput schema / properties / order_secret / description
      Previous value: -"order_secret from the place_order reply"New value: +"order_secret from the place_order reply: 32 lowercase hexadecimal characters. Pass it exactly as received; it is shown only in that reply, so keep it for this conversation."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the attempt budget (8 per order, not reset by a resend), the full status vocabulary and what each means, and the downstream effect that the request goes to a manager with no payment taken. This matches the non-readOnly, non-destructive, idempotent annotation profile.

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 action and prerequisite, then prohibitions, then return statuses, then side effects — a logical order with no filler. The attempt limit is stated twice in spirit (description and schema), a small redundancy in an otherwise dense passage.

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, and the description fully compensates by enumerating every possible status value and its meaning, plus what happens after confirmation. An agent has everything needed to call it and interpret the result without further inference.

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 coverage is 100%, so the schema already documents formats, patterns, and provenance for all three parameters. The description reinforces the cross-tool dependency on place_order and the 'never guess' constraint, but largely restates what the schema already carries, so the baseline 3 applies.

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 ('Confirm an order request'), names the exact credential required (the 6-digit emailed code plus order_number and order_secret from place_order), and is clearly distinct from the sibling place_order/resend_code flows.

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 sequencing ('Use it after place_order, when the buyer tells you the code'), an explicit prohibition ('Do not call it without a code from the buyer; never guess it'), and an alternative path for the expired case ('call resend_code').

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