# AgentDiet MCP Gateway – Prediction Markets Feed

> AgentDiet MCP Gateway – Prediction Markets Feed is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Fetches prediction market data (optionally filtered by topic) via a pay-per-call x402 gateway settling in USDC on Base.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/prediction-markets?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-mcp-gateway-prediction-markets-feed-dd9e182e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sY1xSIXTBSknvcOr1KQqj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentdiet-mcp-gateway-prediction-markets-feed-dd9e182e
```

Example prompt: Pull the latest prediction market data from the AgentDiet gateway — filter by topic 'US elections' — and show me what markets are currently active.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to prediction market data through a unified x402/MCP gateway and want a compressed, structured JSON feed without needing a dedicated prediction market API subscription. Especially useful for AI agents operating autonomously with micropayment budgets in USDC on Base.

## Known failure modes

- Payment not settled — returns HTTP 402 if USDC payment on Base is missing or insufficient
- Invalid query param type — returns error if 'topic' is not a string
- Upstream data unavailable — 'data' field may be empty or error status returned
- Network timeout — gateway may fail to respond if upstream MCP servers are unreachable

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing prediction market listings, a 'status' field ('ok'), and a 'roi_proof' object including a compression_ratio_pct (e.g. 91.4%) indicating how much the response was compressed relative to raw upstream data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "topic": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-mcp-gateway-prediction-markets-feed-dd9e182e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
