MCP Tools
The 8 MCP tools for AI agent connectivity
Epistom exposes 8 MCP (Model Context Protocol) tools that AI agents use to understand data, generate queries, and provide feedback. These tools are available via both stdio and SSE transports.
Tool Reference
ask_question
Ask a business question and get a validated SQL answer.
Response: { "answer": "...", "sql": "SELECT ...", "confidence": 0.92, "query_id": "q-123", "sources": [...] }
get_definition
Look up the formal definition of a business concept.
Response: { "definition": "...", "domain": "Revenue", "related_concepts": [...], "constraints": [...] }
validate_sql
Validate SQL against the semantic model before execution.
Response: { "valid": true, "errors": [], "warnings": ["Consider adding a date filter"] }
list_concepts
List business concepts in the workspace.
Response: { "concepts": [{"name": "MRR", "domain": "Revenue", "description": "..."}, ...] }
get_schema
Get relevant table/column schema for a question.
Response: { "tables": [{"name": "invoices", "columns": [{"name": "amount", "type": "numeric"}, ...]}] }
get_metrics
Retrieve formal metric definitions with SQL formulas.
Response: { "metrics": [{"name": "MRR", "formula": "SUM(amount) WHERE status='active'", ...}] }
suggest_queries
Get verified query suggestions for a domain.
Response: { "suggestions": [{"question": "Monthly revenue trend", "sql": "SELECT ...", ...}] }
report_feedback
Report whether a query result was correct.
Response: { "submitted": true, "feedback_id": "f-456" }
Transport Modes
stdio
For Claude Desktop, Cursor, and MCP-compatible clients:
SSE (Server-Sent Events)
For web and remote connectivity:
The SSE endpoint is also available via the REST API at /api/v1/mcp/sse.