Skip to main content
Glama

create_order

Idempotent

Create an unpaid order from an accepted quote. Requires user intent to order. Return the checkout URL to the user; protect orderToken as a secret. Reuse the same idempotencyKey on retries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteIdYes
customerEmailNo
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / customerEmail / pattern
      Added value: +"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Discloses the side effect (creates an order), the non-charging nature (unpaid), sensitive output handling (protect orderToken), and idempotent retry behavior—context beyond the readOnly/idempotent/destructive hints. No contradiction with annotations.

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?

Three sentences with no filler: core purpose first, then an important consent precondition, then output handling and idempotency guidance. Every sentence earns its place.

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 still tells the agent what to return to the user (checkout URL), what to keep secret (orderToken), how to retry, and when invocation is appropriate. The missing customerEmail semantics are minor for successful invocation since it is optional.

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 descriptions are absent (0% coverage), so the description must compensate. It explains idempotencyKey's retry purpose and implies quoteId via 'accepted quote', but customerEmail is never mentioned and no guidance is given on its role or optionality, leaving a clear gap.

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 action ('Create'), object ('order'), and precondition ('from an accepted quote'), and the 'unpaid' modifier distinguishes it from pay_order while read-only siblings are clearly different. This is a clear, non-tautological purpose.

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 clear context: only when user intent to order exists and only for accepted quotes, plus retry guidance via idempotencyKey. It does not explicitly name sibling alternatives or exclusion cases, but the unpaid-order framing makes the relationship to pay_order evident.

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