Skip to main content
Glama

Record one step of a NET purchase from surplus the operator states (step 1 of 2)

prepare_net_recycle
Read-onlyIdempotent

RECYCLE PAPERWORK for the operator: the record around a purchase of NET from surplus the operator states; no dollar is checked here. Four programs share it (optional-service-recycle, commercial-margin-recycle, donor-directed-acquisition, license-fee-recycle). You name one act: open (the surplus evidence), quote (an executable counterparty quote for the WHOLE size, never the house reference rate), publish (make the plan PUBLIC for one quote before it is authorized: its hash, its exact terms and the exact authorization sentence, readable with no wallet at net_recycle_status; the terms show no wallet), authorize (EXACTLY the dollars that quote costs, never more than the surplus, and it expires; it is refused unless the plan was published first and it names the published plan hash and carries the exact sentence the public record serves), acted (what the operator reports he did himself), close (where it was applied), revoke (an authorization nothing was done under) or withdraw (evidence nothing was done under). FREE, a signed statement, no fee, no gas. THIS RECORDS ONLY: it never buys, sells, swaps, signs or sends, reads no key and touches no wallet; the purchase, if one is made, is the operator's own act, and the record is house activity, never outside demand. Only a wallet the operator listed as an approver can sign it, and with no wallet listed nothing can be recorded or authorized. Built but not switched on until the operator switches the NET programs on together: until then every act that records is refused before you sign, while revoke, withdraw and reads still work. Amounts are whole cents; NET is in whole units (1 NET is 1,000,000 units). Never put a phone number, an email, a street address or a word about tax treatment in any field. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the approver wallet's personal_sign, then call submit_net_recycle 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>",
      "planId": "<planId>"
    },
    "name": "prepare_net_recycle"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYesThe one step to record.
