Skip to main content
Glama

create_escrow_hold

Reserve credits: deducts amount from an existing user and parks it in a hold (status held), returning hold_id. Finish with capture_escrow_hold or release_escrow_hold; a hold past expires_at can be released back at any time. Pass idempotency_key on anything an agent might retry: a replay returns the original hold (idempotent_replay: true, with its current status) and holds nothing more; the same key on a different request is 409 IDEMPOTENCY_KEY_REUSED. Without a key every call places another hold. Errors: 400 INSUFFICIENT_CREDITS, 404 USER_NOT_FOUND. 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": {
      "credit_type_id": "<credit_type_id>",
      "amount": "<amount>"
    },
    "name": "create_escrow_hold"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesCredits to hold
reasonNo
api_keyNoCred API key (optional if set via the x-api-key header)
user_idNoExternal user ID of the holder
metadataNo
expires_atNoISO timestamp after which the hold can be released back to the holder
project_idNoCred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)
user_emailNoHolder email (checked first)
reference_idNoYour reference, e.g. an order ID (filterable in list_escrow_holds)
x402_paymentNoBase64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD
credit_type_idYesCredit type to hold
idempotency_keyNoUnique key for this hold (max 255 chars). Retrying with the same key and same arguments returns the first result instead of repeating it; reusing it for different arguments fails with 409 IDEMPOTENCY_KEY_REUSED. Generate a fresh key (e.g. a UUID) per intended operation and reuse it only to retry that operation.

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

A4.9/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: it discloses the cost model (1 CRD per call, charged even on rejection, except 429 RATE_LIMITED), the idempotent-replay semantics including the returned idempotent_replay flag and current status, the 409 IDEMPOTENCY_KEY_REUSED collision case, and the 400/404 error codes. It also tells the agent that error results carry a request_id to quote to support, which is operationally useful context no structured field provides.

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?

It is a single dense paragraph, but it is well ordered: core action and return value first, lifecycle follow-ups second, retry contract third, error codes and billing last. Every sentence carries distinct operational information – no filler, no restatement of the name or title.

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

Completeness5/5

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

For a 12-parameter, money-moving mutation with no annotations and no output schema, the description covers what an agent needs: what it returns (hold_id), what it costs, how to make it retry-safe, what errors mean, and how the hold is later resolved. The remaining parameters are described in the schema itself at high coverage, so nothing critical is left dangling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the baseline is 3; the description earns above baseline by explaining the consequence of idempotency_key omission and reuse, which is cross-parameter behavior the schema only partly states. It does not touch the user-identification parameters (user_id vs user_email resolution order), project_id, reference_id, or the x402_payment recovery path, so several documented-but-interrelated parameters get no added narrative.

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?

The opening clause is a specific verb-plus-resource: it reserves credits by deducting from an existing user and parking them in a hold with status 'held', returning hold_id. It also implicitly distinguishes itself from the sibling tools that finish the lifecycle (capture_escrow_hold, release_escrow_hold), so an agent can identify the entry point in the escrow flow 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 Guidelines5/5

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

The description states the follow-up path explicitly ('Finish with capture_escrow_hold or release_escrow_hold') and defines the expiry escape hatch ('a hold past expires_at can be released back at any time'). It also gives a concrete rule for when to use idempotency_key ('anything an agent might retry') and what happens if you omit it ('every call places another hold') – that is a genuine when-to-use criterion rather than a restatement of the parameter.

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