Skip to main content
Glama
io.github.WiliamRosa/cosmos-semantic

io.github.WiliamRosa/cosmos-semantic

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COSMOS_API_KEYYesAPI 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:

  1. Call search_concepts with 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.

  2. Call list_members to see the available metrics, dimensions and rules.

  3. Call query with exact names. Dimensions are model.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. Every query result has an evidence envelope: cite the metric formula, the business rules applied (with owner and test status), the reference date (as_of) and the query_id, so the answer can be audited and replayed.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 5 tools

Disambiguation4/5

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'.

Naming Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessOutdated data