Skip to main content
Glama

The Purple Bear ordering

Repeat an order

repeat_order
Idempotent

Use when the customer wants the same as a past order. Needs their connected account. Rebuilds that order with today's menu and prices and returns a checkout link, like create_checkout_link. Items that changed are left out and listed in messages. Nothing is charged: the customer reviews and pays on the website.

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_code": "<order_code>"
    },
    "name": "repeat_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_codeYesThe order_code from get_my_orders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 rebuild semantics: today's menu and prices are applied, changed items are dropped and surfaced in 'messages', and no money moves because the customer reviews and pays on the website. That resolves the key ambiguity of a non-readOnly tool that returns a checkout link rather than charging.

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?

Five short sentences, front-loaded with the trigger condition, then prerequisites, then outcome and side-effect guarantees. Nothing is redundant with the title or schema.

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 compensates by explaining what comes back (a checkout link plus a messages list for omitted items) and that nothing is charged. For a one-parameter tool this leaves no material gap for correct invocation.

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% and the single order_code parameter already documents its pattern and that it comes from get_my_orders. The description adds no format or sourcing detail beyond that, so the schema carries the parameter burden and 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 — rebuilds a past order with today's menu and prices and returns a checkout link — and explicitly positions it relative to create_checkout_link. An agent can distinguish it from the sibling without opening either schema.

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?

Gives a clear trigger condition ('when the customer wants the same as a past order') plus a prerequisite ('needs their connected account'), and points to the analogous create_checkout_link flow. It stops short of stating when not to use it (e.g., no prior order, or partial changes needed).

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