Skip to main content
Glama

local_ydb_container_logs

Read-onlyIdempotent

Read recent Docker logs from static or dynamic local-ydb containers to diagnose bootstrap, restart, or readiness failures. Select the container role and adjust line count for targeted troubleshooting.

Instructions

Read recent Docker logs from the configured static or primary dynamic local-ydb container. Use when bootstrap, restart, or readiness checks fail; target selects the container role and lines controls the tail length.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNoNumber of recent log lines to read. Defaults to 200.
targetYesContainer role to read logs from: static node or primary dynamic tenant node.
profileNoNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
configPathNoAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.21
    • changedInput schema / properties / configPath / description
      Previous value: -"Explicit local-ydb config file path to load for this tool call. Useful when the MCP server should pick up a different config without restart."New value: +"Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults."
    • addedInput schema / properties / configPath / minLength
      Added value: +1
  2. Addedv0.1.13
  3. Removedv0.1.12
  4. Addedv0.1.5
  5. Removedv0.1.4
  6. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / configPath / description
      Added value: +"Explicit local-ydb config file path to load for this tool call. Useful when the MCP server should pick up a different config without restart."
    • addedInput schema / properties / profile / description
      Added value: +"Named profile from local-ydb.config.json. Defaults to config.defaultProfile."
    • addedInput schema / properties / target / description
      Added value: +"Container role to read logs from: static node or primary dynamic tenant node."
  7. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds one behavioral nuance—'recent' logs and tail-length control—but otherwise relies on schema details for target/profile/configPath behavior. It does not describe output format, ordering, or failure mode for missing containers, though these are not critical for a simple read-only log tool.

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 with zero filler. The first sentence front-loads the purpose, and the second sentence adds the usage trigger plus a compact mapping of key parameters. Every clause earns its place.

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 low-complexity, read-only log tool with a fully documented parameter schema, the combination of description and schema is mostly complete. The absence of an output schema is mitigated by the phrase 'Read recent Docker logs,' which implies the result is log content. Minor non-critical details like log format or timestamping are not covered, but an agent selecting this tool should have enough to invoke it correctly.

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%, and each parameter already has a thorough description: target enumerates static/dynamic, lines has a default, profile points to defaults, and configPath explains fail-closed behavior. The description's mention of 'target selects the container role' and 'lines controls the tail length' essentially repeats schema information, adding little new semantic value.

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 opens with a specific verb and resource: 'Read recent Docker logs from the configured static or primary dynamic local-ydb container.' It clearly distinguishes this tool from sibling status, health, and bootstrap tools by making the diagnostic log-reading purpose explicit. There is no ambiguity about what the tool operates on or produces.

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 explicitly states when to use the tool: 'Use when bootstrap, restart, or readiness checks fail.' This gives a concrete trigger context. However, it does not name alternative tools or provide explicit when-not-to-use guidance, so it misses the top of the scale.

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