Skip to main content
Glama
@opensmm/mcp-server

@opensmm/mcp-server

Official

Create an order

create_order
Idempotent

Places an order from a confirmed quote and returns payment requirements; include a unique client reference to prevent duplicate charges.

Instructions

Create an order from a quote. REQUIRES explicit user confirmation: first call get_quote, show the user the amount, then call this tool. Idempotent via clientReference: repeating with the same clientReference returns the same order without charging twice. The order is created with paymentStatus REQUIRES_PAYMENT and includes paymentRequirements; execution starts only after payment settles.

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": {
      "quoteId": "<quoteId>",
      "link": "<link>",
      "clientReference": "<clientReference>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkYesTarget URL/identifier
quoteIdYes
quantityNoDefaults to the quoted quantity
parametersNo
clientReferenceYesYour idempotency key, unique per intended order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description explains the idempotency mechanism (same clientReference returns the same order without a double charge) and the post-creation state machine: order is created as REQUIRES_PAYMENT with paymentRequirements, and execution only starts after payment settles. That is exactly the kind of consequence-and-lifecycle detail annotations cannot convey.

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 action is front-loaded, the confirmation precondition follows, and every sentence carries a distinct fact (idempotency, payment gating) with no filler. The final sentence crams two ideas (paymentStatus and settlement gating) into one clause, which slightly reduces readability.

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?

For a mutating 5-parameter tool with no output schema, the description covers safety, sequencing, and the payment lifecycle well. It does not say what an agent receives back (e.g., an order identifier to use with get_order_status) or what the nested parameters object contains, which are the remaining gaps.

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 60%, and the description adds real meaning for clientReference by describing the replay behavior. However, it says nothing about link, quantity (beyond the schema's default note), or the nested parameters object, so the under-documented parameters remain unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create an order from a quote" gives a specific verb and resource plus the source object, which distinguishes it from get_quote (which produces the input) and from get_order_status/cancel_order. It stops short of explicitly naming those siblings, so an agent must infer the boundary rather than read it.

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?

The description spells out a required call sequence: first call get_quote, show the user the amount, obtain explicit confirmation, then call this tool. That is an explicit precondition and named alternative, leaving nothing to inference about when this tool may be invoked.

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