Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Search logs

search_logs
Read-onlyIdempotent

Find message and exception text across all ingested log entries using case-insensitive substring matching or regular expressions, with optional filters for level, source, and time range.

Instructions

Search message and exception text across all ingested entries. Case-insensitive substring match by default, or a regular expression.

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": {
      "query": "<query>"
    },
    "name": "search_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoFilter by log level
limitNoMax results to return (default 50)
queryYesSearch term or regular expression
regexNoInterpret query as a regular expression (default false)
sourceNoOnly include entries whose source name contains this text
endDateNoEnd of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)
startDateNoStart of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)
fingerprintNoRestrict to entries with this fingerprint

Output Schema

NameRequiredDescriptionDefault
queryYes
totalYesTotal matches before applying limit
entriesYes
returnedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds useful behavioral detail about matching semantics (case-insensitive substring default vs regex), but says nothing about result ordering, pagination beyond the limit param, or the cost of scanning all ingested entries.

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?

Two tight sentences with the core action and the matching-mode rule front-loaded; nothing is redundant or padded.

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?

With an output schema, full parameter coverage, and annotations present, the definition supplies what an agent needs to call it correctly. The remaining gap is result ordering and behavior on very broad queries, which is minor but not nothing for a search tool over all entries.

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 baseline is 3, but the description adds real meaning: it clarifies the default matching behavior of the required query parameter and the fields searched, which the schema does not state. It does not elaborate on the filter parameters (level, source, date range, fingerprint), relying on the schema for those.

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?

States a specific verb and resource ('Search message and exception text across all ingested entries') and even names the searchable fields, which an agent could not infer otherwise. It does not distinguish itself from siblings such as get_log_context or group_by_property, so it falls short of a 5.

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 description makes the matching mode clear (substring by default, regex when requested), which implies when this tool applies, but it never says when to prefer it over alternatives like get_log_context or detect_new_error_pattern, nor does it state any exclusions.

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