Available Tools
When an AI agent connects to Altertable via MCP, it gains access to the following tools. This list is generated from the MCP server definition and stays in sync automatically.
| Tool | Description |
|---|---|
create_discovery | Creates a new discovery to log a finding. A notification record is always created. Set notify to false to skip fanning out notifications through enabled delivery channels — notifications are sent by default. |
create_funnel_insight | Creates a new funnel insight. Returns the insight ID and slug. |
create_memory | Store insights, learnings, and procedures discovered during data analysis. Use episodic for analysis sessions/findings, semantic for data facts/patterns, procedural for query techniques/workflows. Higher importance decays slower. |
create_segmentation_insight | Creates a new segmentation insight. Returns the insight ID and slug. |
create_semantic_insight | Creates a new semantic model-based insight. Returns the insight ID and slug. |
create_sql_insight | Creates a new SQL-based insight. Returns the insight ID and slug. |
create_task | Create a task to automatically monitor charts or dashboards on a recurring schedule. |
explain_sql | Analyzes a DuckLake SQL query and returns execution plan information including table scan estimates and file statistics. Use this to understand query performance characteristics before execution. |
get_catalog | Returns a markdown description of a lakehouse catalog (altertable database or external connection): physical schemas, tables, columns and semantic dimensions, semantic measures, and relations. Pass catalog_name from list_catalogs; the tool resolves connection vs database. |
initialize | REQUIRED FIRST STEP: CALL THIS BEFORE ANY OTHER TOOL. Returns information about the current organization, environment, and knowledge-entry context the agent must use to decide what to do and how to behave. Skipping this risks acting on the wrong scope or missing mandatory specific guidance. |
list_catalogs | Lists all data catalogs in the current environment: external connections (Postgres, Snowflake, etc.) and Altertable databases. Each entry includes catalog_name (use with get_catalog), name, and engine. For full schema, tables, and columns, call get_catalog with that catalog_name. |
list_events | Retrieves events along with statistics for a given time period. Returns aggregated event data including event names, counts, and metadata. Supports optional query filtering to search specific events. |
list_insights | Lists all insights (charts) in the organization. Insights are saved queries that can be SQL, semantic, segmentation, or funnel type. Supports optional query filtering to search by title or description. Returns insight metadata including slug, title, description, chart kind, and creation/update timestamps. |
list_semantic_models | Retrieves available semantic models for the organization. Semantic models define data structures that can be queried using semantic insights. Optionally filters by connection slug to show models for a specific database connection. Returns model definitions with slugs, fully qualified table names, and schema definitions. |
list_user_traits | Retrieves user traits (attributes) data. Returns user attribute data that can be used for segmentation, personalization, and analysis. User traits include properties like email, name, subscription tier, and custom attributes. |
preview_insight | Previews the results of an insight without creating a permanent insight. Dispatches on the kind field and expects the matching definition: funnel + funnel_definition, segmentation + segmentation_definition, retention + retention_definition, semantic + semantic_definition, or sql + sql_statement. Funnel, segmentation and retention kinds also require from, to, and interval. Useful for testing configurations before committing to creation. |
query_lakehouse | Executes one or more SQL queries directly against the lakehouse database using DuckLake dialect. Returns query results as structured data with rows and column metadata. |
search_docs | Search the Altertable platform documentation for information about features, insight types, usage and best practices. Returns relevant documentation snippets with titles, content, and URLs. |
search_memory | Search for memories with relevance-based ranking (considers recency, access patterns, and importance). Supports both semantic (vector) and keyword search. Note: Each search increments access_count on returned memories. Tip: Use this tool proactively at the start of a workflow to auto-recall relevant context. |
search_skills | Find relevant Altertable agent skills for a task using semantic similarity. Returns the best-matching skills plus guidance on when to use them. Call this before starting work when you need to discover applicable agent capabilities. |
take_screenshot | Takes a screenshot of a dashboard or insight via its shared link. Returns an inline image for visual verification. Auto-creates a short-lived share token if none exists. |
validate_sql | Validates whether a SQL statement is valid DuckDB dialect |
view_dashboard | Retrieves a dashboard by its slug. Returns title, description, tags, and ordered widgets (chart/text/section with grid positions). Includes a flat list of referenced insight slugs. Does NOT execute queries — use view_insight for that. |
view_insight | Executes an insight query and returns results. Works with SQL, semantic, segmentation, and funnel insights. For large results, summarize key findings rather than echoing raw data. |
web_analytics_fetch_popular_pages_over_week | Fetch the 50 most popular pages for a given environment and time period. |