Skip to main content
Glama
Apple Container MCP Server

Apple Container MCP Server

by joeshirey

system_logs

Fetch recent log output from container system services to diagnose daemon-level failures such as containers that will not start or services that fail to come up.

Instructions

Fetch recent log output from the `container` system services (the apiserver and
its helpers), as opposed to a single container's logs.

Reach for this when the daemon itself is misbehaving: containers that will not
start, a system service that fails to come up, or errors that never surface in
per-container logs. For one container's stdout/stderr, use `get_logs` instead.

This tool never passes `--follow`; streaming would block until the subprocess
timeout killed it. Widen the window instead.

Args:
    last: How far back to read, as a number with an optional m/h/d suffix
        (a bare number means seconds). Defaults to "5m".

Returns:
    On success: {"status": "ok", "logs": str}
    On error:   {"status": "error", "message": str, "details": str}

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

Input Schema

NameRequiredDescriptionDefault
lastNo5m

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose a real behavioral trait: it never passes --follow because streaming would block until subprocess timeout, and advises widening the window instead. It also gives success/error response shapes; the only omission is any mention of auth or volume limits, which is minor for a read-only log fetch.

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?

Front-loaded with purpose and scope before usage, then args and returns in clearly separated blocks; no filler sentences. The Returns block partially duplicates the existing output schema, a small redundancy that keeps it from a 5.

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

Completeness5/5

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

For a single-parameter read tool with an output schema present, the description covers purpose, invocation timing, the non-streaming constraint, and the parameter format completely. Nothing an agent needs in order to call it correctly is missing.

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 coverage is 0%, so the description must compensate, and it does fully: `last` is defined as how far back to read, with an optional m/h/d suffix, a bare number meaning seconds, and a stated default of "5m". That is more than the schema's bare string type provides.

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?

States a specific verb and resource: fetch recent log output from the container system services (apiserver and helpers), and explicitly contrasts the scope with a single container's logs. An agent can distinguish it from get_logs and machine_logs without inspecting schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names concrete triggering conditions (daemon misbehaving, containers that will not start, system services failing to come up, errors absent from per-container logs) and names the alternative get_logs with the condition that selects it. Both when-to-use and when-not-to-use are covered.

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