Skip to main content
Glama
jrvalinas

elastic-mcp

by jrvalinas

Get Latest Logs

get_latest_logs

Fetch recent Elasticsearch logs with optional service and level filters, and exclude messages by wildcard patterns to diagnose incidents.

Instructions

Fetch latest logs, optionally filtered by service and level. Use exclude_messages to filter out logs matching wildcard patterns (e.g. ["/health", "heartbeat"]).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lastNo15m
levelNo
limitNo
serviceNo
exclude_messagesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The verb 'Fetch' implies a read-only operation, but with no annotations and no explicit mention of side effects, authentication, or rate limits, the description only partially carries the transparency burden. It is clear enough for a basic read but lacks deeper behavioral detail.

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 two concise sentences, front-loaded with the main action and then providing a specific usage hint for one parameter. There is no fluff or irrelevant detail.

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?

The description provides basic context for the tool's purpose and one parameter but does not mention default behavior, result ordering, or how this tool relates to the sibling tools. Since an output schema is present, return values need not be described, but the parameter gaps and lack of alternative guidance reduce completeness.

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

Parameters2/5

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

The description explains 'service', 'level', and 'exclude_messages' but completely omits 'last' and 'limit'. Since the schema itself provides no descriptions, these two parameters remain ambiguous in terms of format and behavior, leaving a significant gap.

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?

The description clearly states a specific action ('Fetch latest logs') and a specific resource, with optional filters. It is easily distinguished from sibling tools like get_logs_for_service or get_logs_by_correlation_id by being the general-purpose log retrieval tool.

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

Usage Guidelines2/5

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

The description explains how to use exclude_messages but gives no explicit guidance on when to choose this tool over sibling tools such as get_logs_for_service or get_logs_by_correlation_id. It does not mention scenarios where one alternative would be preferred.

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