Buy outcome shares in an ACTIVE market. Provide either a target share count or a max USDC budget; if share count is omitted, the tool computes the largest purchasable position within the budget. Requires an active wallet (call set_wallet first). Amounts in responses are micro-USDC (1 USDC = 1,000...
AI agents use buy_shares to commit financial operations through Question Market — usually the final step of a payment, billing, or trading workflow. A call moves real money.
This tool directly executes financial transactions on a prediction market, spending real USDC to purchase outcome shares on Algorand blockchain. It commits real monetary value and cannot be easily reversed, making it Financial category with critical severity due to potential for large monetary losses if misused by an AI agent.
From the tool's definition Buy outcome shares in an ACTIVE market... max USDC budget... Requires an active wallet
Attacks that exploit this kind of access
Buy outcome shares in an ACTIVE market. Provide either a target share count or a max USDC budget; if share count is omitted, the tool computes the largest purchasable position within the budget. Requires an active wallet (call set_wallet first). Amounts in responses are micro-USDC (1 USDC = 1,000,000). It is categorised as a Financial tool in the Question Market MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
Register the Question Market MCP server in PolicyLayer and add a rule for buy_shares: 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 Question Market. Nothing to install.
buy_shares is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the buy_shares 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 buy_shares. 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.
buy_shares is provided by the Question Market MCP server (qmrkt/mcp-server). 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 →