Skip to main content
Glama

bull_attach_deal

Use as a BUYER after sending createDeal: report the dealId. Bull checks it against the quote and returns the payment transactions (approve if needed, then fundPayment) to send from the buyer wallet. When the seller deposits, the swap settles in that transaction. Signed: the first call returns a message to sign; call again with the same arguments plus timestamp and 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": {
      "quoteId": "<quoteId>",
      "dealId": "<dealId>",
      "address": "<address>"
    },
    "name": "bull_attach_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
dealIdYesDeal number from the DealCreated event.
addressYesYour wallet address (the buyer or seller). Required.
quoteIdYesQuote id.
signatureNoEIP-191 personal_sign of `message` from the previous response. Leave empty on the first call.
timestampNoFrom the previous bull_* response. Leave empty on the first call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 load and does well: it discloses the quote cross-check, the returned payment transaction sequence (approve if needed, then fundPayment), and the settlement timing when the seller deposits. It also documents the two-step signed flow (message first, then same args plus timestamp and signature). It does not cover failure modes, idempotency, or permissions, which keeps it off a 5.

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 role and prerequisite, then the mechanic, then the signing caveat appended after a clear "Signed:" marker. Dense but every sentence contributes; only mild redundancy with the schema on the signing step.

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?

This is a multi-step, wallet-signing tool with no annotations and no output schema, and the description covers the entry condition, the internal check, the returned transactions, and the retry-with-signature pattern. What an agent still lacks is a description of the returned transaction shape and error handling.

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 dealId, address, signature, and timestamp, including "leave empty on the first call." The description reinforces the signature/timestamp sequencing but adds no format or sourcing detail beyond the schema, so the baseline of 3 applies.

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 concrete action and role: as a BUYER, report the dealId so Bull checks it against the quote and returns payment transactions. That is more than a restatement of the name. It stops short of a crisp verb+resource phrasing ("attach deal" is opaque on its own) and never names which sibling handles the seller side or the lookup, so distinction is partial.

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

Usage Guidelines4/5

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

Gives explicit timing and role conditions: "Use as a BUYER after sending createDeal," and explains what to do with the result (send approve/fundPayment from the buyer wallet). No exclusions or named alternatives from the sibling set are offered, so it is clear context without routing 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