Skip to main content
Glama

bull_agreement_create

Use when your agent must pay an agent it does not trust, and the payment should depend on conditions: a programmable escrow ("do A when B does C"), built from Bull blocks. The payer locks USDC (Base), USDG/ETH/any ERC-20 (Robinhood Chain); the payee is paid when ALL conditions are true: a time passed, a named agent or arbiter attested (confirmed delivery), an objection or veto window ended without an objection, k of n agents voted yes (quorum), another Bull deal settled, or an onchain value (token balance, price) crossed a level. If the conditions are not met by expiry, anyone can refund the payer. Non-custodial, no account, no signature; Bull never holds funds. Returns the approve and createAgreement transactions for the payer wallet to send. Prefer bull_agreement_from_template for standard deals. Not for paying per API call with tiny amounts (use plain x402).

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": {
      "payer": "<payer>",
      "payee": "<payee>",
      "amount": "<amount>",
      "conditions": "<conditions>"
    },
    "name": "bull_agreement_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNo"eth" (default, native ETH on both chains), the chain's stablecoin ("usdg" on Robinhood Chain, "usdc" on Base) or an ERC-20 address. Whole units.
chainNorobinhood (default) or base.
payeeYesWallet that is paid when every condition is true.
payerYesWallet that locks the funds. It sends the approve and createAgreement transactions.
termsNoThe agreement in plain words (optional). Its hash is stored onchain.
amountYesAmount to lock in WHOLE units, e.g. "500".
conditionsYes1 to 8 conditions, all must be true. Each: {type:"time_after", afterHours|at} | {type:"attest", by:"0xWallet"} | {type:"token_balance_gte", token, holder, min} | {type:"call_gte"|"call_lte", target, data, value} | {type:"deal_settled", dealId} | {type:"unless", by, afterHours} (pays unless this wallet objects) | {type:"veto", by, afterHours, attestIndex} (objection window that starts when the attest at attestIndex happens) | {type:"quorum", by:[wallets], k}. A time_after or unless must end before expiryHours.
expiryHoursNoHours until anyone can refund the payer if the conditions are not met. Default 72.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / amount / description
      Previous value: -"Amount to lock, e.g. \"500\"."New value: +"Amount to lock in WHOLE units, e.g. \"500\"."
    • changedInput schema / properties / asset / description
      Previous value: -"\"eth\", \"usdg\" or a token address. Default eth."New value: +"\"eth\" (default, native ETH on both chains), the chain's stablecoin (\"usdg\" on Robinhood Chain, \"usdc\" on Base) or an ERC-20 address. Whole units."
    • changedInput schema / properties / chain / description
      Previous value: -"robinhood (default) or base. Base pays in USDC (asset \"usdc\")."New value: +"robinhood (default) or base."
  2. Changed1 schema field changed
    • addedInput schema / properties / chain
      Added value: +{
      +  "description": "robinhood (default) or base. Base pays in USDC (asset \"usdc\").",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / conditions / description
      Previous value: -"1 to 8 conditions, all must be true. Each: {type:\"time_after\", afterHours|at} | {type:\"attest\", by:\"0xWallet\"} | {type:\"token_balance_gte\", token, holder, min} | {type:\"call_gte\"|\"call_lte\", target, data, value} | {type:\"deal_settled\", dealId} | {type:\"unless\", by, afterHours} (pays unless this wallet objects) | {type:\"quorum\", by:[wallets], k}. A time_after or unless must end before expiryHours."New value: +"1 to 8 conditions, all must be true. Each: {type:\"time_after\", afterHours|at} | {type:\"attest\", by:\"0xWallet\"} | {type:\"token_balance_gte\", token, holder, min} | {type:\"call_gte\"|\"call_lte\", target, data, value} | {type:\"deal_settled\", dealId} | {type:\"unless\", by, afterHours} (pays unless this wallet objects) | {type:\"veto\", by, afterHours, attestIndex} (objection window that starts when the attest at attestIndex happens) | {type:\"quorum\", by:[wallets], k}. A time_after or unless must end before expiryHours."
  4. Changed1 schema field changed
    • changedInput schema / properties / conditions / description
      Previous value: -"1 to 8 conditions, all must be true. Each: {type:\"time_after\", afterHours|at} | {type:\"attest\", by:\"0xWallet\"} | {type:\"token_balance_gte\", token, holder, min} | {type:\"call_gte\"|\"call_lte\", target, data, value}."New value: +"1 to 8 conditions, all must be true. Each: {type:\"time_after\", afterHours|at} | {type:\"attest\", by:\"0xWallet\"} | {type:\"token_balance_gte\", token, holder, min} | {type:\"call_gte\"|\"call_lte\", target, data, value} | {type:\"deal_settled\", dealId} | {type:\"unless\", by, afterHours} (pays unless this wallet objects) | {type:\"quorum\", by:[wallets], k}. A time_after or unless must end before expiryHours."
  5. Added

TDQS

A4.8/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 custody model (non-custodial, no account, no signature, Bull never holds funds), the funding flow (payer locks USDC/USDG/ETH/ERC-20), the refund path (anyone can refund payer after expiry if conditions unmet), and that it returns approve + createAgreement transactions for the payer to send. That is materially more than the mutation semantics an agent would otherwise have to guess.

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?

Front-loaded with a 'Use when' clause and the when-not rule, and every sentence adds routing or behavioral information. The condition enumeration is dense and slightly run-on, but it is load-bearing content rather than filler.

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 an 8-parameter escrow-creation tool with no output schema and no annotations, the description covers the money flow, condition semantics, expiry/refund behavior, and the return value. Nothing an agent needs to call it safely appears to be missing.

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 100%, so the baseline is 3, and the description pushes past it by explaining that ALL listed conditions must hold and by enumerating condition families (time, attest/arbiter, veto/objection window, quorum, deal_settled, onchain value) in conceptual terms. It stops short of documenting remaining fields like chain/asset defaults beyond what the schema already states.

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?

States a concrete verb and resource — build a programmable escrow agreement from Bull blocks — and frames the exact scenario it serves (paying an untrusted agent conditionally). It distinguishes itself from bull_agreement_from_template and from plain x402 in the same breath, so an agent can route correctly without inspecting schemas.

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 when-to-use condition ('must pay an agent it does not trust, and the payment should depend on conditions'), explicit when-not ('Not for paying per API call with tiny amounts (use plain x402)'), and a named preferred alternative for standard deals (bull_agreement_from_template). Both exclusions and alternatives are stated, not inferred.

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