Loki MCP Server
Server Quality Checklist
Latest release: v0.1.0
- Disambiguation5/5
Each tool has a clearly distinct purpose: labels lists label names, label_values lists values for a specific label, query runs instant queries, query_range runs range queries, and series finds active log streams. There is no overlap or ambiguity between these operations.
Naming Consistency5/5All tool names follow a consistent snake_case pattern with descriptive, domain-specific terms (labels, label_values, query, query_range, series). The naming is uniform and predictable across the set.
Tool Count5/5With 5 tools, this server is well-scoped for interacting with Loki's LogQL query system. Each tool serves a specific, necessary function without bloat or redundancy, fitting the typical range of 3-15 tools for a focused domain.
Completeness4/5The tool set covers core LogQL operations for querying and exploring logs in Loki, including listing labels, fetching values, and executing queries. A minor gap might be the lack of tools for managing log ingestion or configuration, but for query-focused use, it provides a complete workflow.
Average 3/5 across 5 of 5 tools scored.
See the Tool Scores section below for per-tool breakdowns.
- 0 of 1 community issues answered or closed in the last 6 months
- 0 commits in the last 12 weeks
- Last stable release on
- No critical vulnerability alerts
- No high-severity vulnerability alerts
- No code scanning findings
- CI is passing
This repository is licensed under MIT License.
This repository includes a README.md file.
No tool usage detected in the last 30 days. Usage tracking helps demonstrate server value.
Tip: use the "Try in Browser" feature on the server page to seed initial usage.
This repository includes a glama.json configuration file.
If you are the author, simply .
If the server belongs to an organization, first add
glama.jsonto the root of your repository:{ "$schema": "https://glama.ai/mcp/schemas/server.json", "maintainers": [ "your-github-username" ] }Then . Browse examples.
How to sync the server with GitHub?
Servers are automatically synced at least once per day, but you can also sync manually at any time to instantly update the server profile.
To manually sync the server, click the "Sync Server" button in the MCP server admin interface.
How is the quality score calculated?
The overall quality score combines two components: Tool Definition Quality (70%) and Server Coherence (30%).
Tool Definition Quality measures how well each tool describes itself to AI agents. Every tool is scored 1–5 across six dimensions: Purpose Clarity (25%), Usage Guidelines (20%), Behavioral Transparency (20%), Parameter Semantics (15%), Conciseness & Structure (10%), and Contextual Completeness (10%). The server-level definition quality score is calculated as 60% mean TDQS + 40% minimum TDQS, so a single poorly described tool pulls the score down.
Server Coherence evaluates how well the tools work together as a set, scoring four dimensions equally: Disambiguation (can agents tell tools apart?), Naming Consistency, Tool Count Appropriateness, and Completeness (are there gaps in the tool surface?).
Tiers are derived from the overall score: A (≥3.5), B (≥3.0), C (≥2.0), D (≥1.0), F (<1.0). B and above is considered passing.
Tool Scores
- Behavior1/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description claims 'List values' which implies a read-only operation, but annotations declare readOnlyHint=false and destructiveHint=true. This is a direct contradiction that could lead to catastrophic misuse by an agent believing this is a safe query when it actually performs destructive operations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness3/5Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence is appropriately brief, but given the destructive annotations and operational complexity, the description is under-sized rather than elegantly concise. Critical safety information is omitted, making the brevity inappropriate.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness2/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite having destructive annotations and three parameters (including time ranges), the description provides no output schema hints, no explanation of the destructive nature, and no guidance on the Loki query patterns. The contradiction with annotations further erodes completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters3/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the structured documentation carries the full parameter semantics. The description mentions 'specific label name' which aligns with the required 'label' parameter, but adds no format details, validation rules, or time range behavior beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose4/5Does the description clearly state what the tool does and how it differs from similar tools?
The description provides a clear verb ('List') and resource ('values for a specific label name in Loki'), specifying the domain. However, it does not explicitly differentiate from sibling tool 'labels' (which likely lists label names rather than values), which could cause selection ambiguity.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines2/5Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance provided on when to use this tool versus alternatives like 'query' or 'labels'. No mention of prerequisites such as requiring the label name to exist, or when the time range parameters are necessary versus optional.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior1/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations indicate destructiveHint=true and readOnlyHint=false, implying data modification or deletion, but description frames the tool as simply 'fetching' logs (a read operation). This creates a dangerous mismatch between expected and actual behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness3/5Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence is structurally efficient and front-loaded, but inappropriate brevity given the tool's destructive annotations. The conciseness comes at the cost of omitting critical safety information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness2/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Lacks output schema and description fails to indicate return format, pagination behavior, or what gets destroyed. For a tool marked destructive with 5 parameters, the description is insufficiently complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters3/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema has 100% description coverage, establishing baseline 3. Description mentions 'LogQL' (clarifying the query parameter format) and 'time window' (referencing start/end), adding contextual meaning without repeating schema details.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose4/5Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states the action (execute LogQL range query), target system (Loki), and scope (fetch logs over time window). Mentions 'range' which distinguishes from sibling 'query', though could explicitly contrast with instant queries.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines2/5Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides no guidance on when to use this vs. the sibling 'query' tool or others. Fails to warn about the destructive nature implied by annotations, giving no prerequisites or conditions for safe usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior1/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description uses 'Find', which implies a safe read operation, but the annotations declare readOnlyHint=false and destructiveHint=true. This is a significant contradiction: a destructive 'find' operation requires explanation (e.g., if it creates temporary resources or modifies indexes), which is completely absent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness3/5Is the description appropriately sized, front-loaded, and free of redundancy?
The single sentence is front-loaded with the verb and contains no waste, but it is inappropriately brief given the tool's complexity, contradictory annotations, and need for sibling differentiation. It sacrifices necessary context for brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness2/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Fails to explain the destructive nature indicated by annotations, lacks differentiation from similar query tools, and provides no guidance on the output format or cardinality (unique series vs. log lines). Incomplete for a tool with 3 parameters and destructive side-effects.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters3/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the schema adequately documents all three parameters (end, match, start). The description mentions 'matching a selector' which loosely maps to the 'match' parameter, but adds no semantic value beyond the schema's 'Stream selector' description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose4/5Does the description clearly state what the tool does and how it differs from similar tools?
States specific action ('Find'), resource ('active log stream series'), and system context ('in Loki'). However, 'Find' is slightly weaker than verbs like 'List' or 'Retrieve', and it doesn't explicitly clarify the distinction between 'series' (unique streams) and log lines returned by the sibling 'query' tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines2/5Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides no guidance on when to use this tool versus the sibling 'query', 'query_range', 'labels', or 'label_values' tools. In Loki, series discovery and log querying are distinct operations, but the description offers no selection criteria or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior1/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description contradicts the annotations by describing a 'List' operation (typically read-only) while annotations declare destructiveHint=true and readOnlyHint=false. It fails to explain what makes this destructive or how the time range parameters affect behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence of 12 words with zero waste. The value proposition is front-loaded and immediately clear.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness2/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
While the core purpose is stated, the description is incomplete given the destructive annotations and lack of output schema. It fails to resolve the contradiction between 'listing' and 'destructive' behavior or explain what data is returned.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters3/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the baseline is 3. The description adds no additional parameter context beyond what the schema already provides regarding the time range format or semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action (List), resource (label names in Loki), and context (for building LogQL queries), distinguishing it from sibling tools like query or label_values.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
It mentions the purpose ('for building LogQL queries') providing implied context, but lacks explicit guidance on when to use this versus label_values or query tools, and doesn't mention prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior3/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses the external system (Loki) and query language (LogQL), adding context beyond annotations. However, it does not explain the implications of destructiveHint=true or idempotentHint=false, nor does it describe the return payload or query cost characteristics.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The single sentence is tightly constructed with no wasted words, front-loading the action ("Execute") and clearly stating the domain-specific operation type ("instant query").
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complete input schema (100% coverage), present annotations covering safety hints, and simple parameter structure, the description is nearly complete. A minor gap exists regarding the output format (absent output schema), though 'query' implies data retrieval.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters4/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
While the schema has 100% coverage, the description adds valuable domain context: "LogQL" clarifies the query parameter's syntax, and "point-in-time" clarifies the time parameter's purpose. This exceeds the baseline expectation for well-schemed parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description provides a specific verb ("Execute"), resource ("LogQL instant query"), and target system ("Loki"). The phrase "point-in-time evaluation" effectively distinguishes it from the sibling tool "query_range" (which implies a time range), making the scope clear.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The terms "instant query" and "point-in-time evaluation" implicitly suggest when to use this tool (single timestamp evaluation) versus the "query_range" sibling, but it does not explicitly name alternatives or state when-not to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues.
- Evaluate tool definition quality.
Our badge communicates server capabilities, safety, and installation instructions.
Card Badge
Copy to your README.md:
Score Badge
Copy to your README.md:
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/incu6us/loki-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server