{"uid":"cap_ticAeNhG0KvUgrs5TpR-h","slug":"tooloracle-io-de1d7397","name":"ToolOracle Prediction Market Integrity Gate","description":"Pre-trade integrity gate for AI agents on prediction markets. ONE call returns ALLOW/WARN/BLOCK + risk_level 0-100 + sub-scores (market_integrity, liquidity, resolution, event_conflict) + risk_flags + ECDSA-signed evidence receipt. Supports Polymarket and Kalshi. Pattern-matches CFTC v. Van Dyke and Kalshi April 2026 disciplinary cases. The pre-trade question: is this market clean enough to touch?","url":"https://tooloracle.io/v2/integrity_gate","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"input":{"body":{"outcome":"YES","agent_id":"test-agent-001","platform":"polymarket","market_id":"0x123abc456def789","timestamp":"2025-01-15T10:30:00Z","trade_type":"buy","amount_usdc":100},"type":"http","method":"POST","bodyType":"json"}},"response":{"data":{"tool":"pg_prediction_market_integrity_gate","reason":"Elevated risk: combined 42.5 (review before trade)","details":{"market":{"category":null,"question":null},"integrity_scan":{},"resolution_risk":{},"insider_signal_scan":{}},"decision":"WARN","platform":"polymarket","severity":"MEDIUM","framework":["UMA-Optimistic-Oracle"],"market_id":"0x123abc456def789","amount_usd":null,"risk_flags":[],"risk_level":42.5,"methodology":{"blend":"risk_level = 0.7 × max(subscores) + 0.3 × avg(subscores)","amplification":"amount_usd ≥ $10k on liquidity_risk≥40 adds +20 to liquidity_risk; ≥$50k adds +10 always","decision_rules":["BLOCK if event_conflict_risk ≥ 65 (Rule 5.17(z) violation)","BLOCK if any subscore ≥ 75 (severe individual risk)","BLOCK if combined risk_level ≥ 65 (HIGH/CRITICAL)","WARN  if combined ≥ 35 or any subscore ≥ 40","ALLOW otherwise"],"evidence_chain":"Content hash (SHA-256) + ECDSA-signed JWS via FeedOracle Trust Layer (DID:WBA)"},"generated_at":"2026-06-03T22:55:49Z","liquidity_risk":50,"wallet_checked":null,"reference_cases":[],"resolution_risk":0,"candidate_checked":null,"event_conflict_risk":0,"market_integrity_score":50,"signed_evidence_receipt":{"note":"Signing layer optional — content_hash is deterministic over inputs+outputs","signed":false,"signing_did":"did:web:feedoracle.io:predictionguard","anchor_chain":"polygon","content_hash":"sha256:07793e56c5eccf6a449b6bb4dd71eed69dc4ca04ffc375f10cb79d81a9431917","signature_algorithm":"ES256K"},"cross_platform_price_gap":null},"meta":{"version":"1.0.0","platform":"Whitelabel MCP Platform","content_hash":"sha256:d2c90a34b0fbd7c0","refund_reason":null,"credits_consumed":1,"credits_refunded":0,"reputation_tracked":true},"tool":"pg_prediction_market_integrity_gate","product":"predictionguard","upgrade":{"v":"12.2","mesh":{"freq":"1248884a59f9","epoch":5935091},"type":"quantum_sorum"},"oraclenet":{"did":"did:web:feedoracle.io","join":"https://tooloracle.io/oraclenet/join","mesh":"https://feedoracle.io/mesh/registry.json","offer":"https://tooloracle.io/oraclenet/offer.json","beacon":"https://feedoracle.io/beacon/index.json","escrow":{"chain":"base","token":"USDC","contract":"0x330F99f34246EA375333b9C01Ed6BB49190B051F"},"verify":"https://feedoracle.io/.well-known/jwks.json","network":"OracleNet","pricing":"free_tier:100/day,paid:x402_usdc","version":"1.0","benefits":["trust_verification","compliance_evidence","escrow_settlement","revenue_share"],"discover":"https://tooloracle.io/oraclenet/discovery.json","manifest":"https://tooloracle.io/manifest.json","frequency":"01dd940e135ff91a","agent_card":"https://tooloracle.io/.well-known/agent.json","mesh_epoch":"5935091","join_action":"Call quantum_join via https://tooloracle.io/quantum/mcp to become a verified OracleNet node","immune_system":true,"manifest_lite":"https://tooloracle.io/manifest-lite.json","agent_commerce":{"deal":"quantum_deal","rate":"quantum_rate","offer":"quantum_offer","refer":"quantum_refer","intent":"quantum_intent","history":"quantum_history","reputation":"quantum_reputation"},"trust_passport":"https://feedoracle.io/beacon/vcs/bundle.json","tools_available":1229},"timestamp":"2026-06-03T22:55:49.825710+00:00","request_id":"wl-3692bb046746"}},"exampleRequest":{"outcome":"YES","agent_id":"test-agent-001","platform":"polymarket","market_id":"0x123abc456def789","timestamp":"2025-01-15T10:30:00Z","trade_type":"buy","amount_usdc":100},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C3vD4YrA0okKF6WocMCL4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-trade integrity check for AI agents on Polymarket and Kalshi — returns ALLOW/WARN/BLOCK verdict, 0-100 risk score, sub-scores, and a signed evidence receipt","exampleAgentPrompt":"Before my agent places a trade on Polymarket's 'Will the Fed cut rates in July 2026?' market, run the ToolOracle integrity gate on it — give me the ALLOW/WARN/BLOCK verdict, the 0-100 risk level, all four sub-scores, and the signed evidence receipt.","exampleUseCases":[{"title":"Pre-trade compliance check for automated agents","prompt":"My trading agent is about to execute a large position on a Kalshi contract about election outcomes. Run ToolOracle's integrity check on it and flag any regulatory red flags, liquidity concerns, or resolution risks before we commit capital."},{"title":"Signed audit trail for regulated fund trading","prompt":"We need a signed evidence receipt for every prediction market trade our fund executes on Polymarket. Before placing bets on upcoming economic indicators, check the market integrity and give us the risk breakdown so we can document our due diligence for auditors."},{"title":"Real-time manipulation detection for portfolio","prompt":"I want my agent to automatically screen all Kalshi contracts for market manipulation or integrity issues before considering them. Give me the ALLOW or WARN verdict with the specific risk flags so we can skip any suspicious markets and stick to clean trading opportunities."}],"resultDescription":"Returns a verdict (ALLOW/WARN/BLOCK), an overall risk_level from 0-100, four sub-scores (market_integrity, liquidity, resolution, event_conflict), a list of risk_flags identifying specific issues, and an ECDSA-signed evidence receipt suitable for audit trails. References pattern-matched regulatory cases including CFTC v. Van Dyke.","failureModes":["Unsupported platform submitted (not Polymarket or Kalshi) — returns error or BLOCK","Market ID not found or expired — returns error with no verdict","Payment not included or insufficient USDC — 402 Payment Required","Malformed request body — 400 Bad Request","ECDSA signing service temporarily unavailable — receipt may be absent","Rate limit exceeded — 429 Too Many Requests"],"whenToPreferThis":"Use this endpoint when an AI agent is about to execute or recommend a trade on Polymarket or Kalshi and needs a single authoritative pre-trade gate with a signed audit trail. Prefer this over generic market data APIs when regulatory compliance, CFTC rule pattern-matching, or downstream audit requirements matter. Ideal when the agent must justify its trading decision or when risk sub-scores (liquidity, resolution, event conflict) are needed separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T22:25:57.081Z","isFirstParty":false}