Skip to main content
Glama

create_order

Order one or more photos in one request. The person or organisation that pays must accept the licence terms and the immediate-delivery waiver. With a wallet_key (or an 'Authorization: Bearer nkfw_...' header), the order is paid at once from the agent wallet and the answer holds the download links, licences and invoice. Without one, it returns a card payment link for a person, and an order_token.

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": {
      "accept_terms": "<accept_terms>",
      "immediate_delivery_waiver": "<immediate_delivery_waiver>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
quoteNo
licenseeNo
photo_idsNoPhoto ids like NKF-ABCD1234
wallet_keyNoAgent wallet key nkfw_... (secret)
accept_termsYes
idempotency_keyNo
immediate_delivery_waiverYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / wallet_key
      Added value: +{
      +  "description": "Agent wallet key nkfw_... (secret)",
      +  "type": "string"
      +}
  2. Changed11 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / accept_terms / description
      Removed value: -"True: the buyer accepts the licence terms"
    • removedInput schema / properties / buyer_country
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / buyer_entity
      Removed value: -{
      -  "description": "Company or organisation to print on the licence",
      -  "type": "string"
      -}
    • removedInput schema / properties / buyer_name
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / idempotency_key / description
      Removed value: -"Random string of 16-128 characters chosen by the caller, reused when retrying"
    • removedInput schema / properties / immediate_delivery_waiver / description
      Removed value: -"True: the buyer wants immediate delivery of the digital content and waives any withdrawal right"
    • addedInput schema / properties / licensee
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / photo_ids
      Added value: +{
      +  "description": "Photo ids like NKF-ABCD1234",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • removedInput schema / properties / quote / description
      Removed value: -"Quote string from get_quote"
    • changedInput schema / required
      Previous value: -[
      -  "quote",
      -  "accept_terms",
      -  "immediate_delivery_waiver",
      -  "idempotency_key"
      -]New value: +[
      +  "accept_terms",
      +  "immediate_delivery_waiver"
      +]
  3. Added

TDQS

A3.9/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 substantial work: it discloses the two payment paths, the mandatory licence-terms and immediate-delivery-waiver acceptance, and exactly what each path returns (download links, licences, invoice vs. a card payment link plus order_token). Gaps remain around idempotency/duplicate handling, reversibility, and error conditions for a mutating purchase 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?

Three sentences, front-loaded with the core action, then prerequisites, then the branching return behavior. Every clause carries information; nothing is restated from the schema or wasted on filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a payment-mutating tool with zero annotation coverage and no output schema, the description covers the critical acceptance requirements and both return shapes well. It is still incomplete on idempotency, quote usage, and how the licensee field relates to the paying party, which an agent would need before calling it confidently.

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 only 29% across 7 parameters, and the description compensates for some: it explains wallet_key semantics and the header alternative, and establishes accept_terms and immediate_delivery_waiver as hard prerequisites. But quote, photo_ids, licensee, and idempotency_key get no explanation, and idempotency_key in particular is a meaningful omission for a payment tool.

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?

States a specific verb and resource — 'Order one or more photos in one request' — which unambiguously distinguishes it from the read-side siblings like get_order_status, get_download_links, and get_license. It stops short of naming any sibling explicitly, so it lands at a clear 4 rather than a 5.

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 explicit conditional guidance on the two invocation modes: with a wallet_key (or Bearer nkfw_ header) the order is paid immediately, without one it falls back to a card payment link for a human. That is genuinely actionable context. It offers no exclusions or pointers to prerequisites such as get_quote, even though a 'quote' parameter exists.

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