unitsNoquote: the WHOLE size in NET units (1 NET is 1,000,000 units).
venueNoacted: where it was bought, plain words.
planIdYesThe plan's id: 1 to 80 letters, numbers and . _ : -. You choose it at open; the same id and terms read it back.
reasonNorevoke or withdraw: optional, one plain sentence, up to 280 characters.
sourceNoopen: where the money came from, plain words, 8 to 300 characters. Never shown on a keyless read.
txHashNoacted: the Base transaction hash (0x and 64 hex). Recorded as reported; this server does not check the chain.
actedAtNoacted: when the operator made the purchase (an ISO time, while an authorization stood).
attestsNoopen: each statement set to true. optional-service-recycle: receiptsVerified. commercial-margin-recycle: wagesPaid, vendorsPaid, taxesPaid. donor-directed-acquisition: inHand. license-fee-recycle: licenseDelivered, paymentCollected.
figuresNoopen: whole cents by name. optional-service-recycle: receiptsCents, operatingCostsCents, obligationsCents. commercial-margin-recycle: revenueCents, wagesCents, vendorPayCents, taxesCents, otherCostsCents. donor-directed-acquisition: receivedCents. license-fee-recycle: collectedCents, expensesCents.
programNoopen: which program's evidence this is.
quoteIdNoquote: your id for this quote. publish and authorize: the quote it names.
planHashNoauthorize: the plan hash the public record served for this quote (64 lowercase hex). Read it at net_recycle_status.
appliedToNoclose: where it was applied, plain words, 8 to 300 characters.
expiresAtNoAn ISO time. quote: when it stops standing, within 168 hours. publish: the latest the authorization could end. authorize: when it ends: in the future, no later than the quote, within 72 hours, no later than the published time.
principalYesThe 0x address that signs: an approver wallet the operator listed. Address only, never a private key.
referenceNoopen: where the proof sits (a ledger line or receipt number), one token, no spaces. One surplus backs one plan, ever.
mandateForNoopen, donor-directed-acquisition only: the work program the donor's own mandate names, plain words.
sourceKindNoquote: whose quote it is, in the operator's own words. otc_seller_signed is only a name for an outside seller's quote: the seller signs nothing here and nothing here checks the quote, whatever the name says. The house reference rate is none of these: it is not a seller.
spentCentsNoacted: whole cents spent; no more than authorized.
amountCentsNoopen: whole cents made available for a NET purchase, never more than the surplus the figures reconcile to. authorize: EXACTLY the named quote's cost for the whole size, in whole cents.
slippageBpsNoquote: its stated slippage in basis points, at most 100.
counterpartyNoquote: who made it, plain words (a desk, a seller, a venue).
acquiredUnitsNoacted: whole NET units acquired; at least the quote's whole size.
availableUnitsNoquote: units the counterparty says it can fill; under the whole size is a partial fill and is refused.
priceUsdPerNetNoquote: dollars for one whole NET.
counterpartyWalletNoquote: optional 0x address behind the quote. A house wallet is never a counterparty.
authorizationSentenceNoauthorize: the exact sentence the public record served, word for word. Read it at net_recycle_status.

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. Changed19 schema fields changed
    • changedInput schema / properties / actedAt / description
      Previous value: -"acted: when the operator made the purchase (an ISO time, while an authorization was standing)."New value: +"acted: when the operator made the purchase (an ISO time, while an authorization stood)."
    • changedInput schema / properties / amountCents / description
      Previous value: -"open: the dollars (whole cents) made available for a NET purchase, never more than the surplus the figures reconcile to. authorize: EXACTLY what the named quote costs for the whole size, in whole cents."New value: +"open: whole cents made available for a NET purchase, never more than the surplus the figures reconcile to. authorize: EXACTLY the named quote's cost for the whole size, in whole cents."
    • changedInput schema / properties / appliedTo / description
      Previous value: -"close: where it was applied, in plain words, 8 to 300 characters."New value: +"close: where it was applied, plain words, 8 to 300 characters."
    • changedInput schema / properties / attests / description
      Previous value: -"open: the program's own statements, each true. optional-service-recycle: receiptsVerified. commercial-margin-recycle: wagesPaid, vendorsPaid, taxesPaid. donor-directed-acquisition: inHand. license-fee-recycle: licenseDelivered, paymentCollected."New value: +"open: each statement set to true. optional-service-recycle: receiptsVerified. commercial-margin-recycle: wagesPaid, vendorsPaid, taxesPaid. donor-directed-acquisition: inHand. license-fee-recycle: licenseDelivered, paymentCollected."
    • changedInput schema / properties / authorizationSentence / description
      Previous value: -"authorize: the exact authorization sentence the public record served, word for word. Read it at net_recycle_status."New value: +"authorize: the exact sentence the public record served, word for word. Read it at net_recycle_status."
    • changedInput schema / properties / availableUnits / description
      Previous value: -"quote: how many units the counterparty says it can fill; under the whole size is a partial fill and is refused."New value: +"quote: units the counterparty says it can fill; under the whole size is a partial fill and is refused."
    • changedInput schema / properties / counterparty / description
      Previous value: -"quote: who made the quote, in plain words (a desk, a seller, a venue)."New value: +"quote: who made it, plain words (a desk, a seller, a venue)."
    • changedInput schema / properties / expiresAt / description
      Previous value: -"quote: when the quote stops standing (an ISO time within 168 hours). publish: the latest time the authorization could end. authorize: when the authorization ends: in the future, no later than its quote, within 72 hours, and no later than the published time."New value: +"An ISO time. quote: when it stops standing, within 168 hours. publish: the latest the authorization could end. authorize: when it ends: in the future, no later than the quote, within 72 hours, no later than the published time."
    • changedInput schema / properties / figures / description
      Previous value: -"open: the program's own figures in whole cents. optional-service-recycle: receiptsCents, operatingCostsCents, obligationsCents. commercial-margin-recycle: revenueCents, wagesCents, vendorPayCents, taxesCents, otherCostsCents. donor-directed-acquisition: receivedCents. license-fee-recycle: collectedCents, expensesCents."New value: +"open: whole cents by name. optional-service-recycle: receiptsCents, operatingCostsCents, obligationsCents. commercial-margin-recycle: revenueCents, wagesCents, vendorPayCents, taxesCents, otherCostsCents. donor-directed-acquisition: receivedCents. license-fee-recycle: collectedCents, expensesCents."
    • changedInput schema / properties / mandateFor / description
      Previous value: -"open, donor-directed-acquisition only: the work program the donor's own mandate names, in plain words."New value: +"open, donor-directed-acquisition only: the work program the donor's own mandate names, plain words."
    • changedInput schema / properties / planHash / description
      Previous value: -"authorize: the plan hash the public record served for this quote (64 lowercase hex characters). Read it at net_recycle_status."New value: +"authorize: the plan hash the public record served for this quote (64 lowercase hex). Read it at net_recycle_status."
    • changedInput schema / properties / planId / description
      Previous value: -"The plan's id: 1 to 80 letters, numbers and . _ : -. You choose it when you open; the same id and the same terms read the plan back."New value: +"The plan's id: 1 to 80 letters, numbers and . _ : -. You choose it at open; the same id and terms read it back."
    • changedInput schema / properties / principal / description
      Previous value: -"The 0x… address that signs: an approver wallet the operator listed. Address only, never a private key."New value: +"The 0x address that signs: an approver wallet the operator listed. Address only, never a private key."
    • changedInput schema / properties / reference / description
      Previous value: -"open: where the proof sits (a ledger line or receipt number), one token with no spaces. One surplus backs one plan, ever."New value: +"open: where the proof sits (a ledger line or receipt number), one token, no spaces. One surplus backs one plan, ever."
    • changedInput schema / properties / slippageBps / description
      Previous value: -"quote: the quote's own stated slippage in basis points, at most 100."New value: +"quote: its stated slippage in basis points, at most 100."
    • changedInput schema / properties / source / description
      Previous value: -"open: where the money came from, in plain words, 8 to 300 characters. Never shown on a keyless read."New value: +"open: where the money came from, plain words, 8 to 300 characters. Never shown on a keyless read."
    • changedInput schema / properties / spentCents / description
      Previous value: -"acted: whole cents spent; no more than the authorized amount."New value: +"acted: whole cents spent; no more than authorized."
    • changedInput schema / properties / txHash / description
      Previous value: -"acted: the Base transaction hash (0x and 64 hex characters). Recorded as the operator reports it; this server does not check the chain."New value: +"acted: the Base transaction hash (0x and 64 hex). Recorded as reported; this server does not check the chain."
    • changedInput schema / properties / venue / description
      Previous value: -"acted: where it was bought, in plain words."New value: +"acted: where it was bought, plain words."
  2. Changed5 schema fields changed
    • changedInput schema / properties / act / enum
      Previous value: -[
      -  "open",
      -  "quote",
      -  "authorize",
      -  "revoke",
      -  "acted",
      -  "close",
      -  "withdraw"
      -]New value: +[
      +  "open",
      +  "quote",
      +  "publish",
      +  "authorize",
      +  "revoke",
      +  "acted",
      +  "close",
      +  "withdraw"
      +]
    • addedInput schema / properties / authorizationSentence
      Added value: +{
      +  "description": "authorize: the exact authorization sentence the public record served, word for word. Read it at net_recycle_status.",
      +  "type": "string"
      +}
    • changedInput schema / properties / expiresAt / description
      Previous value: -"quote: when the quote stops standing (an ISO time within 168 hours). authorize: when the authorization ends: in the future, no later than its quote, within 72 hours."New value: +"quote: when the quote stops standing (an ISO time within 168 hours). publish: the latest time the authorization could end. authorize: when the authorization ends: in the future, no later than its quote, within 72 hours, and no later than the published time."
    • addedInput schema / properties / planHash
      Added value: +{
      +  "description": "authorize: the plan hash the public record served for this quote (64 lowercase hex characters). Read it at net_recycle_status.",
      +  "type": "string"
      +}
    • changedInput schema / properties / quoteId / description
      Previous value: -"quote: your id for this quote. authorize: the quote it names."New value: +"quote: your id for this quote. publish and authorize: the quote it names."
  3. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already mark it read-only, open-world, idempotent, and non-destructive, and the description adds substantial context beyond that: approver-wallet signing, no-key/no-wallet behavior, free/no-gas cost, refusal before signing when programs are off, PII prohibitions, and the MESSAGE_TO_SIGN/BODY_JSON return flow. This is unusually rich behavioral disclosure.

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 is front-loaded, but the description is a dense run-on paragraph with repeated statements about being free, no gas, and no wallet. Much of the content is necessary for a 28-parameter workflow, but the structure and repetition reduce clarity.

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?

Given the tool's complexity, the description covers the workflow, prerequisites, refusal conditions, signing path, return shape, and submission handoff. An output schema exists, so it does not need to explain return values in detail, and nothing essential appears missing.

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 cross-parameter meaning: quote must be for the WHOLE size and never the house reference rate, authorize must be exactly the quote cost and no more than the surplus, publish must precede authorize with the published plan hash and exact sentence, and amounts are whole cents with NET in whole units.

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: 'RECYCLE PAPERWORK ... the record around a purchase of NET from surplus' and enumerates eight acts. It distinguishes itself from submit_net_recycle and net_recycle_status, but does not differentiate from the many other prepare_* record tools.

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 explicit act-level conditions, including when publish must precede authorize, when authorize is refused, and that revoke, withdraw, and reads still work while recording acts are switched off. It also says to sign and then call submit_net_recycle within 5 minutes, though it does not compare itself to other prepare_* siblings.

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