Skip to main content
Glama

Commit or withdraw a provider performance bond (step 1 of 2)

prepare_net_bond
Read-onlyIdempotent

PROVIDER PERFORMANCE BOND: a provider of a premium agent service records the NET they say they intend to offer behind it, as a visible record that binds no one, and can see it or withdraw it at any time. You name the service in plain words, the NET units the bond names, and the date it lapses (commit), or you end the record (withdraw). FREE, a signed statement, no fee, no gas, and your NET never moves. A bond is a record, never custody and never a lock: your NET stays in your own wallet, nothing is held or sent, and nothing can take it, because no custody contract exists. You can spend it or withdraw the record at any time, even while the program is stopped. When you commit, the door checks the NET you name against your wallet's fresh NET balance less everything it already stands behind, and refuses if it does not cover; nothing is recorded then. The bond reads covered only while your wallet holds the NET it names, by a balance read at most 30 seconds earlier, and reads uncovered if you move it. A bond is not insurance or a deposit, and it gates no free work. Never put a phone number, an email or a street address in any field. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the provider wallet's personal_sign, then call submit_net_bond within 5 minutes. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.

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": {
      "act": "<act>",
      "principal": "<principal>",
      "bondId": "<bondId>"
    },
    "name": "prepare_net_bond"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYescommit a new bond, or withdraw one you hold.
unitsNocommit: the NET units the bond names, a whole number (one NET is 1,000,000 units). You choose it; the door checks it against your wallet.
bondIdYesThe bond's id: 1 to 80 letters, numbers and . _ : -. You choose it when you commit; the same id and the same terms read the bond back.
reasonNowithdraw: optional, one plain sentence, up to 280 characters. Only you see it.
serviceNocommit: { name (3 to 120 characters, plain words), summary (optional, up to 280 characters) }, the service this bond names. Anyone can read it.
expiresAtNocommit: when the record lapses, an ISO time between one day and one year from now.
principalYesThe 0x… address that signs: the wallet whose NET the bond names. Address only, never a private key.

Output Schema

NameRequiredDescriptionDefault
okNo
toolNo
fundedNo
payUsdNo
workIdNo
claimIdNo
claimableNo
next_callNo
proofRuleNo
fulfillableByNo
definitionOfDoneNo
needs_from_callerNo
notClaimableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Rather than lean on the readOnly/idempotent annotations, the description explains the actual behavior: free with no gas, NET never leaves the wallet, no custody contract, balance checked against fresh NET less existing commitments, coverage read from a balance at most 30 seconds old, record visible and withdrawable at any time, and a hard prohibition on PII in any field. The only gap is that it does not restate idempotency semantics beyond 'the same id and the same terms read the bond back'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core is front-loaded and the commit/withdraw split is easy to find, but the text is dense and repetitive: 'FREE, a signed statement, no fee, no gas' restates 'Cost and signer: free, no gas', and the no-custody point is made three times in different sentences. Trimming the duplicated reassurances would make the operative rules easier to scan.

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 7-parameter nested-object tool with an output schema present, the description covers everything the agent needs: what commit and withdraw each mean, the wallet-balance precondition, the 5-minute signing window, the required follow-up call, and the safety profile. Return-value details are correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains why units are checked against the wallet balance, that bondId plus the same terms reads the bond back, and a privacy rule ('never put a phone number, an email or a street address in any field') that appears nowhere in the schema. That extra constraint justifies going above baseline.

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 names the specific verb and resource ('records the NET they say they intend to offer', commit or withdraw a bond) and distinguishes itself from the sibling submission step by returning MESSAGE_TO_SIGN and directing the agent to submit_net_bond. An agent can tell this apart from prepare_net_dispute_bond or submit_net_bond without opening the schema.

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 sequencing context: call this first, sign with the provider wallet's personal_sign, then call submit_net_bond within 5 minutes. It also spells out commit vs withdraw conditions and the rejection case ('refuses if it does not cover; nothing is recorded then'). It does not explicitly say when to prefer this over the dispute-bond sibling, so not a full 5.

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