Skip to main content
Glama

server_logs

Read-onlyIdempotent

Fetch recent logs from Coolify, Docker, or system journal, or obtain CPU, RAM, and disk usage metrics from Kastell-managed servers via SSH.

Instructions

Fetch logs and system metrics from Kastell-managed servers via SSH. Actions: 'logs' retrieves recent log lines from Coolify container (Coolify servers only), Docker service, or system journal. Bare servers: use service 'system' or 'docker' (coolify service not available). 'monitor' fetches CPU, RAM, and disk usage metrics (works for all server modes). Requires SSH access to target server (root@ip). Note: live streaming (--follow) is not available via MCP — use the CLI for live log tailing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction: 'logs' fetch recent log lines, 'monitor' fetch CPU/RAM/Disk metrics
serverNoServer name or IP. Auto-selected if only one server exists.
serviceNoLog source (only for 'logs' action): 'coolify' container (Coolify servers only), 'docker' service journal, 'system' full journalcoolify
linesNoNumber of log lines to fetch (only for 'logs' action, default: 50, max: 500)
containersNoInclude Docker container list in metrics (only for 'monitor' action)
Behavior4/5

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

Annotations (readOnlyHint=true, destructiveHint=false) already declare safety. Description adds SSH access requirement and limitation on live streaming, enhancing transparency beyond annotations.

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?

Description is well-structured: first sentence summarizes, then details actions, constraints, and limitation. Every sentence adds value, no redundancy. Front-loaded and concise.

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 no output schema, description provides general idea of return (log lines, CPU/RAM/disk metrics). Lacks format details but covers key aspects. Adequate for a read-only tool with good annotations.

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

Parameters4/5

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

Schema coverage is 100% (baseline 3). Description adds value by clarifying service validity per server mode (Coolify vs bare) and notes auto-selection for server. This enriches parameter understanding beyond 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?

Description clearly states it fetches logs and system metrics, distinguishes between 'logs' and 'monitor' actions, and specifies server types (Coolify vs bare). Purpose is specific and distinct from sibling tools.

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?

Provides explicit guidance on when to use each action and which service values apply to which server types. Mentions live streaming limitation and points to CLI. Lacks explicit alternatives among siblings but is sufficient.

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/kastelldev/kastell'

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