Skip to main content
Glama
kubeopsai

k8s-telemetry-mcp

by kubeopsai

query_logs_custom

Execute a custom log query using LogQL, Datadog, or CloudWatch Insights syntax to fetch Kubernetes log lines from the observability stack within a specified timeframe.

Instructions

Execute a custom log query (LogQL for Loki, Datadog syntax, or CloudWatch Insights).

Args: query: Backend-native query string timeframe_minutes: How many minutes of logs to retrieve (1-1440) limit: Maximum number of log lines (1-500)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
timeframe_minutesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.2.6

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that the tool executes arbitrary backend-native queries and supports three different query syntaxes, and it provides limits for timeframe and line count. However, it does not describe the output/return format, error behavior, or any rate/cost implications of running custom queries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-structured: one front-loaded purpose sentence followed by a clean Args block. Every sentence adds necessary information without repetition or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and no annotations, the description does not explain the return shape or how the query backend is selected/decided among Loki, Datadog, and CloudWatch Insights. It provides enough for basic invocation but leaves meaningful gaps an agent would benefit from knowing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The Args block adds meaningful semantics and ranges for all three parameters: query is a 'Backend-native query string', timeframe_minutes is 'How many minutes of logs to retrieve (1-1440)', and limit is 'Maximum number of log lines (1-500)'. The input schema only provides types, titles, and defaults, so the description substantially enriches the parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific operation: 'Execute a custom log query' and names the supported query syntaxes (LogQL, Datadog syntax, CloudWatch Insights). This distinguishes it from simpler log-fetching tools by emphasizing custom/backend-native queries, though it never explicitly names sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'custom log query' and the list of query languages imply that this tool is intended for backend-native queries not covered by prebuilt tools, but the description provides no explicit when-to-use or when-not-to-use guidance and names no alternatives. Usage context must be inferred rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

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/kubeopsai/k8s-telemetry-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server