Skip to main content
Glama
Nightingale (n9e) Built-in MCP Server

Nightingale (n9e) Built-in MCP Server

Official

query_logs

Read-only

Query logs from Loki, Elasticsearch, or OpenSearch through n9e's log endpoint by passing datasource_id and an engine-specific query; time ranges over 7 days are rejected.

Instructions

Query logs from a datasource (Loki/ES/OS) via n9e's plugin-dispatched /logs-query endpoint. Pass 'body' as the n9e query payload (must include datasource_id and the engine-specific query). Time range > 7 days is rejected.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "body": "<body>"
    },
    "name": "query_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoOptional Unix-second end (used only for range validation)
bodyYesLog query body (matches n9e's /logs-query payload)
limitNoCap on returned lines (default 200)
startNoOptional Unix-second start (used only for range validation)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context: plugin dispatch through n9e's /logs-query endpoint, the requirement that 'body' carry datasource_id and an engine-specific query, and the 7-day range rejection rule. It does not describe response shape or pagination behavior, which keeps it below a 5.

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

Conciseness4/5

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

Three tight sentences with the core action front-loaded and the constraint last; no filler. It is dense with jargon (plugin-dispatched, n9e payload) but each sentence carries information an agent needs.

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 nested-object, single-required-parameter tool with no output schema, the description covers the payload contract, supported engines, and a key rejection condition. Return format is undescribed, but with no output schema and limit defaults documented in the schema, that gap is minor.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above baseline by clarifying that 'body' must contain datasource_id and the engine-specific query, and that start/end serve only range validation rather than actual filtering. That is meaningful meaning beyond the schema's generic 'matches n9e's /logs-query payload' wording.

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 names a specific verb and resource ('Query logs from a datasource') plus the backing endpoint and supported engines (Loki/ES/OS), which lets an agent separate it from the metric-oriented query_instant/query_range siblings. It stops short of explicitly naming those alternatives.

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?

Usage is implied by the tool's domain (log retrieval) and one hard constraint is stated ('Time range > 7 days is rejected'), but there is no explicit when-to-use/when-not guidance or named alternative for log queries.

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