{"openapi":"3.1.0","info":{"title":"Lead Enrichment MCP API","description":"MCP-native API for enriching B2B company profiles with structured firmographic, technographic, intent, and contact data. Designed for autonomous AI agents.","version":"1.0.0","contact":{"name":"Lead Enrichment API Support","url":"https://lead-enrichment-mcp.agent-infra.workers.dev"},"license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"}},"servers":[{"url":"https://lead-enrichment-mcp.agent-infra.workers.dev","description":"Production server"},{"url":"http://localhost:8787","description":"Local development server"}],"paths":{"/mcp":{"post":{"operationId":"callMcpTool","summary":"Call MCP tool","description":"Send a JSON-RPC request to the MCP server to execute a tool.","tags":["MCP"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"oneOf":[{"type":"string"},{"type":"number"}]},"method":{"type":"string"},"params":{"type":"object"}}},"example":{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"enrich_lead","arguments":{"domain":"stripe.com"}}}}}},"responses":{"200":{"description":"Successful tool execution"},"401":{"description":"Authentication required or invalid"},"429":{"description":"Rate limit exceeded"}}}},"/health":{"get":{"operationId":"getHealth","summary":"Health check","description":"Returns the health status of the API service.","tags":["System"],"responses":{"200":{"description":"Service is healthy"}}}},"/test/enrich":{"get":{"operationId":"testEnrichment","summary":"Test enrichment endpoint","description":"Quick test endpoint for verifying enrichment functionality. Requires authentication.","tags":["Testing"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"Company domain to enrich"}],"responses":{"200":{"description":"Enrichment result"}}}},"/.well-known/mcp-server.json":{"get":{"operationId":"getServerCard","summary":"MCP Server Card","description":"Returns the server card for MCP discovery.","tags":["Discovery"],"responses":{"200":{"description":"Server card JSON"}}}}},"components":{"schemas":{"ProblemDetails":{"type":"object","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"detail":{"type":"string"},"status":{"type":"integer"},"instance":{"type":"string","format":"uri"},"extensions":{"type":"object"}}}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key or JWT","description":"API key or OAuth 2.1 JWT token"}}},"tags":[{"name":"MCP","description":"MCP protocol endpoints"},{"name":"System","description":"System endpoints"},{"name":"Testing","description":"Test endpoints"},{"name":"Discovery","description":"Service discovery"}]}