Skip to main content
Glama

server_logs

Tail remote log files or systemd journal units and filter output with grep to inspect recent service events without manual SSH log digging.

Instructions

Tail and optionally filter a remote log file or systemd journal unit.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>"
    },
    "name": "server_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
grepNo
linesNo
sourceYes
is_unitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses that the tool tails and optionally filters logs, but not whether output is a one-shot snapshot or a follow/stream, whether it is read-only, what permissions are needed, or how errors and large outputs are handled.

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 a single, front-loaded sentence with the verb first and zero filler. Its brevity contributes to gaps elsewhere, but structurally it is efficient and readable.

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

Completeness2/5

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

With no annotations, no output schema, and no schema parameter descriptions, the definition should explain source selection, filtering behavior, and return shape more fully. It leaves an agent unsure how to use is_unit versus a file path, what grep accepts, whether tail follows the log, and what the result looks like.

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

Parameters2/5

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

Schema coverage is 0%, so parameter meaning must come from the description. The sentence vaguely maps to the four parameters: 'log file or systemd journal unit' implies source and is_unit, 'filter' implies grep, and 'tail' implies lines, but it gives no syntax, format, default, or selection semantics, and does not name the parameters.

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?

The description uses a specific verb ('Tail') and resource ('remote log file or systemd journal unit'), so an agent can tell this is a log inspection tool rather than file editing, listing, or service control. It does not explicitly distinguish itself from sibling read/download tools such as server_read_file, so it falls short of a 5.

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?

Usage is implied by 'Tail' and 'log file or systemd journal unit': the agent can infer this tool is for inspecting logs rather than general file reads. However, there is no explicit when-to-use or when-not-to-use guidance and no reference to alternatives like server_read_file.

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