Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Send Signal to Process (Stop/Kill)

services_signal_process

Send SIGTERM, SIGKILL, SIGHUP, or SIGINT to a specified PID to stop, force-terminate, or reload a process; requires services.manage.

Instructions

向指定 PID 进程发送信号(SIGTERM 优雅停止、SIGKILL 强制结束、SIGHUP 重载),需开启 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": {
      "pid": "<pid>"
    },
    "name": "services_signal_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYes目标进程 PID(禁止对 PID<=1 发送)
signalNo发送的系统信号SIGTERM

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden: it discloses that SIGKILL is a forced termination and SIGTERM a graceful stop, plus the feature-flag requirement. It omits other important behavior: whether elevated/root permissions are needed, that killed processes cannot be recovered, and what is returned or raised on failure or an invalid PID.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single parenthetical sentence packs the action, the three main signal semantics and the authorization prerequisite, with the core action front-loaded and no redundant wording.

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 two-parameter, no-output-schema tool this covers purpose, signal meaning and the enablement prerequisite. Given that it is a destructive, unannotated operation, it should also state the irreversibility of SIGKILL and any permission requirements, which are currently missing.

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 semantics the schema lacks by explaining what SIGTERM, SIGKILL and SIGHUP actually do rather than just listing enum values. The SIGINT option in the enum is left unexplained, so it does not fully close the loop.

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 and resource ('向指定 PID 进程发送信号') and immediately clarifies what each signal does, so an agent can distinguish it from siblings like services_list_processes or services_control_dev. It stops short of naming an alternative tool explicitly, which keeps it at 4 rather than 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?

The prerequisite '需开启 services.manage' is a genuine usage condition that the agent must check before calling. However, there is no guidance on when to prefer SIGTERM versus SIGKILL, no warning about irreversibility, and no routing to alternatives for non-process targets.

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