analytics-ai
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OFFLINE_MODE | No | Set to true to force offline/mock mode. If no API key is set (or OFFLINE_MODE=true), LLMClient automatically uses deterministic mock responses so the entire pipeline and test suite run offline at zero cost. | |
| GEMINI_API_KEY | No | Optional API key for Gemini (used by LiteLLM). Can be added to the .env file; if no API key is set (or OFFLINE_MODE=true), the LLMClient automatically uses deterministic mock responses so the entire pipeline and test suite run offline at zero cost. | |
| OPENAI_API_KEY | No | Optional API key for OpenAI (used by LiteLLM). Can be added to the .env file; if no API key is set (or OFFLINE_MODE=true), the LLMClient automatically uses deterministic mock responses so the entire pipeline and test suite run offline at zero cost. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ask_business_questionA | Answer a plain-English business question using the full analytics pipeline. Runs semantic resolution, safe DuckDB SQL generation, query execution, and returns an executive summary, key findings, and a chart recommendation. |
| inspect_ontologyA | Inspect the business ontology, entities, relationships, and metrics. If |
| generate_sql_onlyA | Generate and validate DuckDB SQL for a question without executing it. |
| execute_analytics_sqlA | Execute a read-only analytical SQL query directly against DuckDB. Rejects any non-SELECT/WITH statements or DDL/DML commands via SQLGlot AST validation. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The tools have distinct pipeline roles: full Q&A, ontology inspection, SQL generation without execution, and direct SQL execution. There is mild overlap between ask_business_question and generate_sql_only since both generate SQL, but the execute/no-execute distinction is clear.
All names use consistent snake_case with verb-first phrasing. Minor deviation: generate_sql_only includes a qualifier suffix rather than a clean verb_noun pattern, but it remains readable and predictable.
Four tools is well-scoped for a focused analytics pipeline: ask, inspect metadata, generate SQL, and execute SQL. Each tool has a clear purpose within that flow.
The surface covers the main analytics lifecycle from question to execution, plus ontology inspection and safe SQL validation. Minor gaps include no dedicated schema/table discovery beyond ontology inspection and no chart rendering, only recommendation.