Skip to main content
Glama

bull_agreement_from_template

Use to settle with another agent in one call instead of assembling conditions: pick a block (template), fill its fields. Examples: arbiter_escrow (a third agent confirms delivery), milestones (pay per confirmed step), optimistic (paid automatically unless the payer objects in time), confirmed_with_cooling (arbiter confirms, then a veto window), panel (k of n agents vote), two_of_three, performance_bond. Non-custodial, no account. Returns the approve and createAgreement transactions for the payer to send. On Base pass chain "base" and asset "usdc".

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

Input Schema

NameRequiredDescriptionDefault
kNopanel: how many arbiters must vote yes.
opNoprice_trigger: "gte" or "lte". token_price_trigger: "above" or "below".
minNobalance_trigger: minimum balance.
refNoPartner code (optional).
dataNoprice_trigger: hex calldata of a view call that returns a uint256.
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 gets paid.
payerYesWallet that locks the funds.
priceNotoken_price_trigger: the level, e.g. "0.0002".
termsNoThe deal in plain words (optional).
tokenNobalance_trigger: token address. token_price_trigger: the token whose price triggers.
valueNoprice_trigger: threshold as an integer.
amountYesAmount in WHOLE units, e.g. "500".
dealIdNoafter_deal: the Bull escrow deal that must settle first.
holderNobalance_trigger: wallet to watch.
payeesNosplit_payment: 2 to 10 wallets that get paid.
sharesNosplit_payment: one positive number per payee, e.g. [70, 30].
targetNoprice_trigger: contract to read.
arbiterNoarbiter_escrow, milestones, performance_bond, confirmed_with_cooling: wallet that confirms. two_of_three: the tie-breaking third wallet (payer, payee and arbiter vote, any two release). Must be a third wallet.
priceInNotoken_price_trigger: "eth" (default, exact, the pool's quote asset) or "usd" (converted once at today's ETH/USD rate, NOT a live dollar level). token_price_trigger also uses the token prop (token whose price triggers). Works on robinhood and base: pass the same chain as the agreement; on Base the pool must be paired with ETH, WETH or USDC (a USDC pool: level in USDC, priceIn usd = USDC).
arbitersNopanel: 1 to 10 arbiter wallets.
paymentsNorecurring_payment: number of payments, 2 to 12 (amount is ONE payment).
templateYesTemplate name from bull_agreement_templates. All: arbiter_escrow, two_of_three, panel, optimistic, confirmed_with_cooling, milestones, scheduled_payment, recurring_payment, split_payment, after_deal, balance_trigger, price_trigger, token_price_trigger (Robinhood and Base), performance_bond. (delivery_vs_payment is a swap: use bull_settle.)
stepHoursNomilestones: hours between milestone deadlines. Default 168.
afterHoursNoscheduled_payment: hours from now until the payee can be paid.
everyHoursNorecurring_payment: hours between payments. Default 168.
milestonesNomilestones: number of steps, 2 to 8.
expiryHoursNoHours until the payer can be refunded. Default 72.
windowHoursNooptimistic: hours the payer has to object. Default 24. confirmed_with_cooling: veto window in hours after the arbiter confirms. Default 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / priceIn / description
      Previous value: -"token_price_trigger: \"eth\" (default, exact, the pool's quote asset) or \"usd\" (converted once at today's ETH/USD rate, NOT a live dollar level). token_price_trigger also uses the token prop (token whose price triggers). Robinhood Chain only."New value: +"token_price_trigger: \"eth\" (default, exact, the pool's quote asset) or \"usd\" (converted once at today's ETH/USD rate, NOT a live dollar level). token_price_trigger also uses the token prop (token whose price triggers). Works on robinhood and base: pass the same chain as the agreement; on Base the pool must be paired with ETH, WETH or USDC (a USDC pool: level in USDC, priceIn usd = USDC)."
    • changedInput schema / properties / template / description
      Previous value: -"Template name from bull_agreement_templates. All: arbiter_escrow, two_of_three, panel, optimistic, confirmed_with_cooling, milestones, scheduled_payment, recurring_payment, split_payment, after_deal, balance_trigger, price_trigger, token_price_trigger (Robinhood only), performance_bond. (delivery_vs_payment is a swap: use bull_settle.)"New value: +"Template name from bull_agreement_templates. All: arbiter_escrow, two_of_three, panel, optimistic, confirmed_with_cooling, milestones, scheduled_payment, recurring_payment, split_payment, after_deal, balance_trigger, price_trigger, token_price_trigger (Robinhood and Base), performance_bond. (delivery_vs_payment is a swap: use bull_settle.)"
  2. Changed14 schema fields changed
    • changedInput schema / properties / amount / description
      Previous value: -"Amount, e.g. \"500\"."New value: +"Amount in WHOLE units, e.g. \"500\"."
    • changedInput schema / properties / arbiter / description
      Previous value: -"arbiter_escrow, milestones: wallet that confirms."New value: +"arbiter_escrow, milestones, performance_bond, confirmed_with_cooling: wallet that confirms. two_of_three: the tie-breaking third wallet (payer, payee and arbiter vote, any two release). Must be a third wallet."
    • 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."
    • addedInput schema / properties / data
      Added value: +{
      +  "description": "price_trigger: hex calldata of a view call that returns a uint256.",
      +  "type": "string"
      +}
    • addedInput schema / properties / op
      Added value: +{
      +  "description": "price_trigger: \"gte\" or \"lte\". token_price_trigger: \"above\" or \"below\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / price
      Added value: +{
      +  "description": "token_price_trigger: the level, e.g. \"0.0002\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / priceIn
      Added value: +{
      +  "description": "token_price_trigger: \"eth\" (default, exact, the pool's quote asset) or \"usd\" (converted once at today's ETH/USD rate, NOT a live dollar level). token_price_trigger also uses the token prop (token whose price triggers). Robinhood Chain only.",
      +  "type": "string"
      +}
    • addedInput schema / properties / stepHours
      Added value: +{
      +  "description": "milestones: hours between milestone deadlines. Default 168.",
      +  "type": "number"
      +}
    • addedInput schema / properties / target
      Added value: +{
      +  "description": "price_trigger: contract to read.",
      +  "type": "string"
      +}
    • changedInput schema / properties / template / description
      Previous value: -"Template name from bull_agreement_templates, e.g. arbiter_escrow, milestones, recurring_payment, split_payment, optimistic, panel, scheduled_payment, after_deal, balance_trigger, price_trigger, token_price_trigger, performance_bond."New value: +"Template name from bull_agreement_templates. All: arbiter_escrow, two_of_three, panel, optimistic, confirmed_with_cooling, milestones, scheduled_payment, recurring_payment, split_payment, after_deal, balance_trigger, price_trigger, token_price_trigger (Robinhood only), performance_bond. (delivery_vs_payment is a swap: use bull_settle.)"
    • changedInput schema / properties / token / description
      Previous value: -"balance_trigger: token address."New value: +"balance_trigger: token address. token_price_trigger: the token whose price triggers."
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "price_trigger: threshold as an integer.",
      +  "type": "string"
      +}
    • changedInput schema / properties / windowHours / description
      Previous value: -"optimistic: hours the payer has to object. Default 24."New value: +"optimistic: hours the payer has to object. Default 24. confirmed_with_cooling: veto window in hours after the arbiter confirms. Default 24."
  3. Changed1 schema field changed
    • addedInput schema / properties / chain
      Added value: +{
      +  "description": "robinhood (default) or base. Base pays in USDC (asset \"usdc\").",
      +  "type": "string"
      +}
  4. Changed5 schema fields changed
    • addedInput schema / properties / everyHours
      Added value: +{
      +  "description": "recurring_payment: hours between payments. Default 168.",
      +  "type": "number"
      +}
    • addedInput schema / properties / payees
      Added value: +{
      +  "description": "split_payment: 2 to 10 wallets that get paid.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / payments
      Added value: +{
      +  "description": "recurring_payment: number of payments, 2 to 12 (amount is ONE payment).",
      +  "type": "number"
      +}
    • addedInput schema / properties / shares
      Added value: +{
      +  "description": "split_payment: one positive number per payee, e.g. [70, 30].",
      +  "items": {
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / template / description
      Previous value: -"Template name from bull_agreement_templates, e.g. arbiter_escrow, milestones, optimistic, panel, scheduled_payment, after_deal, balance_trigger, price_trigger, token_price_trigger, performance_bond."New value: +"Template name from bull_agreement_templates, e.g. arbiter_escrow, milestones, recurring_payment, split_payment, optimistic, panel, scheduled_payment, after_deal, balance_trigger, price_trigger, token_price_trigger, performance_bond."
  5. Changed2 schema fields changed
    • addedInput schema / properties / afterHours
      Added value: +{
      +  "description": "scheduled_payment: hours from now until the payee can be paid.",
      +  "type": "number"
      +}
    • changedInput schema / properties / template / description
      Previous value: -"Template name from bull_agreement_templates, e.g. arbiter_escrow, milestones, optimistic, panel, after_deal, balance_trigger, price_trigger, token_price_trigger, performance_bond."New value: +"Template name from bull_agreement_templates, e.g. arbiter_escrow, milestones, optimistic, panel, scheduled_payment, after_deal, balance_trigger, price_trigger, token_price_trigger, performance_bond."
  6. Changed1 schema field changed
    • changedInput schema / properties / template / description
      Previous value: -"Template name from bull_agreement_templates, e.g. arbiter_escrow, milestones, optimistic, panel, after_deal, balance_trigger, price_trigger."New value: +"Template name from bull_agreement_templates, e.g. arbiter_escrow, milestones, optimistic, panel, after_deal, balance_trigger, price_trigger, token_price_trigger, performance_bond."
  7. Added

TDQS

A4.3/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 that the tool is non-custodial, requires no account, and crucially that it returns approve and createAgreement transactions for the payer to send rather than executing anything itself. It also flags chain/asset coupling ('On Base pass chain "base" and asset "usdc"'). It does not cover failure modes or what happens when a template's required fields are missing.

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 the purpose and the single-call advantage before the template catalog. The parenthetical template glossary is long but each entry maps a name to a settlement pattern the agent must choose among, so it earns its space. Slightly dense and could be split into scannable clauses.

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 30-parameter, annotation-free, no-output-schema tool, the description covers what an agent needs: what it does, how to get valid template names, what the return value is (two transactions to send), and the chain/asset conventions. Remaining gaps (error behavior, per-template required-field rules) are minor given the schema documents every parameter.

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, but the description adds real meaning: it explains what each template name means behaviorally (arbiter_escrow = third agent confirms delivery, optimistic = paid unless the payer objects, panel = k-of-n vote), which is the key decision the agent must make. The chain/asset pairing note reinforces a dependency the schema only states piecemeal.

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 states a specific verb and resource: build/settle an agreement by picking a template block and filling its fields, contrasted with 'assembling conditions' by hand. This implicitly distinguishes it from the manual-assembly sibling bull_agreement_create, though that tool is never named. The template enumeration reinforces what the tool concretely produces.

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?

It gives an explicit selection rule ('use to settle in one call instead of assembling conditions'), points at bull_agreement_templates as the source of template names, and explicitly excludes delivery_vs_payment with a redirect ('use bull_settle'). When-to-use, prerequisite, and one when-not-to-use are all present.

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