{"openapi":"3.0.0","info":{"title":"Budget Ceiling Enforcer","version":"1.0.0","description":"Prevents runaway cloud costs from AI agent usage. Enforces hard budget limits with configurable actions. Pay-per-request via x402 (USDC on Base).","guidance":"Two MCP tools: 'check_budget' (check/record spend, get enforcement action) and 'configure_budget' (set ceiling, thresholds, webhooks). POST to /mcp with JSON-RPC body. Include X-Payment-Tx header."},"paths":{"/mcp":{"post":{"summary":"Enforce budget ceiling on agent spend","description":"MCP endpoint for check_budget and configure_budget tools. Requires x402 payment (0.02 USDC on Base).","x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"0.02"},"parameters":[{"name":"X-Payment-Tx","in":"header","required":true,"description":"Transaction hash from USDC transfer on Base","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"method":{"type":"string","enum":["tools/call"]},"params":{"type":"object","required":["name","arguments"],"properties":{"name":{"type":"string","enum":["check_budget","configure_budget"]},"arguments":{"type":"object"}}},"id":{"type":"number"}}}}}},"responses":{"200":{"description":"Budget check or configuration result"},"402":{"description":"Payment Required"}}}}}}