Skip to main content
Glama

Place Order

place_order

Convert a cart into an order by providing a cart_id; decrements stock, returns an order_id like ORD-XXXXXXXX, and deletes the cart.

Instructions

Check out a cart created by add_to_cart.

Example: cart_id=cart-1 after adding SKU-1001. Decrements stock, returns an order_id like ORD-XXXXXXXX, and deletes the cart.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cart_idYesClient-generated cart handle, e.g. cart-123

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that stock is decremented, an order_id is produced, and the cart is deleted, which is the key destructive side effect an agent must anticipate. It stops short of describing failure behavior (e.g., insufficient stock, invalid or already-consumed cart) or whether checkout is reversible.

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?

Two compact sentences plus one example line, front-loaded with the action and followed by side effects. Every element earns its place, and the example illustrates the required handle rather than restating the type.

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?

An output schema exists, so return-value documentation is unnecessary, and the description still notes the order_id shape and the cart deletion. For a mutation tool with zero annotations, the remaining gap is error/edge-case behavior (empty cart, out-of-stock item), which is the only thing an agent might still need.

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% and the single cart_id parameter is already documented with an example format, so the schema does the heavy lifting. The description's inline example (cart_id=cart-1) is consistent with but not more informative than the schema's own 'cart-123' example, so it lands at the baseline.

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 ('Check out a cart') and explicitly ties it to the cart produced by add_to_cart, which distinguishes it from sibling add_to_cart and the read-only siblings (search, get_product_details, check_inventory, get_order_details). An agent can place this tool in the workflow without opening any 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?

The precondition is clear: it operates on a cart created by add_to_cart, and the worked example (cart_id=cart-1 after adding SKU-1001) reinforces the ordering constraint. It does not, however, state exclusions such as what to do with an empty cart or how it relates to get_order_details afterwards.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.