Skip to main content
Glama
synology-mcp
by r03eRt

Container Manager: container logs

docker_logs
Read-only

Retrieve container stdout/stderr logs in reverse chronological order, with optional keyword and date filters to troubleshoot Docker containers on a Synology NAS.

Instructions

Log lines of a container (stdout/stderr), newest first, with optional text and date filters. Container Manager can take 20–60 s to answer for containers with long logs.

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

Input Schema

NameRequiredDescriptionDefault
toNoUp to this day (YYYY-MM-DD)
fromNoFrom this day (YYYY-MM-DD)
nameYesContainer name
limitNoMax lines (default 50)
offsetNo
keywordNoOnly lines containing this text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.16.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint true, openWorldHint false), yet the description adds genuinely new behavior: output is newest-first, covers both stdout and stderr, and Container Manager can take 20–60 s to answer on long logs. That latency caveat is exactly the kind of operational detail an agent needs before invoking. It stops short of describing pagination/truncation behavior or what happens when limit is exceeded.

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 short sentences, zero filler. What the tool returns and its ordering come first, the latency warning second — well front-loaded.

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 6-parameter read-only log fetcher, the description covers return content, ordering, filtering and performance. The main residual gap is the shape of the response (array of lines vs. a block of text) and whether offset pages across lines — notable given there is no output schema.

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 83%, so the schema already documents name, from/to, limit and keyword. The description only echoes that text and date filters exist, without clarifying interactions such as whether limit/offset apply before or after filtering, or how from/to compare to the log timestamps. Baseline 3 is appropriate.

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 concrete resource and what is returned: 'Log lines of a container (stdout/stderr), newest first, with optional text and date filters.' Scoping to 'a container' implicitly separates it from the system-log sibling, but no sibling is named explicitly.

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?

Use context is implied by the 'of a container' scoping (this is the per-container log reader rather than host logs), but there is no explicit when-to-use, when-not-to-use, or named alternative such as get_system_logs. An agent must infer the routing decision.

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