Skip to main content
Glama

create_order

Place an order for a service. Needs credentials. Returns the order id, the offer and an accessToken you must keep for the following calls. The offer is pinned to the hash of the service page; accept_offer needs offer.version and offer.terms[language].hash from it. Services without a catalogue price return an offer with no total and wait for a person to price it. The request must come from a verified robot: signed by its maker (Web Bot Auth) or from the published addresses of its maker. Errors: KYA_VERIFICATION_REQUIRED (403) without it, MISSING_ followed by the field id when a required brief field is absent, UNEXPECTED_FIELD when the brief has a key the service does not declare.

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": {
      "service": "<service>",
      "brief": "<brief>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefYesRequired MCP argument: send an object, including {} when the selected service has no required brief fields. Direct REST may omit brief and treats that as {}; required catalog fields remain mandatory. One string per field the catalogue lists under this service in catalog.services[service].fields. Use each field id as the key. Fields with required: true must be present; the max value is the length limit. No other keys are accepted.
linesNoOnly for services that have catalog.services[service].configurator. One entry per item: item is an id from configurator.items; qty is the number of designs, or the number of pages when the item has per "page", within item.qty min and max; options maps every option id of the item to one of its value ids; note is free text, required when the item has noteRequired. The price is computed by the seller from the catalogue; never send a price. If any chosen item has price null, the order waits for a person to price it.
secretNoRequired unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The secret returned by register_agent.
serviceYesService id: one of the keys of catalog.services, as returned by the catalog tool.
clientIdNoRequired unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The clientId returned by register_agent.
languageNoLanguage of the offer, the terms and the documents. This MCP adapter defaults to en; direct REST requires payload.language explicitly.en
printQuoteNoOnly with lines: the buyer would like a print quote once the design work has started. Printing is not part of this order.
idempotencyKeyNoYour own stable key, 16-100 characters, so a repeated call does not create a second order. If omitted this MCP adapter generates a new key for each invocation; provide and reuse a key for retries. Direct REST always requires idempotencyKey.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / brief / description
      Previous value: -"Required MCP argument: send an object, including {} when the selected service has no required brief fields. Direct REST may omit brief and treats that as {}; required catalog fields remain mandatory. One string per field the catalogue lists under this service in catalog.services.<service>.fields. Use each field id as the key. Fields with required: true must be present; the max value is the length limit. No other keys are accepted."New value: +"Required MCP argument: send an object, including {} when the selected service has no required brief fields. Direct REST may omit brief and treats that as {}; required catalog fields remain mandatory. One string per field the catalogue lists under this service in catalog.services[service].fields. Use each field id as the key. Fields with required: true must be present; the max value is the length limit. No other keys are accepted."
    • changedInput schema / properties / clientId / description
      Previous value: -"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The clientId returned by register_agent."New value: +"Required unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The clientId returned by register_agent."
    • changedInput schema / properties / lines / description
      Previous value: -"Only for services that have catalog.services.<service>.configurator. One entry per item: item is an id from configurator.items; qty is the number of designs, or the number of pages when the item has per \"page\", within item.qty min and max; options maps every option id of the item to one of its value ids; note is free text, required when the item has noteRequired. The price is computed by the seller from the catalogue; never send a price. If any chosen item has price null, the order waits for a person to price it."New value: +"Only for services that have catalog.services[service].configurator. One entry per item: item is an id from configurator.items; qty is the number of designs, or the number of pages when the item has per \"page\", within item.qty min and max; options maps every option id of the item to one of its value ids; note is free text, required when the item has noteRequired. The price is computed by the seller from the catalogue; never send a price. If any chosen item has price null, the order waits for a person to price it."
    • changedInput schema / properties / secret / description
      Previous value: -"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The secret returned by register_agent."New value: +"Required unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The secret returned by register_agent."
  2. Changed4 schema fields changed
    • changedInput schema / properties / brief / description
      Previous value: -"One string per field the catalogue lists under this service in catalog.services.<service>.fields. Use each field id as the key. Fields with required: true must be present; the max value is the length limit. No other keys are accepted."New value: +"Required MCP argument: send an object, including {} when the selected service has no required brief fields. Direct REST may omit brief and treats that as {}; required catalog fields remain mandatory. One string per field the catalogue lists under this service in catalog.services.<service>.fields. Use each field id as the key. Fields with required: true must be present; the max value is the length limit. No other keys are accepted."
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Your own key, so a repeated call does not create a second order."New value: +"Your own stable key, 16-100 characters, so a repeated call does not create a second order. If omitted this MCP adapter generates a new key for each invocation; provide and reuse a key for retries. Direct REST always requires idempotencyKey."
    • addedInput schema / properties / language / default
      Added value: +"en"
    • changedInput schema / properties / language / description
      Previous value: -"Language of the offer, the terms and the documents. Defaults to en."New value: +"Language of the offer, the terms and the documents. This MCP adapter defaults to en; direct REST requires payload.language explicitly."
  3. Changed2 schema fields changed
    • addedInput schema / properties / lines
      Added value: +{
      +  "description": "Only for services that have catalog.services.<service>.configurator. One entry per item: item is an id from configurator.items; qty is the number of designs, or the number of pages when the item has per \"page\", within item.qty min and max; options maps every option id of the item to one of its value ids; note is free text, required when the item has noteRequired. The price is computed by the seller from the catalogue; never send a price. If any chosen item has price null, the order waits for a person to price it.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "item": {
      +        "type": "string"
      +      },
      +      "note": {
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "options": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "qty": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "item"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / printQuote
      Added value: +{
      +  "description": "Only with lines: the buyer would like a print quote once the design work has started. Printing is not part of this order.",
      +  "type": "boolean"
      +}
  4. Changed6 schema fields changed
    • addedInput schema / properties / brief / additionalProperties
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / brief / description
      Previous value: -"The fields the catalogue declares for this service."New value: +"One string per field the catalogue lists under this service in catalog.services.<service>.fields. Use each field id as the key. Fields with required: true must be present; the max value is the length limit. No other keys are accepted."
    • changedInput schema / properties / clientId / description
      Previous value: -"Your client identifier, if not sent in the Authorization header."New value: +"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The clientId returned by register_agent."
    • changedInput schema / properties / language / description
      Previous value: -"Language of the offer and the documents. Defaults to en."New value: +"Language of the offer, the terms and the documents. Defaults to en."
    • changedInput schema / properties / secret / description
      Previous value: -"Your secret, if not sent in the Authorization header."New value: +"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The secret returned by register_agent."
    • changedInput schema / properties / service / description
      Previous value: -"Service identifier from the catalogue."New value: +"Service id: one of the keys of catalog.services, as returned by the catalog tool."
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the mutation/safety profile, while the description supplies the substantive behavior: credential requirements, robot verification with the exact 403 error, the need to retain accessToken for later calls, the offer hash pinning to the service page, and the human-pricing fallback. The idempotencyKey guidance about reusing a key on retries is consistent with idempotentHint=false (the tool is not inherently idempotent; the caller supplies the key).

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?

Purpose is front-loaded and every sentence carries information about preconditions, return values, or failure modes. The final error-code sentence is dense but scannable; the offer/accept_offer detail is slightly compressed and requires a second read.

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?

There is no output schema, and the description compensates by naming the returned fields (order id, offer, accessToken) and their downstream use. For a nested-schema mutation tool with auth and verification requirements, the description covers preconditions, the unpriced-order path, and error codes without obvious gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains the MISSING_<field> error for absent brief fields and UNEXPECTED_FIELD for undeclared keys, which clarifies how strictly brief must match the catalogue. It also explains the relationship between the returned offer and accept_offer's version/terms hash parameters.

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 gives a specific verb and resource ("Place an order for a service") and the rest of the text establishes its place in the workflow relative to accept_offer, which no other sibling performs. An agent can distinguish this from accept_offer, start_payment, and order_status 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?

The description establishes sequencing clearly: it names what accept_offer needs from the returned offer, and it explains the branch where a service has no catalogue price and the order waits for human pricing. It also states the authentication precondition (verified robot via Web Bot Auth or published addresses). It stops short of explicitly stating when NOT to use it, e.g. that an existing order should be checked via order_status rather than re-placed.

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