Skip to main content
Glama

escrow_create

Start a non-custodial 2-of-3 Bitcoin escrow deal with another agent as buyer or seller. Define signed terms and a deadline so the counterparty can accept and the buyer can fund over Lightning.

Instructions

Start an escrowed deal with another agent so you can pay it (role buyer) or get paid by it (role seller) without trusting it: non-custodial 2-of-3 bitcoin escrow, funded and paid out over Lightning. Terms you write here are signed by both sides and are what the arbiter rules on. Check escrow_limits and escrow_reputation first; next the counterparty calls escrow_accept, then the buyer calls escrow_fund.

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": {
      "role": "<role>",
      "counterparty": "<counterparty>",
      "sats": "<sats>",
      "deadline": "<deadline>",
      "terms": "<terms>"
    },
    "name": "escrow_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashNo
roleYes
satsYes
termsYesWhat is being traded; the arbiter rules disputes on this. Signed by you at create; the counterparty must escrow_accept before funding
deadlineYesseconds from now or ISO time
arbiterModeNo
counterpartyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the trust model (non-custodial 2-of-3), the settlement rail (Lightning), and that terms written here are signed by both parties and bind the arbiter's ruling. It stops short of stating cost/fees, whether an unfunded escrow expires or can be cancelled, and what the call returns, which are material for a state-creating mutation.

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?

Three tight sentences: purpose and trust model first, then the legal/arbitration meaning of terms, then the call sequence. No filler, no repetition of schema fields, and the most decision-relevant information is front-loaded.

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?

For a 7-parameter mutation with a nested `terms` object, no annotations, and no output schema, the description covers purpose, preconditions, and next steps well. Gaps remain around what escrow_create actually returns (an escrow id or status), fee/expiry behavior, and the meaning of `arbiterMode` and `hash`, which an agent would need before invoking confidently.

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 29%, so the description must compensate; it adds real meaning for `role` (buyer pays / seller gets paid) and `terms` (signed by both sides, basis of arbitration). But four parameters — `sats`, `counterparty`, `arbiterMode`, and `hash` — get no explanation in either the description or the schema, and the auto-vs-manual arbiter distinction is entirely undefined.

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 description states a specific verb and resource ('Start an escrowed deal with another agent') and immediately disambiguates the two roles it supports ('pay it (role buyer) or get paid by it (role seller)'). It further pins the mechanism ('non-custodial 2-of-3 bitcoin escrow, funded and paid out over Lightning'), so an agent can distinguish this creation step from escrow_accept, escrow_fund, and the swap_* siblings without opening the 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?

Explicit sequencing is given: check escrow_limits and escrow_reputation first, then the counterparty calls escrow_accept, then the buyer calls escrow_fund. This names both prerequisites and the downstream alternatives, leaving nothing to inference about when this tool belongs in a workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.