Skip to main content
Glama
mikesplore
by mikesplore

get_logs

Read-onlyIdempotent

Retrieve the last N lines from a systemd service log to diagnose issues. Specify the service name and line count to get recent log entries.

Instructions

Get the last N lines of a systemd service log.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesYes
serviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already provide readOnlyHint, idempotentHint, and destructiveHint, and the description is consistent with them. It adds no extra behavioral detail beyond identifying the log source, but since annotations already cover the safety profile, a 3 is appropriate.

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?

One short, front-loaded sentence with no filler. Every word contributes to understanding what the tool does.

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?

For a simple read-only tool with two required parameters and safety annotations, this is nearly sufficient. It lacks details about behavior on nonexistent services or invalid line counts, but those are minor gaps for a tool of this complexity.

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?

The schema provides no parameter descriptions, so the description compensates by mapping 'service' to a systemd service and 'lines' to the last N lines. It doesn't specify constraints like positive integers or unit name format, but the core meaning is clear.

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 ('Get'), resource ('last N lines of a systemd service log'), and scope, which clearly differentiates it from container-log or boot-error sibling tools. It is not a tautology and names the exact object being operated on.

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 phrase 'systemd service log' implies the intended context, but the description never explicitly says when to prefer this tool over alternatives like get_container_logs or get_boot_errors, nor gives any when-not-to-use guidance.

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

Deploy Server

Other Tools