Get the live order book for a Predict.fun market — current bids and asks with prices and sizes. Requires PREDICT_API_KEY. Provide market_id (integer from Predict.fun API) or condition_id. Use this to see the current state of the market, not historical trades.
AI agents call get_market_orderbook to retrieve information from Predictfun without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
This tool retrieves and queries current market data (orderbook state, bids, asks, prices, sizes) without performing any side effects, modifications, or state changes. It is a straightforward data retrieval operation from a prediction market protocol. The requirement for API authentication does not elevate the risk category—it merely controls access.
From the tool's definition Tool description explicitly states 'Get the live order book' and 'see the current state of the market, not historical trades'. The verb 'Get' and framing as data retrieval with no mention of modifications, deletions, or execution confirms read-only behavior.
Attacks that exploit this kind of access
Get the live order book for a Predict.fun market — current bids and asks with prices and sizes. Requires PREDICT_API_KEY. Provide market_id (integer from Predict.fun API) or condition_id. Use this to see the current state of the market, not historical trades. It is categorised as a Read tool in the Predictfun MCP Server, which means it retrieves data without modifying state.
Register the Predictfun MCP server in PolicyLayer and add a rule for get_market_orderbook: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Predictfun. Nothing to install.
get_market_orderbook is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the get_market_orderbook rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for get_market_orderbook. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
get_market_orderbook is provided by the Predictfun MCP server (paulieb14/predictfun-subgraphs). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →