Skip to main content
Glama

bond_v2_accept

Fetch and verify a seller's delivery, then accept the bonded job and pay the balance only if it matches the on-chain commitment; refuses mismatches and reports accepted, refused, or failed.

Instructions

Agent402 Bond v2, buyer side. Fetch and verify the delivery again, then accept and pay the balance to the seller in one instruction (before the accept deadline, within the daily cap, with human confirmation). Refuses if the result does not match what the seller committed to on chain. The program does not judge quality: accept only work you checked. Returns result "accepted" with the transaction; "refused" means nothing was signed and "failed" means the transaction did not land (see payment_history). Then call bond_v2_settle to claim and close.

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": {
      "url": "<url>",
      "deal": "<deal>"
    },
    "name": "bond_v2_accept"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesSeller job base URL from bond_find_sellers (the tool appends /quote, /open or /deliver). Its host must be in X402_ALLOWED_DOMAINS.
dealYesBond v2 deal account address (base58), as returned by bond_v2_start.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / deal / description
      Added value: +"Bond v2 deal account address (base58), as returned by bond_v2_start."
    • addedInput schema / properties / url / description
      Added value: +"Seller job base URL from bond_find_sellers (the tool appends /quote, /open or /deliver). Its host must be in X402_ALLOWED_DOMAINS."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/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 so: it discloses the payment consequence ('accept and pay the balance'), the guardrails (deadline, daily cap, human confirmation), the on-chain commitment check, and the exact meaning of each outcome — 'refused' means nothing was signed, 'failed' means the transaction did not land. That is precisely the safety and side-effect information an agent needs for an irreversible spend.

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?

It is front-loaded with purpose and closes with the next step, and nearly every sentence carries distinct information. The one weakness is that three separate constraints are compressed into a single parenthetical, which is dense to scan, though not wasteful.

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 mutating, money-moving tool with no output schema and no annotations, the description supplies outcome semantics (accepted/refused/failed), failure routing (payment_history), the follow-up action (bond_v2_settle), and the precondition set. Nothing an agent needs to call this safely is missing.

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% and both parameters (url, deal) are documented in the schema, including the base58 pattern and the X402_ALLOWED_DOMAINS host constraint. The description adds no parameter-level detail beyond the schema, 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?

The description opens with a specific actor ('buyer side') and a concrete verb pair ('fetch and verify the delivery again, then accept and pay the balance'), which is unmistakably distinct from siblings like bond_v2_result (read-only) or bond_v2_settle (claim/close). It also names the follow-up tool bond_v2_settle, so an agent can place this step in the workflow without opening any schema.

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 states explicit preconditions ('before the accept deadline, within the daily cap, with human confirmation') and an explicit refusal condition ('Refuses if the result does not match what the seller committed to on chain'). It also gives a judgment rule ('The program does not judge quality: accept only work you checked') and routes failures to payment_history, covering when to use and when not to.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.