Skip to main content
Glama

Opt in to the inference allowance, allocate part, record a call or close it (step 1 of 2)

prepare_net_vvv
Read-onlyIdempotent

AGENT INFERENCE ALLOWANCE (VVV): opt in with your own NET and an allowance you set, and get inference at Venice from your own wallet. You name some of your NET, set an allowance in USDC base units (a hard cap on what this program records and allocates; nothing in VVV spends), pin the payee you pay (opt_in), allocate part of the allowance (allocate), record each call you signed (receipt), or end it (close). FREE, a signed statement, no fee, no gas, and your NET never moves. An opt-in is a record, never custody and never a lock: your NET stays in your own wallet, Vealth holds no VVV, DIEM or USDC, signs nothing for you, pays no one and is never the payee. You pay Venice yourself, from your own wallet. The door checks the NET against your wallet's fresh balance less everything it already stands behind, and refuses if it does not cover. The allowance is a hard cap on what this program records and allocates: a setting that is empty, negative, fractional, text or above 25000000 is refused, and so is an allocation, or a receipt for a call, that would pass it. The program refuses to record or allocate past the cap; it does not stop a spend, because nothing in this program can spend (you pay Venice yourself, from your own wallet). A call counts for the amount you signed, whether or not it went through, and one that threw after signing still counts. A call with no payment reference is not recorded. The program is built but not switched on until the operator switches the NET programs on together: until then an opt-in and an allocation are refused before you sign, while a receipt, a close and the reads still work. The routes (NET to USDC from your wallet, where the buying in NET's pools is the house's own; Venice pay per call; and VVV or DIEM held in your wallet) are prepared steps, read them with net_vvv_status. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the agent wallet's personal_sign, then call submit_net_vvv 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>",
      "optInId": "<optInId>"
    },
    "name": "prepare_net_vvv"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYesopt_in to name your NET and set the cap and the payee; allocate part of the allowance to a route; receipt a call you signed; close the opt-in.
payeeNoopt_in and receipt: the 0x… address you pin as the only payee your calls may name: the one Venice publishes, which you read yourself. No default; never a house wallet.
routeNoallocate: the route. Only venice_x402_usdc counts calls; the other routes are prepared steps, read them with net_vvv_status.
unitsNoallocate: whole inference units to allocate, at least 1. It cannot take the allocations past the allowance.
reasonNoclose: optional, one plain sentence, up to 280 characters.
optInIdYesThe opt-in's id: 1 to 80 letters, numbers and . _ : - , never a wallet address. You choose it when you opt in; the same id and the same terms read the opt-in back.
settledNoreceipt: true when Venice answered with a success. Kept for your books; it never changes what counts.
netUnitsNoopt_in: whole NET units you name, at least 1 (1 NET is 1,000,000 units). Checked against your wallet, never held.
expiresAtNoopt_in: the day it lapses, an ISO time between 1 and 90 days from now.
principalYesThe 0x… address that signs: the agent's own wallet. Address only, never a private key.
receiptIdNoreceipt: the call's id, which you choose.
paymentRefNoreceipt: the payment reference of the call you signed, 0x and 64 hex digits. Required: no reference, no record.
signedUnitsNoreceipt: the amount you signed for this call, a whole number of USDC base units. It counts even if the call did not settle.
allocationIdNoallocate and receipt: the allocation's id, which you choose when you allocate and name again on each call.
allowanceUnitsNoopt_in: the most inference you allow yourself, a whole number of USDC base units (one millionth of a dollar), from 1 to 25000000. A hard cap on what this program records and allocates: it refuses to record or allocate past it, and nothing in VVV spends.
threwAfterSigningNoreceipt: true when the call threw after you signed. Kept for your books; it never changes what counts.

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

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: no gas or fee, NET never moves and is never custodied, the wallet-balance coverage check that can refuse opt-in, validation refusals (empty/negative/fractional/text/above 25000000), the rule that a call counts even if it threw after signing, that a receipt without a paymentRef is not recorded, and the operator feature-gate where opt_in and allocate are refused but receipt/close/reads still work.

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?

Purpose is front-loaded, but the body is a dense run-on that repeats the same points: 'nothing in VVV spends' appears twice, 'you pay Venice yourself, from your own wallet' twice, and 'a hard cap on what this program records and allocates' three times. The caps and no-spend guarantees could be stated once each without losing information.

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 16-parameter, two-step signing tool with an output schema, the description covers everything an agent needs: what is returned (MESSAGE_TO_SIGN, BODY_JSON), the signer and signing window, cost, the refusal conditions, and the operator gating state. Return-value details are left to the output schema as expected.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already explains all 16 fields including the act/route enums and the allowance range. The description reinforces the cap semantics and cross-field rule (an allocation or receipt that would pass the cap is refused) but repeats most per-field meaning rather than adding new syntax or format detail. Baseline 3 applies.

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 specific verbs and resource: opt in with NET, set an allowance cap and payee, allocate part, record a signed call, close. It explicitly places itself as step 1 of 2 and routes to net_vvv_status for reads and submit_net_vvv for the signed result, so an agent can distinguish it from those siblings without opening schemas.

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?

The `act` enum is mapped to modes in prose and the follow-up path is explicit: sign MESSAGE_TO_SIGN with personal_sign then call submit_net_vvv within 5 minutes. It also sends route questions to net_vvv_status. It lacks explicit 'do not use this when…' exclusions against the other prepare_net_* record tools, which keeps it below a 5.

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