Skip to main content
Glama

bond_settle

Settles a fixed-outcome bond deal after its deadline by sending buyer and seller claims in one transaction, available to the buyer or seller wallet.

Instructions

Agent402 Bond v1. Settle a deal whose outcome is fixed by signatures and time, then send both claims in the same transaction (buyer share, then seller share). Use it after a deadline has passed (see bond_deal_status for when settlement opens); after bond_confirm_and_pay no settle is needed. Only for deals where this wallet is the buyer or the seller; this wallet pays only the network fee. Returns result "settled" with the transaction; anything else (for example not yet settleable) is an error. For v2 deals use bond_v2_settle.

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

Input Schema

NameRequiredDescriptionDefault
dealYesDeal account address (base58), as returned by bond_job_start / bond_v2_start or shown by bond_deal_status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / deal / description
      Added value: +"Deal account address (base58), as returned by bond_job_start / bond_v2_start or shown by bond_deal_status."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does well: it discloses the atomic two-claim write with ordering, that the wallet pays only the network fee, and how success ('settled' plus transaction) vs. error (e.g. not yet settleable) is signalled. It stops short of stating whether a settled deal can be re-submitted or what happens on partial failure, which are the remaining behavioral questions for a mutation tool.

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 action, then preconditions, exclusions, cost, and return value in a tight sequence with no filler. It is dense with parenthetical asides, but each one (state source, v2 routing) carries real routing value.

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 one-parameter mutation with no output schema, the definition covers prerequisites, role constraints, version routing, fee responsibility, and the success/error contract. The only gap is idempotency and repeat-call behavior, which matters for a settlement write.

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?

There is a single required parameter, and the schema already documents it at 100% coverage including the base58 pattern and where the address comes from. The description adds no format or sourcing detail beyond that, so the baseline of 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 resource — settle a signed, time-fixed deal and send both claims in one transaction (buyer share, then seller share) — and explicitly distinguishes v1 from bond_v2_settle and from the bond_confirm_and_pay path, so an agent can pick correctly without opening 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?

Gives an explicit precondition (deadline must have passed), a pointer to bond_deal_status for when settlement opens, an exclusion (not needed after bond_confirm_and_pay), a role restriction (this wallet must be buyer or seller), and a version routing rule to bond_v2_settle. This is when/when-not/alternatives coverage.

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