Skip to main content
Glama

bond_v2_settle

Settles a Bond v2 deal once its outcome is decided, paying each side’s owed funds to recorded payout accounts; the last claim closes the deal and returns rent.

Instructions

Agent402 Bond v2. Once time has decided the outcome (or after accept or another decision), settle if needed and claim what each side is owed to their recorded payout accounts; the last claim closes the deal and returns the rent. No funds leave this wallet except the network fee. Returns result "done" or "nothing_to_do"; anything else (for example the outcome is not decided yet) is an error. For v1 deals use bond_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_v2_settle"
  }
}

Input Schema

NameRequiredDescriptionDefault
dealYesBond v2 deal account address (base58), as returned by bond_v2_start.

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.2/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 the cost profile ('No funds leave this wallet except the network fee'), the idempotent 'settle if needed' behavior, deal-closing side effects (rent returned), and the exact outcome space ('done' or 'nothing_to_do', anything else is an error). It stops short of saying who may call it or whether repeated claims are permitted per party.

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?

The key preconditions and the v1 routing note are front-loaded, and every sentence carries useful content (timing, cost, return values, errors). The middle sentence is somewhat run-on with stacked clauses, costing a point on readability.

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 one-parameter mutation with no annotations and no output schema, the description supplies everything an agent needs: preconditions, cost, side effects, return values, error semantics, and the v1 alternative. There is no output schema, and the description covers return values itself.

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 the schema itself explains the single 'deal' parameter as a base58 address returned by bond_v2_start. The description adds no format, sourcing, or constraint detail beyond that, 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 states specific verbs and resources: settle a Bond v2 deal and claim each side's owed amount into recorded payout accounts, with the last claim closing the deal and returning the rent. It also explicitly separates itself from the v1 path ('For v1 deals use bond_settle'), so an agent can distinguish it from siblings 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 Guidelines4/5

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

It gives clear timing context ('Once time has decided the outcome (or after accept or another decision)') and names the v1 alternative bond_settle. It also implicitly rules out premature calls by saying an undecided outcome is an error, though it does not explicitly contrast with bond_v2_result or bond_v2_accept beyond the parenthetical.

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