Skip to main content
Glama
ThainaJardim

observability-mcp

by ThainaJardim

query_loki_instant

Run an instant query in Loki using LogQL to get log entries for a specific timestamp, with a configurable result limit.

Instructions

Run a Loki instant query through Grafana datasource proxy.

Args: query: LogQL expression. limit: Maximum number of log lines to return (1–5000, default 100). at: Evaluation timestamp. RFC 3339 or Unix nanosecond string. Defaults to now when omitted.

Returns: JSON payload from Loki with matching log entries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNo
limitNo
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided. The description does not disclose behavioral traits such as idempotency, side effects, or read-only nature. It only states it returns a JSON payload. For a tool with no annotations, this is adequate but lacks explicit safety context.

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 concise, uses a clear docstring format with Args and Returns sections, and front-loads the main purpose. Every sentence adds value without redundancy.

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

Completeness4/5

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

For a three-parameter tool with no output schema beyond 'JSON payload', the description covers inputs and return value adequately. It could briefly explain the concept of an 'instant' query or mention limitations like paging, but overall it is sufficient.

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?

Schema description coverage is 0%, but the description fully explains all three parameters: query (LogQL expression), limit (range and default), and at (timestamp format and default). This adds significant value beyond the schema's typed definition.

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

Purpose5/5

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

Description clearly states the tool runs a Loki instant query through Grafana datasource proxy using LogQL. The purpose is specific: return matching log entries from an instant query. It distinguishes from siblings like list_loki_labels and query_loki_logs.

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

Usage Guidelines4/5

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

The description implies usage for point-in-time queries via 'instant' and default timestamp 'now'. However, no explicit guidance on when to prefer this over query_loki_logs (range) or query_metrics is given, leaving some ambiguity.

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

Install Server

Other Tools

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/ThainaJardim/observability-mcp'

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