Skip to main content
Glama
junzzhu

OpenShift MCP Server

by junzzhu

get_pod_logs

Retrieve container logs from OpenShift pods to diagnose issues, monitor application behavior, and troubleshoot deployments by specifying namespace, pod name, and optional parameters like container, time range, or line count.

Instructions

Retrieve container logs from a pod.

Args:
    namespace: Pod namespace
    pod_name: Pod name
    container: Specific container name (if None, gets all containers)
    previous: Get logs from previous container instance
    tail: Number of recent lines to retrieve (default: 100)
    since: Time duration to retrieve logs from (e.g., "1h", "30m")
    
Returns:
    Formatted logs with container separation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceYes
pod_nameYes
containerNo
previousNo
tailNo
sinceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's function and output format ('Formatted logs with container separation'), but lacks details on permissions, rate limits, error conditions, or whether it's read-only/destructive. It adds value beyond the schema but doesn't fully cover behavioral traits.

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?

The description is well-structured with a purpose statement, organized parameter list, and return value note. Every sentence adds value: the first states the tool's function, the Args section documents parameters efficiently, and the Returns section clarifies output formatting. No wasted words.

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?

Given the tool's moderate complexity (6 parameters, no annotations, but has output schema), the description is mostly complete. It covers all parameters semantically and mentions the output format. However, it lacks behavioral context like permissions or error handling, which would be beneficial despite the output schema existing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate fully. It provides clear semantic explanations for all 6 parameters, including defaults (e.g., 'default: 100'), null handling ('if None, gets all containers'), and format examples (e.g., 'e.g., "1h", "30m"'). This adds significant meaning beyond the bare schema.

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 clearly states the specific action ('Retrieve container logs') and resource ('from a pod'), distinguishing it from sibling tools like get_pod_diagnostics or detect_pod_restarts_anomalies which focus on different aspects of pod monitoring. It directly communicates the core function without ambiguity.

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?

The description implies usage for accessing pod logs but provides no explicit guidance on when to use this tool versus alternatives like get_pod_diagnostics or inspect_gpu_pod. It mentions container separation in returns, which hints at multi-container scenarios, but lacks clear when/when-not instructions or named alternatives.

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/junzzhu/openshift-mcp-server'

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