https://<org>.mcp.credibledata.com/mcp.
Core Tools
suggestAnalysis
Translates natural language requests into executable Malloy queries based on your semantic data models. Parameters:naturalLanguageQuery(required): The user’s question in natural language (e.g., “What were our top-selling products last year?”)projectName(optional): Project name to search within. Only use if known from context or explicitly mentioned by user.packageName(optional): Package name to narrow search scope. RequiresprojectName.modelPath(optional): Path to specific.malloymodel file (e.g.,models/sales_model.malloy). RequiresprojectNameandpackageName.sourceName(optional): Specific source/table within a model. RequiresprojectName,packageName, andmodelPath.
projectName → packageName → modelPath → sourceName
Scope Strategy: Start broad when uncertain, narrow as you discover structure. If results are insufficient, widen scope by removing parameters from right to left.
Response:
matchingResults: Array of query suggestions with executable Malloyquerycode andprimaryTransactionTableentities: Available dimensions, measures, views, and columns you can usedocs: Malloy syntax documentation and common errors to avoidnextSteps: Actionable guidance for refining analysis
executeQuery
Executes Malloy queries against data models and returns JSON results. Parameters:projectName(required): Project containing the modelpackageName(required): Package containing the modelmodelPath(required): Path to the.malloymodel filequery(optional)*: Custom Malloy query code. Do NOT providesourceNamewhen using this.queryName(optional)*: Name of predefined query/view to executesourceName(optional)*: Source name. Required when usingqueryName, omit when using customquery.
- Custom query: Provide
queryparameter only - Predefined query: Provide both
queryNameandsourceName
data, totalRows, executionTime, and metadata
Authentication
The MCP server supports two authentication methods:- OAuth 2.0: For connecting to AI assistants like Claude Desktop. See AI Assistants with MCP.
- API Key: For building your own custom agents with server-to-server communication. Pass as
Authorization: ApiKey YOUR_API_KEYheader. See Custom AI Agents.
https://<org>.mcp.credibledata.com/mcp