Skip to main content
Glama

security_systemd_check

Read-only

Systemd Unit Hardening Audit — Offline audit of a systemd .service unit (text= or url=), modeled on systemd-analyze security: runs as root, ProtectSystem/ProtectHome/PrivateTmp/NoNewPrivileges, kernel and device protections, SystemCallFilter, RestrictAddressFamilies, capability bounding set and dangerous capabilities, secrets in ExecStart or Environment, curl|sh, user-writable exec paths, UMask, + and ! exec prefixes. Returns exposure 0-10, label OK/MEDIUM/EXPOSED/UNSAFE, verdict, findings with line numbers and a suggested hardening drop-in. Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_systemd_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes[Service] ExecStart=/usr/bin/myapp

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the read-only/safe profile, and the description adds substantial context beyond them: offline operation, the x402 payment requirement and specific price, and the shape of the result (exposure 0-10, label, verdict, findings with line numbers, suggested drop-in). Minor ambiguity in 'runs as root', which reads as a checked condition rather than tool behavior, but overall transparent.

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?

Purpose is front-loaded, then coverage, then return values, then pricing — a sensible order. The comma-separated enumeration of every hardening directive is long and could be trimmed, but it is dense rather than redundant, so it largely earns its space.

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

Completeness3/5

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

With no output schema, the description does the work of explaining return values and verdict labels, which is a real strength. However, the phantom `url` parameter and the absence of guidance about sibling auditors leave an agent with gaps for a tool whose real interface is just a single pasted unit file.

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 100% for the single `text` parameter, so the baseline would be 3, but the description advertises '(text= or url=)' while the schema exposes only `text` and marks it required. An agent could reasonably attempt a `url` argument that does not exist, which is worse than adding no information.

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?

Names a specific verb and resource ('Offline audit of a systemd .service unit') and anchors it to a well-known reference ('modeled on systemd-analyze security'), which alone distinguishes it from the dozens of other security_* auditors. The scope is unambiguous.

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?

Says it is an 'Offline audit', which implies no live host access is needed, but never states when to pick this over siblings like security_dockerfile_check or security_sshd_check, nor any prerequisites or exclusions. Usage is inferable from the input type but not spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources