Skip to main content
Glama

Send a signal to a session

terminal_signal
Destructive

Sends a POSIX signal to a session's process group to interrupt, stop, or force-kill a running command; terminates the process tree on Windows.

Instructions

Send a POSIX signal to the session process group. Use SIGINT to interrupt a running command, SIGTERM to ask it to stop, or SIGKILL to force it. On Windows the process tree is terminated.

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": {
      "id": "<id>"
    },
    "name": "terminal_signal"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSession id (for example "term_1a2b3c4d") or the friendly name given at spawn time.
signalNoSignal to send. Default SIGINT.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value beyond that by stating the signal targets the whole process group and that on Windows the process tree is terminated, which is behavior an agent cannot infer from the annotations.

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?

Two tight sentences: the action and scope come first, then the signal-choice guidance. Nothing is redundant and no sentence is wasted.

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

Completeness4/5

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

For a destructive, two-parameter tool whose annotations already carry the safety profile, the description covers the action, the signal choices, and the platform fallback. It leaves unstated whether the session remains usable after the signal, a minor gap given the low complexity.

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% and the schema already documents the id format and the SIGINT default. The description still adds interpretive meaning by mapping each signal to an intent (interrupt, stop, force), which goes beyond the bare enum listing.

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 gives a specific verb and resource: 'Send a POSIX signal to the session process group.' It is immediately clear what the tool does and how it differs from terminal_close or terminal_exec in intent, though no sibling is named explicitly.

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?

It explains when to use each signal (SIGINT to interrupt, SIGTERM to stop, SIGKILL to force), which is genuine guidance for choosing a parameter value. It does not say when to reach for this tool versus terminal_close or terminal_exec, so tool-level selection is left to inference.

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