Skip to main content
Glama

Exchange: Order

speedbot_exchange_order
DestructiveIdempotent

Prepay a published fixed-price service via x402 after operator approval. Read speedbot_exchange_service for the current version, terms and buyer total. The first order call returns a payment challenge; retry the same request_id and payload with payment_signature (or HTTP PAYMENT-SIGNATURE). An uncertain payment stays payment_pending: retry without signing again. Assignment and provider notification follow independently confirmed payment only. Confirm the current version, schemas, private fulfillment, published pricing model and bounded buyer total. Stored buyer-fee agreements and explicitly agreed inclusive v2 terms remain separate. Escrow covers non-delivery and invalid result shape, not quality. Revision and automatic acceptance limits are frozen in the order.

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_id": "<service_id>",
      "service_version": "<service_version>",
      "input": "<input>",
      "max_total_usdc": "<max_total_usdc>",
      "pricing_model": "<pricing_model>",
      "request_id": "<request_id>"
    },
    "name": "speedbot_exchange_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPrivate fulfillment input conforming to the inspected listing input schema.
networkNoSelect a published available network for new financial requests. Existing obligations retain their stored network.
agent_keyNoPrivate agent key from speedbot_register. Store the one-time key securely before acting; verify a recovery wallet while authenticated to replace a lost key without losing identity. Pass here, or send Authorization: Bearer. Never publish it.
parent_idNoOptional parent Job ID for an authorized subtask within its budget.
request_idYesStable identifier for the order and its original payment recovery.
service_idYesExact standing service ID previously inspected for this authorized purchase.
pricing_modelYesExact pricing model returned by the listing read.
max_total_usdcYesMaximum fee-inclusive USDC total the buyer authorized for this order.
public_consentNoLegacy compatibility field; new order contents remain private.
source_contextNoOptional private, client-reported origin. Not proof of a match or independent ownership. Omit unknown attribution. Never include credentials or private URLs.
service_versionYesCurrent listing version whose price, delivery and acceptance terms the buyer reviewed.
transaction_hashNoRecovery hint for an existing pending payment only.
payment_signatureNox402 v2 signature for the original challenge. Never create another signature while payment_pending.
quote_requirementsNoOriginal quote requirements when confirming the reviewed quote.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / input / description
      Added value: +"Private fulfillment input conforming to the inspected listing input schema."
    • addedInput schema / properties / max_total_usdc / description
      Added value: +"Maximum fee-inclusive USDC total the buyer authorized for this order."
    • addedInput schema / properties / parent_id / description
      Added value: +"Optional parent Job ID for an authorized subtask within its budget."
    • addedInput schema / properties / pricing_model / description
      Added value: +"Exact pricing model returned by the listing read."
    • addedInput schema / properties / quote_requirements / description
      Added value: +"Original quote requirements when confirming the reviewed quote."
    • addedInput schema / properties / request_id / description
      Added value: +"Stable identifier for the order and its original payment recovery."
    • addedInput schema / properties / service_id / description
      Added value: +"Exact standing service ID previously inspected for this authorized purchase."
    • addedInput schema / properties / service_version / description
      Added value: +"Current listing version whose price, delivery and acceptance terms the buyer reviewed."
  2. Added
  3. Removed
  4. Changed1 schema field changed
    • changedInput schema / properties / pricing_model / enum
      Previous value: -[
      -  "buyer_fee_v1",
      -  "commission_inclusive_v2"
      -]New value: +[
      +  "buyer_fee_v1",
      +  "commission_inclusive_v2",
      +  "listing_commission_v2"
      +]
  5. Added
  6. Removed
  7. Added
  8. Removed
  9. Added
  10. Removed
  11. Changed2 schema fields changed
    • addedInput schema / properties / payment_signature
      Added value: +{
      +  "description": "x402 v2 signature for the original challenge. Never create another signature while payment_pending.",
      +  "maxLength": 18000,
      +  "type": "string"
      +}
    • addedInput schema / properties / transaction_hash
      Added value: +{
      +  "description": "Recovery hint for an existing pending payment only.",
      +  "pattern": "^0x[a-fA-F0-9]{64}$",
      +  "type": "string"
      +}
  12. Changed1 schema field changed
    • changedInput schema / properties / agent_key / description
      Previous value: -"Private agent key from speedbot_register. Pass here, or send Authorization: Bearer. Never publish it."New value: +"Private agent key from speedbot_register. Store the one-time key securely before acting; it cannot currently be recovered. Pass here, or send Authorization: Bearer. Never publish it."
  13. Changed1 schema field changed
    • changedInput schema / properties / agent_key / description
      Previous value: -"Private individual agent key. Prefer Authorization: Bearer. Never put a key in a URL or public content."New value: +"Private agent key from speedbot_register. Pass here, or send Authorization: Bearer. Never publish it."
  14. Changed1 schema field changed
    • addedInput schema / properties / source_context
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Optional private, client-reported origin. Not proof of a match or independent ownership. Omit unknown attribution. Never include credentials or private URLs.",
      +  "properties": {
      +    "intro_id": {
      +      "pattern": "^intro_[a-f0-9]{32}$",
      +      "type": "string"
      +    },
      +    "path": {
      +      "enum": [
      +        "direct",
      +        "catalog",
      +        "work_suggestion",
      +        "work",
      +        "subtask",
      +        "external"
      +      ],
      +      "type": "string"
      +    },
      +    "room_id": {
      +      "pattern": "^room_[a-f0-9]{32}$",
      +      "type": "string"
      +    },
      +    "source": {
      +      "maxLength": 120,
      +      "minLength": 1,
      +      "pattern": "^[a-zA-Z0-9_.:/ -]+$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "path"
      +  ],
      +  "type": "object",
      +  "writeOnly": true
      +}
  15. Added

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the challenge/retry protocol, the payment_pending state machine, that assignment and provider notification only follow independently confirmed payment, and that escrow covers non-delivery and invalid result shape but not quality. The destructiveHint/openWorldHint/idempotentHint flags are consistent with the described irreversible spend and same-request_id retry. It stops short of stating spend limits, failure refunds, or what a successful response contains.

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?

Front-loaded with the action, then the payment flow, then the commercial caveats — a sensible order for a 14-parameter financial tool at roughly 100 words. Some sentences are terse, unparsable fragments ("Stored buyer-fee agreements and explicitly agreed inclusive v2 terms remain separate.") that cost a pass at first read.

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?

No output schema exists, and the description covers the meaningful response states (payment challenge, payment_pending) plus the escrow and frozen-acceptance consequences. It is missing what a successful order returns (order/job identifier, delivery timing), which matters for an expensive irreversible call.

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 description coverage is 100% and the schema already documents request_id as the payment-recovery key and payment_signature as tied to the original challenge. The description reinforces the retry contract but adds no syntax, format, or constraint detail the schema lacks, so it sits at the high-coverage baseline.

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?

Opens with a specific verb and resource ("Prepay a published fixed-price service via x402") plus the gating condition (operator approval), and points at the sibling speedbot_exchange_service for pre-reading. An agent can distinguish this from exchange_read or exchange_service without opening any 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?

Gives a clear pre-call prerequisite (read speedbot_exchange_service for version, terms and buyer total) and an explicit two-step protocol for the payment challenge retry and the payment_pending case. It never states when not to use this tool versus siblings like speedbot_hire or exchange_read, so it falls short of a 5.

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