io.github.WiliamRosa/cosmos-semantic
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| COSMOS_API_KEY | Yes | API key that identifies the user for the MCP server (used with the stdio transport for local MCP clients). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Cosmos semantic layer. Before querying:
Call
search_conceptswith the terms of the question: synonyms (in any language the glossary covers) lead to the concept and to the member (metric, dimension or rule) that defines it, with a usage example.Call
list_membersto see the available metrics, dimensions and rules.Call
querywith exact names. Dimensions aremodel.dimension; time accepts__day,__week,__month,__quarter,__year. Predicate business rules are used as the filter{rule.name}; filters compare{model.dimension}references with values. Personal data (LGPD) never reaches agents: grouping or filtering by it is denied. Always answer with the number the tool returned. Everyqueryresult has anevidenceenvelope: cite the metric formula, the business rules applied (with owner and test status), the reference date (as_of) and thequery_id, so the answer can be audited and replayed.
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 |
|---|---|
| search_conceptsC | Search glossary concepts by term or synonym, and tell how to use them. |
| explainC | Explain a metric, business rule, dimension, concept, team, system or process: definition, owner, source systems, processes and logic. |
| list_membersB | List the available metrics, dimensions and business rules. |
| queryC | Run a metrics request with the user's policies applied. Returns at most 200 rows. |
| show_sqlB | Show the SQL the engine generates for a request, without running it. |
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 5 tools
Each tool maps to a distinct semantic-layer action: discovery (list_members), lookup (search_concepts), inspection (explain, show_sql), and execution (query). The only soft overlap is between explain and search_concepts, both glossary-facing, but their descriptions clearly separate 'find by term' from 'get full definition/owner/lineage'.
Three tools follow a verb_noun pattern (list_members, search_concepts, show_sql), but explain and query are bare verbs, creating a mixed convention. Names remain readable and snake_case throughout, so it is a style inconsistency rather than a comprehension problem.
Five tools is a tight, well-scoped surface for a read-only semantic/metrics layer, with no redundant or filler tools. Every tool covers a distinct step of the discover-inspect-query workflow.
The surface covers discovery, glossary lookup, definition explanation, SQL preview, and execution, which is a coherent lifecycle for a query layer. Minor gaps exist: no explicit way to inspect the policies applied to a user's request or to get richer listing/pagination beyond the 200-row cap.