Skip to main content
Glama

bull_settle

Use when two parties (agents, bots, contracts) have ALREADY agreed on a trade and just need a trustless way to swap: returns the signed createDeal transaction for an atomic escrow settlement on Bull. No account, no signature, no RFQ needed. On Robinhood Chain pay in ETH or USDG; on Base (chain "base") pay in USDC. The fee is returned in the response. Next call bull_settle_steps with the dealId and the same chain. Base: unaudited contracts, not yet tested with a live deal.

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": {
      "buyer": "<buyer>",
      "seller": "<seller>",
      "sellToken": "<sellToken>",
      "sellAmount": "<sellAmount>",
      "payAmount": "<payAmount>"
    },
    "name": "bull_settle"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerYesWallet of the side that pays. It sends the createDeal transaction.
chainNorobinhood (default) or base. Base: USDC, the signature and fee quote are bound to Base's escrow. Unaudited contracts, no live Base deal tested yet.
sellerYesWallet of the side that delivers the tokens.
deadlineNoUnix time of the deal deadline, fixed inside the consent (returned by consentOnly).
payAssetNoRobinhood: "eth" (default) or "usdg". Base: "usdc" (default, only option).
payAmountYesWhat the buyer pays, in the pay asset (ETH, USDG or USDC), e.g. "0.25".
sellTokenYesToken contract address the seller delivers (an ERC-20 on the chosen chain).
sellerSigNoThe seller's EIP-712 signature over the consent typed data. Required to get the createDeal transaction.
sellAmountYesToken amount, e.g. "1000".
validUntilNoUnix time until which the seller's consent is valid (returned by consentOnly).
consentOnlyNotrue = return the typed data (EIP-712) the SELLER must sign. Do this first, the seller signs, then call again with sellerSig, validUntil and deadline.
buyerReceiveNoWallet that receives the tokens (optional).
sellerPayoutNoWallet that receives the payment (optional).
deadlineHoursNoHours until anyone can cancel and refund both sides. Default 24, max 168.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / chain
      Added value: +{
      +  "description": "robinhood (default) or base. Base: USDC, the signature and fee quote are bound to Base's escrow. Unaudited contracts, no live Base deal tested yet.",
      +  "type": "string"
      +}
    • changedInput schema / properties / payAmount / description
      Previous value: -"What the buyer pays, in ETH or USDG, e.g. \"0.25\"."New value: +"What the buyer pays, in the pay asset (ETH, USDG or USDC), e.g. \"0.25\"."
    • changedInput schema / properties / payAsset / description
      Previous value: -"\"eth\" or \"usdg\". Default eth."New value: +"Robinhood: \"eth\" (default) or \"usdg\". Base: \"usdc\" (default, only option)."
    • changedInput schema / properties / sellToken / description
      Previous value: -"Token contract address the seller delivers (Robinhood Chain)."New value: +"Token contract address the seller delivers (an ERC-20 on the chosen chain)."
  2. Changed3 schema fields changed
    • changedInput schema / properties / consentOnly / description
      Previous value: -"true = return the message the SELLER must sign (personal_sign). Do this first, the seller signs, then call again with sellerSig and validUntil."New value: +"true = return the typed data (EIP-712) the SELLER must sign. Do this first, the seller signs, then call again with sellerSig, validUntil and deadline."
    • addedInput schema / properties / deadline
      Added value: +{
      +  "description": "Unix time of the deal deadline, fixed inside the consent (returned by consentOnly).",
      +  "type": "number"
      +}
    • changedInput schema / properties / sellerSig / description
      Previous value: -"The seller's signature over the consent message. Required to get the createDeal transaction."New value: +"The seller's EIP-712 signature over the consent typed data. Required to get the createDeal transaction."
  3. Changed3 schema fields changed
    • addedInput schema / properties / consentOnly
      Added value: +{
      +  "description": "true = return the message the SELLER must sign (personal_sign). Do this first, the seller signs, then call again with sellerSig and validUntil.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / sellerSig
      Added value: +{
      +  "description": "The seller's signature over the consent message. Required to get the createDeal transaction.",
      +  "type": "string"
      +}
    • addedInput schema / properties / validUntil
      Added value: +{
      +  "description": "Unix time until which the seller's consent is valid (returned by consentOnly).",
      +  "type": "number"
      +}
  4. 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 substantial work: no account or caller signature required, the fee is returned in the response, chain-specific assets are called out, and Base is flagged as unaudited and never tested with a live deal. It stops short of describing failure modes or what happens if the tx is not submitted, so it is not fully exhaustive.

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 'Use when' trigger and the returned artifact, then chain variants and the next step. Dense but mostly earning its place; the Base caveat is repeated from the chain parameter description, which is mild redundancy.

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 14-parameter, unannotated, no-output-schema tool, it covers the trigger, the two-pass signing flow, the returned transaction and fee, chain/asset variants, and the onward call to bull_settle_steps. The main gap is that it never states who must sign and broadcast the returned transaction, which matters for a settlement tool.

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 coverage is 100%, so the schema already documents all 14 parameters, including consentOnly, sellerSig, validUntil and deadlineHours. The description's chain/asset notes (ETH or USDG on Robinhood, USDC on Base) largely restate the chain and payAsset schema text rather than adding new meaning, so the baseline 3 applies.

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 specific verb and output: it returns the signed createDeal transaction enabling an atomic escrow settlement. It also scopes the situation precisely (two parties who have ALREADY agreed) and separates itself from the quote/RFQ siblings with 'No account, no signature, no RFQ needed.'

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?

Gives an explicit precondition ('ALREADY agreed on a trade'), an implied when-not (you need RFQ/price discovery instead), and names the follow-up tool: 'Next call bull_settle_steps with the dealId and the same chain.' The schema-backed two-pass consentOnly flow is consistent with this guidance.

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