Skip to main content
Glama
abranson
by abranson

Manage Device Service

sailfish_device_restart_service

Start, stop, restart, or check status of systemd services on Sailfish OS devices via SSH. Specify service unit, action, and mode (system or user).

Instructions

Run systemctl start/stop/restart/status for a system or user service.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNosystem
unitYes
actionNorestart
deviceNoConfigured device alias or ssh target. When the user says the device is attached over USB, use 'usb' for the default device or 'usb:<name>' when the user supplies a device name. The USB connection trusts that name for device metadata and does not resolve it through DNS.
timeoutNoCommand timeout in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already disclose readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is largely covered. The description adds nothing beyond that — it does not warn that stop/restart disrupts a running service, nor mention permissions, device connectivity requirements, or what 'status' returns. Only the passing mention of 'system or user service' adds context.

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?

A single tightly written sentence that leads with the underlying command, so structure is good. It is arguably too terse for a 5-parameter mutation-capable tool, but there is no filler.

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?

For a tool with 5 parameters, 40% schema coverage, no output schema, and no annotations covering permissions or side effects, the one-line description leaves substantial gaps: which device targets are valid, what happens on stop, and how the action/mode interact are all unaddressed.

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 description coverage is only 40% across 5 parameters, so the description must compensate and does not. The only parameters it touches are the actions (restart/start/stop/status) and the system/user distinction, which are already enumerated in the schema; unit, device, and timeout receive no additional explanation in the description.

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 names a concrete verb (run) and resource (systemctl service control), and the action list implicitly tells the agent this is a process-control tool rather than a build or observation tool. It does not name or distinguish itself from any sibling, but the purpose 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 Guidelines2/5

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

There is no guidance about when to choose this tool over alternatives such as sailfish_device_command_start, sailfish_device_command_status, or sailfish_device_user_session_command, all of which could plausibly cover similar service-related needs. No prerequisites or preconditions are stated.

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