Skip to main content
Glama
@serversareup/mcp-server

@serversareup/mcp-server

create_order

DestructiveIdempotent

Creates and submits a product order with full configuration through canonical checkout, returning an immediate charge or hosted checkout URL for payment; retries reuse an idempotency key.

Instructions

Purchase one product with its full configuration through the canonical checkout. Requires billing:write and instances:write. Use the current legalAcceptance from get_catalog with accepted:true only after authorization. A confirmed funded order may charge immediately; otherwise returns a hosted checkoutUrl for payment. Reuse the same idempotency_key and order on retries; only confirm may change from false to true. Poll get_order using orderId.

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": "<order>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare non-read-only, idempotent, destructive; the description goes well beyond that by explaining the two possible outcomes (a funded order may charge immediately versus returning a hosted checkoutUrl), the exact idempotency contract (only confirm may flip false to true on retries), and the authorization gate on legalAcceptance. That is precisely the mutation/charge behavior an agent must know before invoking a destructive, money-moving tool.

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 dense sentences, front-loaded with purpose and permissions before the payment-path nuance and retry rules. There is no filler; each sentence introduces a constraint the caller would otherwise get wrong.

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 nested-object mutation with no output schema, the description covers the critical gaps: charging side effects, the checkoutUrl branch, retry idempotency, and the get_order polling loop. It falls short only on the meaning of the optional nested fields (promoCode, useCredits, billingInterval, configuration) and on what a successful non-checkout response contains.

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?

With 0% schema description coverage the description must carry the parameter load, and it does well for idempotency_key, order.confirm, and order.legalAcceptance. However, the nested order fields quantity, billingInterval, configuration, promoCode, useCredits, organizationId, and openclawCredential receive no semantic explanation anywhere, so roughly half the payload remains opaque.

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 opening sentence names a specific verb (purchase), a scoped resource (one product with its full configuration), and the channel (the canonical checkout). That distinguishes it from get_catalog (browse) and get_order (read) without the agent needing to open a schema.

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?

It states prerequisites (billing:write and instances:write), a dependency ordering (pull legalAcceptance from get_catalog and pass accepted:true only after customer authorization), a retry rule (reuse the same idempotency_key and order), and a follow-up action (poll get_order with orderId). When-to-use, ordering, and the alternative for status checks are all explicit.

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