Skip to main content
Glama

Commit or withdraw a sponsor's matching offer (step 1 of 2)

prepare_net_match
Read-onlyIdempotent

MATCHING OFFER: a sponsor signs a capped offer to match outside funding for accepted work, sees it, or revokes what is left of it. Four programs share this one tool, named by program: sponsor-funded-match (match an outside funder's NET for work a person accepted on the board), district-matching-budget (match NET from different payer wallets for upkeep of a place inside a district; no packet there is matched until a listed person who is not you has confirmed the place, public ground included, and no door lets anyone confirm a district offer's place yet, so a district offer matches nothing until that door is built; a wallet the journal links to an earlier payer counts as the same payer, and one person using wallets nobody has linked is not seen), grant-milestone-match (a capped offer toward one milestone packet, with the grant's name and spending rules in your own words: nothing here checks that the grant was awarded or judges its rules), and agent-research-tournament, shown to people as a research solution match (a capped offer that matches funding toward solutions to a question, each accepted by a person, with a cap per solution; nothing is pooled; nothing is ranked or judged and nothing is paid by chance). You say, in plain words, what you are matching for, the ratio (for every 100 units of outside funding you match this many), your cap in whole NET units and when the offer lapses (commit), or you revoke the unapplied remainder (withdraw). FREE, a signed statement, no fee, no gas, and your NET never moves. An offer is a record, never custody and never a lock: your NET stays in your own wallet, nothing is held or sent, you pay the worker directly, Vealth pays, holds and sells nothing, and you can withdraw at any time, even when new program actions are stopped. When you commit, the door checks the cap against your wallet's fresh NET balance less everything it already stands behind (your offers, orders, reserves, bonds, envelopes, seats and other matching offers), and refuses if it does not cover; nothing is recorded then. A match is recorded only from what the board itself shows (funding from an outside party that already arrived, and work a person with no known link to anyone involved accepted), never on your say-so; a packet draws one match across every offer; and the engine can record a reversal of a match applied to funding later shown to be the sponsor's own, but nothing runs it yet. A match is not an outcome. One NET is 1,000,000 units. Never put a phone number, an email or a street address in any field. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the sponsor wallet's personal_sign, then call submit_net_match 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>",
      "matchId": "<matchId>"
    },
    "name": "prepare_net_match"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYescommit a new offer, or withdraw one you hold.
grantNocommit, grant-milestone-match only: { name, restrictions (what the grant and the recipient's spending rules allow), milestone (the measurable milestone), reference (optional award reference) }.
unitsNocommit: your cap in whole NET units, at least 1: the most this offer matches in all (one NET is 1,000,000 units).
reasonNowithdraw: optional, one plain sentence, up to 280 characters.
workIdNocommit: the id of a packet on the board this offer is for. Required for grant-milestone-match; optional otherwise.
matchIdYesThe offer's id: 1 to 80 letters, numbers and . _ : -. You choose it when you commit; the same id and the same terms read the offer back.
programNocommit: which matching program this offer is.
purposeNocommit: what you are matching for, in plain words, 8 to 300 characters. No phone number, email or street address.
districtNocommit, district-matching-budget only: { place: { name, lat, lng }, radiusM (100 to 2000, default 500), siteAuthority: { kind: owner | manager | association | public_ground, evidenceRef } }. The kind of place is your own word: no packet is matched until a listed verifier who is not you confirms the place, public ground included. No door lets a verifier do that for a district offer yet, so a district offer matches nothing until one is built. A private place also needs an evidenceRef.
expiresAtNocommit: when the offer lapses, an ISO time in the future, at most 365 days from now.
principalYesThe 0x… address that signs: the sponsor's wallet. Address only, never a private key.
tournamentNocommit, agent-research-tournament only: { question (what the solutions answer), solutionCapUnits (the most one accepted solution may draw from the offer) }.
ratioPercentNocommit: for every 100 units of outside funding you match this many (whole percent, 1 to 400; 100 is one for one).

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

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, and the description is consistent with that ("FREE, a signed statement, no fee, no gas, and your NET never moves"; "an offer is a record, never custody and never a lock"). It adds substantial context beyond the annotations: the cap is checked against fresh NET balance minus offers, orders, reserves, bonds, envelopes, seats; matches are recorded only from board-observed facts; a packet draws one match across every offer; withdrawal is possible even when program actions are stopped.

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?

It is roughly 450 words in a single dense paragraph with no structure, so an agent must parse heavy program caveats before reaching the operationally critical instruction (sign and submit within 5 minutes), which sits in the last sentence. Several rules, such as the no-PII constraint and the district-verifier limitation, are stated twice across the description and the parameter descriptions.

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 13-parameter, four-program, two-step tool, nothing an agent needs to call it correctly is missing: prerequisites, cap-check behavior, expiry limits, signer identity, idempotent read-back by matchId, and the follow-up submit call are all covered. An output schema exists, so return-value details are appropriately not repeated in depth.

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, and the description goes beyond it by explaining what the ratio means (per 100 units of outside funding), that units are whole NET at 1,000,000 units each, and by giving per-program semantics for otherwise opaque nested objects like district and tournament. Some of that overlaps the schema's own parameter descriptions, limiting the added value.

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 description states a specific pair of verbs (commit/withdraw) on a specific resource (a capped matching offer), and enumerates the four named programs it dispatches over. It also clearly separates this prepare step from the submit step, so an agent knows this tool produces something to sign rather than a recorded match.

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 guidance per program (sponsor-funded-match, district-matching-budget, grant-milestone-match, agent-research-tournament) including the crucial negative case that a district offer matches nothing until a verifier door exists. It also names the follow-up: sign the result with personal_sign and call submit_net_match within 5 minutes.

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