Skip to main content
Glama

Donewire

Get exact payment instructions for an assigned task

create_payment_intent
Idempotent

Get exact payment instructions for an assigned task. Escrow mode (mode="escrow"): returns escrow.deposit_calls (1: ERC-20 approve, 2: deposit into the escrow contract) with ready-to-send call data; the money stays locked until you release it. Direct mode: returns the two transfers (worker pay -> worker wallet, fee -> platform wallet). Idempotent: same Idempotency-Key returns the same intent. Requires API key.

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": {
      "job_id": "<job_id>",
      "asset": "<asset>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "create_payment_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesAsset code from get_payment_options, e.g. "USDC_BASE_SEPOLIA"
job_idYesTask id
idempotency_keyYesUnique key for this logical request (e.g. a UUID). Retrying with the same key never creates duplicates.

Output Schema

NameRequiredDescriptionDefault
idYes
modeYes
assetYes
escrowNoPresent in escrow mode
job_idYes
statusYes
amountsYes
networkYes
expires_atYes
transactionsYes
transfers_requiredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, but the description adds real substance beyond them: escrow funds stay locked until release, the returned calls are ready-to-send, and an API key is required. It also restates idempotency with the concrete guarantee that a repeated Idempotency-Key returns the same intent rather than creating a duplicate.

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?

The opening sentence states the outcome, then mode-specific returns, then idempotency and auth requirements — a sensible front-to-back ordering with no filler. It is dense but readable; the only cost is the mode branch referencing a parameter the schema does not expose.

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?

An output schema exists, so return values need not be explained, yet the description still usefully names the key payload fields and adds the auth requirement. It is incomplete on two points: no differentiation from the adjacent get_payment_intent, and the unsupported mode parameter leaves the actual request shape ambiguous for a mutation tool.

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 100% (job_id, asset, idempotency_key all documented), so the schema carries parameter meaning and baseline 3 applies. The description adds a 'mode="escrow"' selector that does not exist in the input schema, which is a genuine inconsistency an agent could trip on, while asset sourcing (from get_payment_options) is already stated in the schema.

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 description states a concrete outcome: 'Get exact payment instructions for an assigned task', then enumerates exactly what is returned in each mode (escrow.deposit_calls with approve + deposit, or the two direct transfers). The only gap is that it never distinguishes itself from the sibling get_payment_intent, and the title ('Get ...') sits slightly at odds with the create_ verb in the name.

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?

Usage context is implied rather than stated: it applies to an assigned task, and the escrow vs. direct split is explained so an agent knows which branch of output to expect. There is no explicit when-to-use/when-not-to-use guidance and no routing advice against get_payment_intent or get_payment_options (the latter is only mentioned as the source of the asset code).

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