Skip to main content
Glama

Query container logs

QueryContainerLogs
Read-onlyIdempotent

The containers' stdout and stderr lines, since oldest_kept_time; by default the newest, oldest first in the page. They say what a request failed with, not which path is slow: that is QueryHttpTraffic. OUT_OF_RANGE = the range ends before the oldest kept. Untrusted.

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

Input Schema

NameRequiredDescriptionDefault
limitNo≤500; 0 = 100. Also ends at ~64 KiB.
filterNo
end_timeNoAbsent = now.
workspaceNoThe workspace: its id or name (ListWorkspaces). Omit when the account has one.
from_startNoFalse = the newest before end_time; true = the oldest after start_time.
page_tokenNoThe previous next_page_token, other fields unchanged.
project_idNo
start_timeNoAbsent = the oldest kept.
last_secondsNoAs in QueryHttpTraffic.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspace
      Added value: +{
      +  "description": "The workspace: its id or name (ListWorkspaces). Omit when the account has one.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavior on top: default ordering (newest first, oldest-first within a page), the OUT_OF_RANGE meaning for ranges before the oldest kept log, the ~64 KiB/500-line cutoff effect, and an 'Untrusted' warning about log content. Auth or rate-limit behavior is not mentioned, keeping it short of a 5.

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?

Two compact sentences, front-loaded with what is returned and immediately followed by the sibling routing. The telegraphic style and dangling 'Untrusted.' cost some readability, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter tool with a nested filter and no output schema, the description covers ordering, paging direction, and one error code, but never sketches the shape of a returned log entry (timestamps, container identity, stream) and does not touch the filter dimensions. Adequate to call correctly, thin on what comes back.

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 78% and schema prose already documents limit caps, stream enum, service, text_contains, and default times. The description mainly clarifies the start/end defaults and the ordering that from_start controls; it adds little per-parameter meaning beyond that, and 'last_seconds: as in QueryHttpTraffic' defers to a sibling rather than explaining.

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?

Identifies the exact resource: container stdout and stderr lines, with scoping since the oldest kept time. Explicitly separates itself from QueryHttpTraffic (request failure cause vs. slow path). The verb is implicit and the sentence is a noun phrase, but an agent can still tell what it fetches and what it does not.

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?

Gives a clear diagnostic use case ('what a request failed with') and names the alternative tool plus the condition that selects it ('not which path is slow: that is QueryHttpTraffic'). No further when-not guidance (e.g., vs. Mentions or Show) is offered, but the primary fork is resolved.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources