Skip to main content
Glama
bshandley

Homelab MCP Server

by bshandley

docker_container_logs

Retrieve recent Docker container logs for monitoring and troubleshooting, with options to filter by time, content, and line count.

Instructions

Get recent logs from a container

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
containerYesContainer name or ID
linesNoNumber of lines to return (default: 50, max: 500)
sinceNoOnly logs since timestamp, e.g., "1h", "30m"
filterNoRegex pattern to filter log lines (e.g., "error|warn|fail")
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. 'Get recent logs' implies a read-only operation, but it doesn't specify permissions needed, whether this affects container performance, rate limits, or what format/log level the logs return. For a tool that interacts with running containers, more behavioral context would be helpful.

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 extremely concise at just 5 words, front-loading the core purpose with zero wasted words. Every word earns its place, making it easy for an agent to quickly understand the tool's function.

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?

For a tool with 4 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the logs contain, their format, whether they include timestamps, or how 'recent' is defined. Given the complexity of container logging and lack of structured metadata, more context would help agents use this tool effectively.

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 input schema already documents all four parameters thoroughly. The description adds no additional parameter semantics beyond what's in the schema - it doesn't explain relationships between parameters or provide usage examples. Baseline 3 is appropriate when schema does the heavy lifting.

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 clearly states the verb 'Get' and resource 'recent logs from a container', making the purpose immediately understandable. However, it doesn't differentiate from potential sibling tools like 'docker_container_stats' which might also provide container information, though those appear focused on different aspects (stats vs logs).

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 provides no guidance on when to use this tool versus alternatives. While sibling tools like 'docker_list_containers' and 'docker_container_stats' exist, there's no mention of when to choose logs over stats or how this relates to other container monitoring tools. No prerequisites or exclusions are stated.

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/bshandley/homelab-mcp'

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