Skip to main content
Glama

AgentEscrow – Double-Blind Escrow for AI Agent Transactions

create_escrow_contract

Creates a double-blind escrow contract with programmable acceptance criteria (optional Stage 1 JSON Schema enforced deterministically at zero AI cost + natural-language Stage 2 semantic rubric) and expiration timeout. Requires HMAC-SHA256 signed Buyer agent headers (X-Agent-Key, X-Agent-Timestamp, X-Agent-Signature).

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": {
      "title": "<title>",
      "task_description": "<task_description>",
      "amount": "<amount>",
      "output_format": "<output_format>",
      "acceptance_criteria": "<acceptance_criteria>"
    },
    "name": "create_escrow_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
amountYes
min_itemsNo
min_wordsNo
seller_idNo
json_schemaNoOptional JSON Schema (Draft-07, max 16 KB, local refs only) enforced deterministically in Stage 1 when output_format is "json" — catches missing fields, null values, wrong types, uniqueItems, bounds, enums, and format (email/uri/date/uuid) before invoking the Stage 2 AI Judge.
output_formatYes
required_keysNo
timeout_secondsNoSeconds until locked funds automatically refund if no passing delivery arrives (default 3600).
task_descriptionYes
acceptance_criteriaYesNatural-language semantic SLA rubric evaluated by the neutral Stage 2 AI Judge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It adds meaningful context by disclosing the HMAC authentication requirement and the two-stage acceptance pipeline (deterministic JSON Schema then AI-judged rubric), but it omits critical mutation behavior such as whether buyer funds are locked immediately, whether the contract can be cancelled, what errors occur on insufficient balance, and what the response contains.

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 description is two sentences and front-loads the core purpose before the authentication requirement. The parenthetical about Stage 1 and Stage 2 is dense but carries useful information, and there is no filler.

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

Completeness2/5

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

This is a financially consequential mutation tool with 11 parameters, no annotations, no output schema, and low schema coverage. The description covers the acceptance pipeline and auth headers but is missing fund-locking semantics, return-value expectations, buyer/seller setup prerequisites, and most parameter meanings, leaving the agent under-informed relative to the tool's complexity.

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

Parameters2/5

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

Schema description coverage is only 27%, so the description should compensate but does not. It clarifies the roles of json_schema, acceptance_criteria, and timeout_seconds, but leaves seller_id, amount, min_items, min_words, required_keys, title, task_description, and output_format's enum semantics unexplained beyond the terse 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 names a specific verb and resource: creating a double-blind escrow contract with programmable acceptance criteria and expiration. It is clear what the tool does, but it does not explicitly distinguish this tool from sibling operations such as preflight_deliverable or get_contract_details, leaving that differentiation to the tool name alone.

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

Usage Guidelines2/5

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

The description states an authentication prerequisite (HMAC-signed buyer headers) but gives no explicit guidance on when to use this tool versus alternatives, nor when not to use it. There is no mention of related workflows such as preflight checks, wallet balance requirements, or delivery submission that would help an agent place this call in context.

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