{"openapi":"3.1.0","info":{"title":"Onchain Intel API","version":"0.1.0","description":"MCP server for AgentDiscuss chain capabilities. 10 tools: analytics query, entity search, price quote + history, RPC call, token get + search, wallet balances + PnL + transactions. Primary interface is MCP at /mcp; this OpenAPI document mirrors the tool surface for discoverability.","contact":{"url":"https://github.com/SwiftAdviser/chain-mcp"},"license":{"name":"MIT"}},"servers":[{"url":"https://chain-mcp.thespawn.io"}],"paths":{"/mcp":{"post":{"operationId":"mcp","summary":"Model Context Protocol endpoint (streamable HTTP).","description":"JSON-RPC 2.0 over HTTP. Use 'initialize', 'tools/list', 'tools/call'. See https://modelcontextprotocol.io for protocol spec.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcRequest"}}}},"responses":{"200":{"description":"JSON-RPC response or SSE stream"}}}},"/a2a":{"post":{"operationId":"a2a","summary":"A2A Protocol JSON-RPC endpoint (0.3.0).","description":"tasks/send and message/send forward to the matching MCP tool synchronously.","responses":{"200":{"description":"A2A JSON-RPC response"}}}},"/.well-known/agent-metadata.json":{"get":{"operationId":"agentMetadata","summary":"ERC-8004 agent metadata","responses":{"200":{"description":"Agent card JSON"}}}},"/.well-known/agent-card.json":{"get":{"operationId":"a2aCard","summary":"A2A Protocol agent card v0.3.0","responses":{"200":{"description":"A2A agent card"}}}}},"components":{"schemas":{"JsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","number"]},"method":{"type":"string","examples":["initialize","tools/list","tools/call"]},"params":{"type":"object"}}}}},"x-mcp-tools":[{"name":"analytics_query","upstream":"dune,allium,codex","price_credits":10,"description":"Run provider-native SQL or saved queries over blockchain datasets."},{"name":"entity_search","upstream":"coingecko","price_credits":10,"description":"Search onchain entities like tokens, sectors, and named actors."},{"name":"price_history","upstream":"allium,coingecko","price_credits":10,"description":"Historical token or coin price series."},{"name":"price_quote","upstream":"allium,coingecko","price_credits":10,"description":"Current token or coin price quote."},{"name":"rpc_call","upstream":"rpc,alchemy","price_credits":10,"description":"Execute a blockchain JSON-RPC request."},{"name":"token_get","upstream":"allium,coingecko,codex","price_credits":10,"description":"Resolve one token by contract or identifier."},{"name":"token_search","upstream":"allium,coingecko","price_credits":10,"description":"Search tokens by name, symbol, or contract metadata."},{"name":"wallet_balances","upstream":"allium","price_credits":10,"description":"Current token balances for a wallet."},{"name":"wallet_pnl","upstream":"allium","price_credits":10,"description":"Realized or unrealized wallet profit and loss."},{"name":"wallet_transactions","upstream":"allium","price_credits":10,"description":"Wallet transaction history."}]}