Skip to main content
Glama

obi_docker_logs

Fetch and filter OBI Docker container logs by level, time range, and line count, with optional real-time following to diagnose and monitor instrumentation issues.

Instructions

Fetch logs from the OBI Docker container. Supports filtering by log level, time range, and number of lines. Can optionally follow logs in real-time.

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": "obi_docker_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoFilter logs by level
linesNoNumber of log lines to retrieve from the end
sinceNoShow logs since timestamp (e.g., "10m", "1h", "2d")
followNoFollow log output in real-time (stream mode)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavioral context that "follow" puts the call into streaming mode, but it is silent on permissions, behavior when the container is absent or stopped, and whether the call blocks indefinitely under follow.

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?

Three short sentences with the core purpose front-loaded and no filler. The final sentence largely repeats the schema's "follow" parameter, which costs it a point, but nothing is confusing or padded.

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?

This is a simple read-style tool with four optional, fully documented parameters and no output schema, so the description does not need to explain return values. The remaining gap is operational context, such as which container instance is targeted and what happens when it is not running.

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 every parameter including the level enum and the "since" duration examples is already documented in the schema. The description only restates the four parameters at a high level (level, time range, line count, follow) without adding format or edge-case meaning.

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 specific verb and resource ("Fetch logs from the OBI Docker container") and the filtering capabilities. The word "Docker" implicitly separates it from obi_k8s_logs and obi_get_logs, but the description never names those alternatives, so differentiation is left to inference.

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?

Usage is only implied: the reader can infer this is the tool for Docker-container logs rather than Kubernetes or generic logs. There is no explicit when-to-use or when-not-to-use statement, and no mention of prerequisites such as the container needing to be running.

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