Skip to main content
Glama

Record a later step on a NET service order: expiry, default, dispute, transfer back or outcome (step 1 of 2)

prepare_net_order_record
Read-onlyIdempotent

NET ORDER RECORD, built and held off: the buyer, the provider, the acceptor or a measurer signs one record about a NET service order with their own wallet: expire, default, dispute, refund, refund_unresolved or outcome. It is a record only: nobody decides a dispute, nothing is awarded, held, sent or paid, and for now every order is a dry run, so only an expiry can be recorded and the other five are refused before you sign. Each act: expire (a party closes an order whose own deadline has passed on the board's clock; nothing was held, so nothing is owed), default (the provider records that an accepted payment was not made by its due date), dispute (the buyer records that they want a payment back, naming a reason from a short list and a reference to their evidence), refund (a confirmed Base transfer of NET from the provider back to the buyer is recognized, once, from the chain; the board cannot make anyone send it), refund_unresolved (the buyer records that nothing came back, once the board's window of seven days after the dispute has passed), or outcome (a measurer puts a before and after measurement of an accepted order's result on file as their own). A dispute is a record only: nobody decides it, no reviewer is named, nothing is awarded and no money moves. A measurement is the measurer's own: the board does not check the numbers or the method, it is never a finding by anyone licensed or certified, and the reply says only whether a link to a party is known. FREE to sign, no fee, no gas. The programs are built but held off until the operator switches the NET programs on together: until then every act is refused before you sign, with the same answer whatever the wallet and whatever the body, but for a house wallet and an order that does not exist, which are named as such. Prepare refuses only what is true for every wallet: a body that breaks the door's rules, a house wallet, an order that does not exist or that the house runs itself, the kill switch, a program not switched on, and a dry run order for every act but expire. What depends on this wallet or on the order's state is answered only when you submit, after the signature is verified, so each spends the signature: whether this wallet holds the role the act needs (only a party can expire an order, only the provider records a default, only the buyer disputes or records that nothing came back, the buyer or the provider recognizes a transfer back), whether the order's deadline has passed or its state takes the act, whether the transfer can be read on Base as a confirmed transfer of at least what was paid that has not already counted for another order, and whether the delivery was accepted before a measurement. Prepare answers the same for every wallet, so prepare never says whether a wallet is a party to an order or holds a role in it; a wallet that is no party is refused an expiry by the door's route before it consumes the signature (that signature is not consumed). Read net_order_status first. This moves no NET, and the house pays, holds and sells nothing through these tools. Never put a phone number, an email or a street address in any field. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the acting wallet's personal_sign, then call submit_net_order_record 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>",
      "actor": "<actor>",
      "orderId": "<orderId>"
    },
    "name": "prepare_net_order_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYesThe one record to make.
unitNooutcome: what the numbers are in, plain words, at most 40 characters.
actorYesThe 0x… address that signs this record: the wallet that acts. Address only, never a private key.
methodNooutcome: how it was measured, plain words, at most 200 characters.
reasonNodispute: why, one code from the list. Never a sentence.
txHashNorefund: the hash of the confirmed Base transfer from the provider back to the buyer (0x and 64 hex characters).
chainIdNorefund, optional: 8453 (Base).
orderIdYesThe order's id (NETORD_…), 1 to 120 letters, numbers and . _ : -.
baselineNooutcome: the measurement before, a plain number.
followUpNooutcome: the measurement after, a plain number.
evidenceRefNodispute or outcome: a reference to your evidence, a hash, an id or a short path of letters, numbers and . _ : / # - with no spaces and no sentence, at most 200 characters.
improvementDirectionNooutcome: which way is better for what was measured.

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.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and the description is consistent with them ('it is a record only', 'moves no NET'), so no contradiction. The description does add real behavioral context the annotations cannot express: dry-run mode where only 'expire' can be recorded, the 5-minute submission window, signature consumption on submit, and free/no-gas signing. However, much of the volume is a repeated disclaimer ('nobody decides a dispute, nothing is awarded') rather than distinct operational facts, which dilutes the disclosure density.

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

Conciseness2/5

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

A single unbroken block that restates the same non-effect claim three times ('nothing is awarded, held, sent or paid', 'A dispute is a record only: nobody decides it', 'no money moves'). Operational essentials an agent needs first — the 5-minute deadline and the MESSAGE_TO_SIGN/BODY_JSON return — are buried in the final sentences.

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 12-parameter, multi-act preparation tool in a not-yet-enabled state, the description leaves nothing material out: what gets refused and when, what is deferred to submit, what the wallet signs, cost, and the no-PII constraint. It even explains the one exception to uniform prepare answers (a house wallet or non-existent order is named specifically).

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 genuinely adds meaning beyond the schema by tying each act to role requirements (only a party may expire, only the provider records a default, only the buyer disputes or records nothing came back) and constraining the refund txHash to a confirmed Base transfer of at least the amount paid that has not already counted. It does not walk through optional fields like unit, method or improvementDirection, which the schema already covers.

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 opening clause names the specific action (builds and holds off a record to be signed) and the resource (a NET service order record), naming the four possible signers. All six acts are enumerated with a one-line definition each, so an agent can tell this apart from submit_net_order_record and the prepare_* siblings without opening a 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?

Explicit sequencing: 'Read net_order_status first' and 'sign with the acting wallet's personal_sign, then call submit_net_order_record within 5 minutes'. It also states the exact split of responsibility with the submit sibling — prepare refuses only wallet-independent problems, while wallet- and state-dependent checks are deferred to submit — which is a rare and useful routing rule.

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