Skip to main content
Glama

Plan recurring upkeep for one place, link a job to a need, renew, or withdraw: the maintenance work order (step 1 of 2)

prepare_net_work_order
Read-onlyIdempotent

MAINTENANCE WORK ORDER, built and held off: the holder signs a plan for recurring upkeep at one place, ties its needs to jobs the holder posted on the board, renews it for the next cycle, or withdraws it. It is a record only: it binds no one, nothing is held, sent or paid, no job is posted by it, and you can spend the NET or withdraw the plan at any time. The plan carries a NET figure for the cycles ahead (a house reference, not a price), and the door checks it against your wallet's fresh NET balance less the NET the wallet has already named in other records. The work itself is posted, claimed, proven and accepted on the board by other people, and the door never links work that needs a permit or a licensed person. You name one act: plan (the place in plain words and its pin, who speaks for it, 1 to 12 needs, how many cycles and how long each is, and when the first is due), link (tie one need in the active cycle to a job you posted on the board with this same wallet), renew (open the next cycle, on your own fresh signature, if the board's own record lets it), or withdraw (end the plan). No job links to any place until a wallet the operator lists as a site-authority verifier has put the evidence it saw on file, public ground too: the kind of place is your own word until then, and with no verifier listed nobody can. A renewal waits for the board to show one job linked to the cycle accepted by a wallet with no known link to the plan's parties; no check says that wallet is a person. FREE to sign, no fee, no gas. The program is built but held off until the operator switches it on: until then a plan, a link or a renewal is refused before you sign, with the same answer whatever you send, and a withdrawal only works on a work order that exists. What depends on this wallet or on the board is answered only when you submit, so prepare never says whether a wallet holds a work order: the cap of five open work orders for one wallet, whether the wallet's balance covers the plan (a balance that cannot be read is refused there too), an id already in use with other terms, and every refusal of a link or a renewal (no authority on record for the place, a cycle that is not open, a need that is blocked, not due or already linked, a job the board does not show or that you did not post, a renewal the board's record does not yet allow). If one applies, nothing is recorded, and each is refused after the signature is verified, so each spends the signature: read net_work_order_status first. Prepare refuses only what is true for every wallet or shown by the keyless read of the same work order: a body that breaks the door's rules, a house wallet, a work order that does not exist, and one that was withdrawn. 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 holder wallet's personal_sign, then call submit_net_work_order 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>",
      "workOrderId": "<workOrderId>"
    },
    "name": "prepare_net_work_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYesThe one act to take.
cycleNolink: the cycle this job is for, 0 to 11. Cycle 0 is the active one until you renew.
needsNoplan: 1 to 12 needs, each { id (lowercase-dashes), objective (plain words, 5 to 300 characters), everyCycles (1 to 12) }. A need carries no conditionId here.
placeNoplan: { name, lat, lng }, the place in plain words (never a street address) and its pin. A keyless read never shows the name or the pin: it shows only a 350 metre cell, and only for public ground a listed verifier has confirmed, so a private place, and public ground no verifier has confirmed, is not shown at all. Your own signed reply shows the name you gave and the 350 metre cell.
cyclesNoplan: how many cycles, 1 to 12.
needIdNolink: the id of the need this job answers.
reasonNowithdraw: optional, one plain sentence, up to 280 characters. Only you ever read it back.
workIdNolink: the job's id on the board. You must have posted it with this same wallet.
startAtNoplan: when the first cycle is due, an ISO time.
cycleDaysNoplan: days in each cycle, 7 to 365.
fromCycleNorenew: the cycle you are renewing from, 0 to 11, the one now active.
principalYesThe 0x… address that signs: the wallet that holds the work order. Address only, never a private key.
workOrderIdYesThe work order's id: 1 to 80 letters, numbers and . _ : -. You choose it when you plan; the same id and the same terms read the work order back.
siteAuthorityNoplan: { kind: public_ground | owner | manager | association, evidenceRef }. A private place needs the evidence reference (a deed, a parcel, a minute). The kind is your own word until a listed verifier wallet puts its evidence on file.

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 only declare readOnly/idempotent/openWorld; the description adds substantial behavior the annotations cannot: prepare never validates wallet-dependent state (the five-open-order cap, balance sufficiency, id reuse with different terms, link/renew refusals), those refusals happen only after the signature is verified so each spends the signature, and only universally true failures are caught at prepare time. It also discloses the NET-figure check against the wallet's fresh balance minus already-named NET, and the verifier requirement for linking work to a place.

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?

Purpose is front-loaded, but the body is a single very long run-on paragraph with heavy repetition ("record only / binds no one / nothing held, sent or paid" is restated, and "free, no gas" appears twice). The refusal list and gating caveats would be far easier to act on as separated clauses.

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 14-parameter, nested-object, mutation-preparing tool, the description covers the gating switch, the refusal taxonomy, signature spending, return value (MESSAGE_TO_SIGN and BODY_JSON), the 5-minute window, and the prohibition on phone/email/street address. With an output schema present, no further return-value explanation is needed.

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 schema already carries per-field meaning, but the description adds cross-field semantics the schema does not: which fields apply to which of the four acts as a single named act, that the NET figure is a house reference rather than a price, and that the plan id plus identical terms is what reads the record back. It does not add granular detail for individual fields beyond the act groupings.

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 sentence names the resource (a maintenance work order) and enumerates the four specific acts it can prepare: plan, link, renew, withdraw. It distinguishes itself from siblings explicitly, telling the agent that prepare never reports wallet-dependent state and that net_work_order_status / submit_net_work_order handle those steps.

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 the full calling sequence: read net_work_order_status first, then prepare, then sign with personal_sign and call submit_net_work_order within 5 minutes. It also states the when-not condition (the program is held off by the operator until switched on, so plan/link/renew are refused before signing).

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