Skip to main content
Glama

get_recent_logs

Tails the last N lines from a log file or a named service defined in .mcp-context.yml, helping you inspect recent activity and troubleshoot issues.

Instructions

Tail the last N lines of a log file or a named service defined in .mcp-context.yml

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_recent_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoAbsolute or relative path to a log file
linesNoNumber of lines to return
serviceNoService name as defined in .mcp-context.yml

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. "Tail" usefully implies a non-destructive read, but nothing is said about failure behavior for a missing file, what happens with very large files, permission requirements, or whether the call blocks/follows the log.

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?

A single, front-loaded sentence with no wasted wording. It is efficient, though its brevity contributes to the missing behavioral and usage detail.

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

Completeness2/5

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

With zero required parameters and no annotations or output schema, the definition should clarify mutual exclusivity — e.g., what happens if both `file` and `service` are supplied, or neither. That key ambiguity is left unresolved, which is a significant gap for a tool an agent must call correctly on the first try.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents file, lines, and service. The description only reinforces that `lines` means the last N and that `service` resolves via .mcp-context.yml — both already in the schema — so it adds no meaning beyond the structured fields.

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?

Uses a specific verb ("Tail") with a clearly scoped resource (log file or named service), and names the .mcp-context.yml source for service resolution. It is clear what the tool does, though it does not explicitly contrast itself with sibling diagnostics tools like check_service_health.

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 word "or" implies two modes (file vs. service) but the description never states when to choose one over the other, nor when to prefer this over sibling tools such as check_service_health or get_running_processes. No preconditions or exclusions are given.

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