Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Control macOS launchd Service

services_control_launchd

Restart, enable, or disable macOS launchd services by label, choosing GUI or system domain to control background daemons and agents.

Instructions

控制 macOS launchd 服务(kickstart 重启拉起、enable、disable),需开启 services.manage。

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": {
      "label": "<label>",
      "action": "<action>"
    },
    "name": "services_control_launchd"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYeslaunchd 服务 Label
actionYes操作类型
domainNo作用域 gui 或 systemgui

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose a permission prerequisite (services.manage) and clarifies that kickstart means restart/bring-up. However, it omits important behavioral facts for a mutation tool: that disable can stop a running service, whether actions are reversible, and the disruption/side-effects of kickstart.

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 front-loaded sentence with no wasted words, packing purpose, three actions, and the permission prerequisite. Structure is a flat clause list rather than clearly segmented, keeping it just below top marks.

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?

For a mutation/control tool with no annotations and no output schema, the description covers purpose, actions, and prerequisite, which is adequate. It is not fully complete because it omits failure behavior, reversibility, and the disruptive impact of kickstart/disable that an agent would need before invoking.

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 100%, so the schema already documents label, action, and domain. The description reinforces action semantics but adds no detail on label format or domain behavior beyond what the schema states, so baseline 3 is appropriate.

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 states a specific verb (控制/control) plus resource (macOS launchd 服务) and enumerates the three concrete actions (kickstart 重启拉起、enable、disable), which distinguishes it from read-oriented siblings like services_inspect_launchd. It does not explicitly name the sibling services_control_dev as an alternative, so it stops short of a 5.

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?

Usage is implied by the enumerated actions and the stated precondition (需开启 services.manage), but there is no explicit 'use when / use when not' guidance and no routing to alternatives such as services_inspect_launchd for reading state or services_control_dev.

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