Skip to main content
Glama
jahrulnr

mcp-docker-agentic

by jahrulnr

docker_read_file

Read UTF-8 text files from Docker containers with configurable line ranges. Use offset and limit to target specific sections, defaulting to the first 200 lines.

Instructions

Read a UTF-8 text file from a Docker container. offset and limit select a 1-based line range; limit=0 means unlimited. Defaults to first 200 lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute or relative path inside the container.
limitNoMaximum number of lines to return; 0 means unlimited.
offsetNo1-based starting line (0 is treated as 1).
containerYesDocker container name or id.
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It transparently explains offset/limit semantics (1-based, limit=0 unlimited) and the default first-200-lines behavior, providing useful operational details beyond the schema. It does not cover error cases or return format, but the core behavior is well disclosed.

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 sentences, front-loaded with purpose, and every clause is informative. The line-range explanation and default are compact and precise, with no redundant filler or repetition.

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 simple read tool with no output schema and no annotations, the description covers the essential behavior: what it reads, line-range selection, and defaults. It does not explicitly state the return value (file contents) but that is implied. Missing error conditions are a minor gap, but the description is sufficiently complete for the tool's complexity.

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 coverage is 100% with descriptive parameter docs, so the baseline is 3. The description restates offset/limit semantics and the default, adding no new information beyond what the schema already provides. It does not clarify parameter interactions beyond the line-range concept.

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 begins with 'Read a UTF-8 text file from a Docker container,' a specific verb+resource statement. It clearly distinguishes from sibling tools like docker_read_image (reads images) and docker_list_dir (lists directories), making the tool's scope unambiguous.

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

Usage Guidelines4/5

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

The description implies usage for reading text files with line-based access and highlights the default limit of 200 lines, giving practical context. However, it does not explicitly mention alternatives or when not to use it (e.g., for binary files), though sibling names like docker_read_image provide implicit boundaries.

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/jahrulnr/mcp-docker-agentic'

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