Skip to main content
Glama

Take one step on a NET service order: quote, agree, deliver, decide and the rest (step 1 of 2)

prepare_net_order
Read-onlyIdempotent

NET SERVICE ORDER: one step of an order for a NET program that an outside provider does (a specialist agent task or another outside provider's service). The house's own machine-run check of work evidence is not ordered through these doors: it is the house's own product, its paid order is held until a price is named, and its free dry run (net_review_evidence) is open. An order has up to four people: the buyer, the provider, the acceptor, and sometimes an agent acting for the buyer. Each signs only their own step, with their own wallet. You name one act: quote (the buyer records the order and the price the buyer and provider agree), authorize (the buyer names the exact quote by its hash and, where the program needs one, the person who will judge the delivery), agree (the provider agrees to be paid this exact amount in NET; nobody is paid in NET by default), decline (the provider will not take the order), deliver (the provider hands over the work by its hash, with their own run of the checks), decide (the acceptor accepts or rejects, naming the checks they re-ran), payment (a confirmed Base transfer of NET from the buyer to the provider is recognized, once), confirm (the provider confirms the payment arrived), or cancel (the buyer or the provider ends the order before any payment). FREE, a signed statement, no fee, no gas. Vealth signs for nobody, holds no NET, moves no NET and takes no fee: the buyer pays the provider directly from the buyer's own wallet, after the acceptor accepts. For now every order is a DRY RUN: nothing is checked against a balance and no payment can be recorded for it, so a dry run order is never counted as paid, and a payment step on one is refused before you sign. The programs are built but not switched on until the operator switches the NET programs on together: until then every act but decline and cancel is refused before you sign, and decline and cancel only work on an order that exists. The engine decides every role: a buyer cannot agree for the provider and a provider cannot accept their own delivery. 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 within 5 minutes. Read where an order stands, and who acts next, with net_order_status. 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>"
    },
    "name": "prepare_net_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYesThe one step to take.
actorYesThe 0x… address that signs this step: the wallet that holds your role in the order. Address only, never a private key.
agentNoquote, authorize, decide or cancel, optional: when an agent acts for the buyer, the grant it acts under and a use id.
buyerNoquote: the 0x… address of the buyer. Address only.
fieldsNodeliver: the fields the program names, at most 40 keys and 16,000 characters. Hand over big files by their hash.
reasonNodecline or cancel, optional: one plain sentence, up to 280 characters.
txHashNopayment: the hash of the confirmed Base transfer (0x and 64 hex characters).
chainIdNopayment, optional: 8453 (Base).
orderIdNoEvery act but quote: the order's id (NETORD_…). A quote makes the order, and its id comes back with the message to sign.
subjectNoquote: what the order is about, as { kind, ref }.
acceptorNoauthorize, optional: the 0x… address of the person who will accept or reject the delivery.
decisionNodecide: accepted or rejected.
providerNoquote, optional: the 0x… address of the provider you mean.
programIdNoquote: the program's id, lowercase words joined by dashes (net_programs and net_open_tasks list them).
quoteHashNoauthorize: the quote's own hash (sha256: and 64 hex characters), exactly as the quote gave it.
rationaleNodecide, optional: one plain sentence, up to 500 characters.
requestIdNoquote: your id for this request, 1 to 120 letters, numbers and . _ : -. The same request id and the same terms read the order back.
acceptsNetNoagree: true when you agree to be paid in NET. Nobody is paid in NET by default.
agreedUnitsNoagree: the whole NET units the order is priced at.
artifactHashNodeliver: the sha256 of what you delivered (64 hex characters, with or without sha256: in front).
checkResultsNodeliver or decide: your own run of the checks, up to 40 entries of { id, passed }.
negotiatedUnitsNoquote: the price the buyer and provider agree, in whole NET units, at least 1 (1 NET is 1,000,000 units).

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

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

Annotations already declare readOnly/no-destructive, and the description does not contradict them — it explains why (nothing executes until the returned message is signed and submitted). Beyond annotations it discloses cost (free, no gas, no fee), custody (Vealth holds no NET, moves no NET, holds no keys), authorization rules (each party signs only their own step; the engine decides roles), the 5-minute signing window, PII prohibition, and the dry-run refusal semantics. This is unusually rich behavioral context.

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 purpose and act list are front-loaded, which is good, but the block is dense and contains a meandering aside about the house's own product ('its paid order is held until a price is named, and its free dry run ... is open'). Sentences run long and several ideas (dry run, operator switch-on, custody, roles, PII, signing window) are packed into an undifferentiated paragraph with no structure.

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 22-parameter tool with nested objects and an output schema, the description covers everything an agent needs: the full act vocabulary, the prepare-then-sign-then-submit workflow with a time limit, current dry-run and program-disabled states, role enforcement, the PII constraint, and where to read state. Return values are covered by the output schema and by the explicit mention of MESSAGE_TO_SIGN and BODY_JSON.

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 description coverage is 100% and each field is already prefixed with its act, so the baseline is 3. The description still adds meaning the schema does not: 'nobody is paid in NET by default' clarifies acceptsNet/agreedUnits, authorize must name 'the exact quote by its hash', deliver requires 'their own run of the checks' and handover by hash, and decide must name the checks re-run. It also notes payment is recognized 'once', which governs txHash reuse.

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 ('one step of an order for a NET program that an outside provider does') and then enumerates all nine acts with one-line definitions (quote, authorize, agree, decline, deliver, decide, payment, confirm, cancel). It also explicitly excludes adjacent things: the house's own evidence check is not ordered here, net_order_status is for reading state, and submit_net_order is the follow-up call. An agent can identify this tool 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 Guidelines5/5

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

Explicit routing: use net_order_status to see where an order stands and who acts next; use net_review_evidence for the free dry run of the house's own check; sign then call submit_net_order within 5 minutes. It also states the current operating conditions (every order is a DRY RUN; programs are not switched on, so every act except decline and cancel is refused before signing, and those two require an existing order). That is when-to-use and when-not-to-use guidance with named alternatives.

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