Skip to main content
Glama

Record or withdraw your own delivery record for one order you agreed to deliver (step 1 of 2)

prepare_net_delivery_record
Read-onlyIdempotent

PROVIDER'S DELIVERY RECORD, built and held off: the outside provider who agreed to deliver ONE order from the NET service order engine signs a record of a capped amount of NET they say they intend to offer for that order. It is a record only: it binds no one, nothing is held or sent, you can spend the NET at any time, nobody is named to decide a dispute, and while it is open the NET it names counts against the same wallet's free balance in every other record of its kind, so it can reduce what that wallet may name there. It is not insurance and no refund is promised. The other records of its kind are a reserve, a bond, an envelope, a seat, a match and the rest. What is delivered, the checks and the deadline are read from the order, never typed. You name the order's id (guaranteeId is the delivery record's own id, which you choose; the same id and the same terms read the record back) and a whole number of NET units, no more than the order's own price. Only the provider who agreed to the order records one, while the order is in delivery and its deadline has not passed, and one order holds one open record. A house wallet never records one. commit records it; withdraw ends your own record until the order is delivered, even while the NET programs are stopped. The door reads your wallet's NET balance only AFTER you sign, against everything the wallet already has recorded, and refuses the record if the balance does not cover the amount; that signature is then spent, so name an amount you hold. Once recorded, it reads covered only while you hold the NET, by a balance read at most 30 seconds earlier. When the wallet named to accept the delivery accepts it, the record reads released. When the deadline passes with no acceptance, it reads unresolved, and anything that moves between the parties after that is theirs alone. What depends on this wallet and this order is answered only when you submit, so prepare never says which wallet is which order's provider: the wallet may not be the provider who agreed to deliver the order, the order may not be in delivery (not agreed, already delivered or past its deadline), the amount may be over the order's price, the order's terms may have changed, the order may already hold an open record, the id may already be in use with other terms, or the wallet may already keep the most open records it may. Prepare refuses only what is true for every wallet: the kill switch, the switch-on, a house wallet, an order that does not exist and an order the house delivers itself. If another applies, nothing is recorded. The door checks some things only after the signature is verified, so each spends the signature: the cap of five open records for one wallet, whether the wallet's balance covers the amount (a balance that cannot be read is refused there too), and a withdrawal by a wallet that did not make the record. The order's own checks also run a second time inside the commit, after the signature, so an order that changed in between is refused then. The rest are answered before the signature is spent. A withdrawal's prepare does read the record through the door's own keyless read, which reads the provider's NET balance (a read at most 30 seconds old) to say whether the record still covers, so that an order already delivered is refused before you sign. FREE to sign, no fee, no gas. The program is built but held off until the operator switches it on, and it stays out of the joint switch-on: until then a new record is refused before you sign, and a withdrawal only works on a record that exists. 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 provider wallet's personal_sign, then call submit_net_delivery_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>",
      "principal": "<principal>",
      "guaranteeId": "<guaranteeId>"
    },
    "name": "prepare_net_delivery_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYescommit records a new delivery record, or withdraw ends one you hold.
unitsNocommit: the NET you say you intend to offer for this order, a whole number of NET units from 1 up (1 NET is 1,000,000 units), no more than the order's own price. It is your own number, never filled in for you.
reasonNowithdraw: optional, one plain sentence, up to 280 characters. Only you ever read it back.
orderIdNocommit: the id of the order you agreed to deliver (NETORD_…).
principalYesThe 0x… address that signs: the provider's own wallet, the one that agreed to deliver the order. Address only, never a private key.
guaranteeIdYesThe delivery record's id: 1 to 80 letters, numbers and . _ : -. You choose it when you commit; the same id and the same terms read the record back, and a withdraw names the record to end.

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
Behavior5/5

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

The description goes well past the annotations, disclosing consequences an agent could not otherwise know: the signed message is spent even if the door refuses the record, balance is read only after signing and at most 30 seconds earlier, an open record reduces the wallet's free balance in every other record of its kind, and the record reads covered/released/unresolved depending on acceptance and deadline. It also discloses the kill switch, the five-open-record cap, that the order's checks re-run inside commit, and that the signature is free with no gas. The annotations' readOnlyHint/idempotentHint are consistent with a prepare-only tool that moves no NET, though the wording 'commit records it' describes the downstream submit rather than this call.

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?

Roughly 600 words in one dense block of semicolon-chained clauses with no headings, bullets, or paragraph breaks, and the operative instructions (name the order id and a whole number of NET) are buried mid-stream. Almost every sentence carries real information, but the ordering and packing make it hard to scan and easy to miss a precondition.

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 prepare-and-sign tool with six parameters, real refusal paths and downstream submit requirements, the description covers preconditions, pre- versus post-signature check ordering, record lifecycle states, cost, signer identity, and the required next call with its 5-minute window. Nothing an agent needs to invoke it correctly appears to be missing, even though an output schema exists and return values would not have needed spelling out.

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 already 100%, so the baseline is 3; the description earns an extra point by disambiguating the two easily confused identifiers — guaranteeId is the record's own id that you choose and that, with the same terms, reads the record back, while orderId is the order agreed to — and by stressing that units is your own whole number capped at the order's price and that reason is only read back by you. It also warns that what is delivered, the checks and the deadline are read from the order, never typed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource (the provider builds and signs a delivery record naming a capped amount of NET for one order), and explicitly names the sibling it hands off to: submit_net_delivery_record. It also distinguishes the record from the other records of its kind (reserve, bond, envelope, seat, match). It stops short of 5 because the actual act — producing a signable payload — is only revealed near the end ('Returns MESSAGE_TO_SIGN and BODY_JSON') rather than front-loaded, so an agent must wade through a wall of caveats before knowing what the tool literally returns.

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 gives explicit when-to-use conditions (only the provider who agreed to the order, only while the order is in delivery and the deadline has not passed, one open record per order, never a house wallet) and separates what prepare refuses universally (kill switch, switch-on, house wallet, missing order, house-delivered order) from what is only checked at submit. It names the alternative step explicitly: call submit_net_delivery_record within 5 minutes after signing. The two acts, commit and withdraw, are each given their own eligibility context.

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