Skip to main content
Glama

set_service_startup

DestructiveIdempotent

Sets whether a systemd service starts automatically, manually on demand, or stays disabled; it changes startup only and does not start or stop a running service.

Instructions

Sets how a systemd service starts: automatic (enabled), manual (disabled: started on demand) or disabled (masked: cannot be started); automatic_delayed does not exist on Linux. It changes the startup only: a running service keeps running, and control_service starts or stops it; get_service shows the current setting. Unless Anabolic runs as root, pkexec asks for an administrator's password on the desktop, and the call fails when that dialog is dismissed or cannot be shown.

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": {
      "name": "<name>",
      "startup": "<startup>"
    },
    "name": "set_service_startup"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe service's name, as list_services gives it.
startupYesautomatic, automatic_delayed, manual or disabled.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.1
    • addedInput schema / properties / name / description
      Added value: +"The service's name, as list_services gives it."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the privilege path (pkexec prompts on the desktop unless running as root) and the concrete failure mode (call fails if the dialog is dismissed or cannot be shown). It also clarifies the side-effect boundary — a running service keeps running — which matters given destructiveHint=true. Slightly short of 5 only because it never spells out whether masking is reversible or what a success response contains.

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?

Front-loaded with the core action and value semantics, and every clause carries information (value mapping, side effects, sibling routing, auth failure). The single run-on sentence with semicolons and parentheticals is dense enough that a reader must parse it carefully, which costs a point.

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

Completeness5/5

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

For a two-parameter mutation with no output schema, it covers everything an agent needs: value semantics, platform caveat, side effects on running services, privilege escalation and its failure mode, and correct sibling routing. Nothing material is left to inference.

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%, so the baseline is 3, but the description adds real meaning the schema lacks: it maps each startup string to the underlying enable/disable/mask behavior and warns that one schema-listed value is invalid on Linux. The name parameter is not elaborated beyond the schema's own pointer to list_services.

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 and resource ("Sets how a systemd service starts") and immediately defines the value space with platform-specific semantics (automatic=enabled, manual=disabled/on-demand, disabled=masked). It explicitly separates itself from control_service (start/stop) and get_service (read current setting), so an agent can pick the right sibling without opening schemas.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing: use this to change startup behavior, use control_service to start/stop, use get_service to inspect. It also adds a when-not caveat by flagging that automatic_delayed does not exist on Linux, preventing an invalid call the schema appears to permit.

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