Skip to main content
Glama

Service Failure Diagnostics

service_failure_diagnostics

Diagnose systemd service failures to identify root causes and guide troubleshooting using read-only service inspection.

Instructions

Diagnose failures for a systemd service.

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": {
      "service_name": "<service_name>"
    },
    "name": "service_failure_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_nameYes

Output Schema

NameRequiredDescriptionDefault
statusYes
serviceYes
likely_causeNo
recent_failuresNo
recommended_remediationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 entire burden of behavioral disclosure. It does not say whether the tool is read-only, what evidence it gathers (unit state, exit codes, recent journal entries), whether it requires elevated privileges, or how expensive the call is; only the word "diagnose" hints at a non-mutating investigation.

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?

One front-loaded sentence with no filler or redundancy. Its brevity is appropriate in form, though it reflects under-specification rather than disciplined editing.

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?

The tool is structurally simple (one required string, output schema present so return values need no explanation), but with no annotations at all the description should at minimum establish that this is a read-only diagnostic and what kind of failure signal it produces. Neither is covered.

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

Parameters3/5

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

Schema description coverage is 0% for the single parameter, so the description must compensate. It does add that service_name refers to a systemd service rather than, say, a Docker container, but it does not state whether the .service suffix is expected or accepted, which matters given the regex pattern.

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?

"Diagnose failures" is a specific verb and "systemd service" names the resource and scope, which distinguishes it from docker_* and host_* siblings. It does not differentiate itself from closer siblings such as service_status, journal_search, or incident_diagnose, so an agent must still infer the boundary.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus service_status (check current state) or journal_search (raw log lookup), and no prerequisites or exclusions are stated. The agent is left to guess at the intended entry point for a failure investigation.

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