# AgentDiet MCP Gateway Web Search

> AgentDiet MCP Gateway Web Search 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).

Performs a web search query and returns compressed, structured results via a pay-per-use x402 API gateway settling in USDC on Base.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/web-search?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-web-search-1d14a26d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fUZlD1aNTd5N5jjxoGnJ7

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-web-search-1d14a26d
```

Example prompt: Search the web for the latest news about OpenAI's new model releases and give me a summary of what you find.

## When to prefer this

Choose this endpoint when your agent needs live web search results and operates in an x402/USDC micropayment environment on Base, especially when you want compressed, structured results with proof of value (compression ratio) rather than raw HTML. Prefer it over traditional search APIs when you need pay-per-call crypto-native billing without API key management, or when integrating with MCP/A2A agent pipelines that already use the AgentDiet gateway.

## Known failure modes

- Payment failure or insufficient USDC balance returns HTTP 402 with payment instructions
- Missing or empty 'query' parameter may return an empty or error response
- Invalid 'type' or 'method' fields (must be 'http' and 'GET'/'POST') cause schema validation errors
- Network or upstream search provider outages may return a non-200 status
- Malformed input schema (e.g. extra properties) rejected due to additionalProperties: false constraint

## 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 'status' field ('ok'), a 'data' object containing search results, and an 'roi_proof' object that includes a compression_ratio_pct field (e.g. 91.4%) indicating how much the response was compressed relative to raw web content.

## 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": {
      "query": {
       "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-web-search-1d14a26d/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)
