Skip to main content
Glama

Acme Store

Place a sandbox order

place_order
Idempotent

Turn a cart into an order. Use it once get_cart shows what the customer wants; the checkout is a sandbox, so no payment is taken and nothing is shipped. Returns the order with its number, totals and confirmation_path, or an error when the cart is empty or the stock is gone.

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": {
      "email": "<email>",
      "name": "<name>"
    },
    "name": "place_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesthe customer's name, 1 to 120 characters
emailYesan email address for the order; no message is sent to it
cart_idNothe cart.id that add_to_cart returned; leave out in a browser, which sends its own cart cookie

Output Schema

NameRequiredDescriptionDefault
errorNo
orderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description adds important behavioral context: no payment is taken, nothing is shipped, and failures occur for empty carts or missing stock. It also mentions the returned order details, though it does not discuss permissions or other operational constraints. This is useful disclosure for a mutation tool whose annotations already cover safety hints.

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?

The description is three tight sentences, front-loading the purpose before usage and return/error behavior. Every sentence contributes useful context without repetition or filler.

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 three-parameter checkout tool with complete schema coverage, annotations, and an output schema, the description supplies the missing operational context. It covers purpose, usage timing, sandbox effects, and important error cases, which is sufficient 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 description coverage is 100%, so name, email, and cart_id are already documented in the input schema. The description does not add parameter-level meaning beyond what the schema provides. Baseline 3 is appropriate when the schema carries full parameter semantics.

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 states a specific verb and resource: "Turn a cart into an order." It also distinguishes the action from cart preparation by tying it to get_cart and clarifies the sandbox scope. An agent can identify this as the checkout/finalization step without opening the 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?

It gives clear usage context: call it once get_cart shows what the customer wants. It also notes sandbox behavior and error conditions, but it does not explicitly contrast alternatives such as cancel_order or update_cart_item. The guidance is strong but not fully exhaustive.

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