Skip to main content
Glama

capture_escrow_hold

Settle a hold (status captured). amount captures part (default: all); the uncaptured remainder returns to the holder. With to_user_id/to_user_email the captured credits go to that user (created if new) — marketplace/P2P settlement; otherwise they stay deducted (settled to the platform). 409 HOLD_NOT_ACTIVE if already settled, 400 CAPTURE_EXCEEDS_HELD. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.

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": {
      "hold_id": "<hold_id>"
    },
    "name": "capture_escrow_hold"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoCredits to capture (default: the full hold)
reasonNo
api_keyNoCred API key (optional if set via the x-api-key header)
hold_idYesHold ID
metadataNo
project_idNoCred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)
to_user_idNoExternal ID of the recipient
x402_paymentNoBase64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD
to_user_emailNoEmail of the recipient

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Cred project ID (optional; the API key already identifies the project)"New value: +"Cred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does it well: precondition that the hold must be active (409 HOLD_NOT_ACTIVE), the 400 CAPTURE_EXCEEDS_HELD guard, the 1 CRD charge even on rejection, the free 429 case, and request_id in error results. It omits auth/permission requirements and whether a capture can be reversed.

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?

Dense but front-loaded: the core settle semantics come first, followed by branch behavior, error codes, and cost. Nearly every clause carries operational value, though the cost and error sentences could be tightened.

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?

Nine parameters, nested metadata, no output schema, and no annotations make this a complex mutation, and the description covers behavior, failure modes, and cost thoroughly. It still says nothing about what a successful capture returns or what reason/metadata are used for, leaving gaps an agent may need to fill.

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 78%, so the schema already documents most parameters. The description adds genuine meaning for amount (partial capture, default full, remainder returns) and the to_user_id/to_user_email pair (recipient created if new, marketplace settlement), but leaves reason, metadata, project_id, and x402_payment entirely to 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?

States a specific verb and resource ('Settle a hold (status captured)') and explains the two settlement modes precisely, including that the uncaptured remainder returns to the holder. It does not explicitly contrast with the sibling release_escrow_hold, so an agent must still infer the division of labor between the two.

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 clear conditional guidance: supply to_user_id/to_user_email for marketplace/P2P settlement, omit them to settle to the platform. It also discloses the cost trigger and the 429 exception. It stops short of stating when to prefer this over release_escrow_hold or when to use partial vs full capture.

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