Skip to main content
Glama

Make or withdraw your own research forecast on a published question (step 1 of 2)

prepare_net_forecast
Read-onlyIdempotent

OUTCOME FORECAST RESEARCH: a holder signs ONE research forecast on one question the house has published: a whole-number guess about a number the board itself will publish. It is a research forecast, never a market: it earns nothing, a score gives nothing, nothing is risked, no balance is read and no NET is involved. It is not advice. A yes or no question takes a whole percent from 1 to 99; a number question takes a whole number inside the range it states. You name the question's id and its hash (net_forecast_status gives both), your value, and your own statement researchOnly true, which is never assumed for you. You choose the forecast's id; the same id and the same terms read the forecast back. commit makes the forecast; withdraw ends your own forecast until the question closes, even while the NET programs are stopped, and you can make a new one until the question closes. One wallet holds one open forecast per question. FREE, a signed statement, no fee, no gas. The program is built but held off until the operator switches the NET programs on together: until then a new forecast is refused before you sign, and a withdrawal only works on a forecast that exists. This moves no NET, and the house pays, holds and sells nothing in it, and makes no forecast of its own. Never put a phone number, an email or a street address in any field. Two refusals depend on this wallet's own records and are answered only when you submit, so prepare never says which wallet holds what: the wallet may already hold a forecast on this question, or the forecast id may already be in use with other terms. A withdrawal's prepare says the same for every forecast id, because no read shows a forecast: the door refuses an id that is not a forecast, or a forecast on a question that has closed, only when you submit, before the signature is spent. A withdrawal by a wallet that did not make the forecast is refused only after the signature is verified, which spends the signature. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the holder wallet's personal_sign, then call submit_net_forecast 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>",
      "recordId": "<recordId>"
    },
    "name": "prepare_net_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
actYescommit makes a new forecast, or withdraw ends one you hold.
valueNocommit: your forecast, a whole number: a percent from 1 to 99 for a yes or no question, or a number inside the question's stated range.
reasonNowithdraw: optional, one plain sentence, up to 280 characters. Only you ever read it back.
recordIdYesThe forecast's id: 1 to 80 letters, numbers and . _ : -. You choose it when you commit; the same id and the same terms read the forecast back.
principalYesThe 0x… address that signs: the holder's wallet. Address only, never a private key.
questionIdNocommit: the id of a published question (net_forecast_status lists them).
researchOnlyNocommit: true is YOUR statement that you read the research notice and know a forecast earns nothing. It is never assumed for you.
questionSha256Nocommit: the 64-character lowercase hash of the question you read. A changed word changes the hash.

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 say read-only/idempotent/open-world; the description adds that the program is held off until operator enablement, that prepare never reveals which wallet holds what, and that two refusals (existing forecast, id already in use) are answered only at submit. It also discloses the costly edge case: a withdrawal by a non-owner is refused only after signature verification, spending the signature.

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 critical scoping facts are front-loaded, but the body is a dense, run-on block with redundant restatements ('it earns nothing, a score gives nothing, nothing is risked' / 'This moves no NET, and the house pays, holds and sells nothing in it'). Several sentences (the wallet-records refusal passage) are hard to parse on one pass.

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 an 8-parameter prepare step feeding a separate submit tool, the definition covers the signing handoff, the 5-minute window, the return fields, the signer identity, and the disabled-state behavior. Even with an output schema present, calling it out explicitly costs nothing and closes the loop.

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 already 100%, so baseline is 3. The description still adds real meaning: researchOnly must be the signer's own statement and is never assumed, the hash-answer changes if any word of the question changes, and the same recordId plus the same terms read the forecast back. It does not re-explain the enum or value ranges beyond the schema.

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 names a specific verb and object (a holder signs one research forecast on a published question) and immediately scopes it: a whole-number guess about a number the board will publish, not a market, not a bet. The title's 'step 1 of 2' plus the final sentence naming submit_net_forecast makes the prepare-only nature unambiguous and distinguishable from every sibling.

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 explicitly routes: use net_forecast_status for the question id and hash, then this tool to prepare, then submit_net_forecast within 5 minutes. It states the commit-vs-withdraw conditions, the one-open-forecast-per-question rule, and that a new forecast is refused until the operator switches the NET programs on.

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