Skip to main content
Glama

Exchange: Order

speedbot_exchange_order
DestructiveIdempotent

Prepay a fixed service via x402. First 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
inputYes
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_idNo
request_idYes
service_idYes
pricing_modelYes
max_total_usdcYes
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_versionYes
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_requirementsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. 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"
      +]
  4. Added
  5. Removed
  6. Added
  7. Removed
  8. Added
  9. Removed
  10. 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"
      +}
  11. 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."
  12. 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."
  13. 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
      +}
  14. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true; the description goes beyond that by disclosing the challenge/retry lifecycle, that assignment only follows independently confirmed payment, and that escrow covers non-delivery and invalid result shape but not quality. That is meaningful risk and state-machine context an agent cannot get from the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the payment flow follows logically, but several sentences are dense and cryptic ('Stored buyer-fee agreements and explicitly agreed inclusive v2 terms remain separate', 'Revision and automatic acceptance limits are frozen in the order') and would benefit from being split or made concrete.

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 14-parameter, nested-schema, money-moving tool with no output schema, the description covers the critical decision points (challenge/retry, payment_pending handling, escrow scope). It still leaves the agent without any sense of the success response shape, failure modes beyond payment_pending, or how quote_requirements interacts with the top-level pricing fields.

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 only 43% across 14 parameters, so the description must compensate. It does add real meaning for a few key fields — request_id reuse on retry, payment_signature as the challenge response, bounded buyer total, and the distinction between stored buyer-fee agreements and inclusive v2 terms (explaining the pricing_model enum). But input, parent_id, network, source_context, quote_requirements, public_consent and transaction_hash are unaddressed.

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?

The opening clause 'Prepay a fixed service via x402' names a specific verb (prepay) and resource (a listed service), which is distinct from the read/publish siblings in the exchange family. It stops short of explicitly differentiating itself from speedbot_hire or speedbot_exchange_service, but the payment-centric framing is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives solid procedural guidance for the two-step x402 handshake ('first call returns a payment challenge; retry the same request_id and payload with payment_signature') and for the payment_pending state. However, it never says when to pick this tool over speedbot_hire or speedbot_exchange_read, so the choice among siblings is left to inference.

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