Skip to main content
Glama

Email a new confirmation code

resend_code

Email the buyer a new confirmation code when the first did not arrive or expired (30 minutes). Use it only after place_order, when the buyer says no email came (after 10 minutes and a spam check) or the code expired; do not use it to confirm (confirm_order). Needs order_number and order_secret from place_order. At most 2 resends per order request; the old code stops working. Returns status: sent, already (confirmed, nothing to resend), invalid, limit, locked, expired (place a new order request); resends_left and a message.

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>"
    },
    "name": "resend_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
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. Changed2 schema fields changed
    • 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?

Beyond the annotations, it discloses the rate limit (at most 2 resends per order), the side effect that the old code stops working, the 30-minute expiry, and every terminal status including locked/limit cases. The full status vocabulary plus resends_left removes any ambiguity about outcomes, and nothing conflicts with the declared hints.

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?

The description is front-loaded with the action and the usage rule, then closes with return values — a sensible order. It is dense with semicolons and parentheses but nearly every clause carries operational information, so little could be cut without losing guidance.

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?

For a stateful, rate-limited mutation with no output schema, the description supplies the expiry window, the resend cap, the invalidation behavior, and the full status set with what each implies. An agent could handle every branch, including the "place a new order request" recovery, from the text alone.

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 both parameters are already documented with type, pattern, and example. The description only restates their origin in place_order and adds the note that order_secret is shown once, which is already in the schema text. Baseline 3 is correct when the schema does the work.

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 uses a specific verb and resource ("Email the buyer a new confirmation code") and immediately scopes it to code redelivery after place_order. It explicitly distinguishes itself from confirm_order, so an agent can separate it from both siblings without opening a schema.

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?

It names the trigger conditions (buyer reports no email after 10 minutes plus a spam check, or the code expired), the negative case ("do not use it to confirm (confirm_order)"), and the prerequisite chain (only after place_order). The alternative is named and the rule that selects it is stated.

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