Skip to main content
Glama
shell-mcp

shell-mcp

by Tabing010102

stop_background_task

Stop a running background shell task by its task ID, terminating the process managed by the shell-mcp server.

Instructions

Stop a running background task.

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": {
      "task_id": "<task_id>"
    },
    "name": "stop_background_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesThe task ID of the running background task to stop.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and does not meet it. It does not say whether the stop is graceful or forceful, whether it is synchronous or asynchronous, whether partial output/state is preserved, or whether the effect is irreversible.

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?

One short, front-loaded sentence with no filler or redundancy. It is not padded, though the brevity reflects under-specification rather than tight editing of rich content.

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?

The output schema relieves the description of explaining return values, but for a termination operation with zero annotation coverage, key behavioral facts are missing: sync vs async, failure modes for nonexistent or completed tasks, and whether any work is lost. An agent can identify the target but cannot predict the consequences of calling it.

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 coverage is 100% and the single parameter task_id is documented in the schema itself, so the description adds nothing beyond it. A baseline 3 is appropriate when the schema already does the explanatory work.

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?

States a specific verb and resource ("Stop a running background task"), which clearly separates it from siblings like get_task_status and list_background_tasks. It stops short of naming or contrasting alternatives explicitly, so it is clear but not maximally differentiating.

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 word "running" implies the tool applies only to active tasks, which is weak but real usage guidance. There is no explicit when-not guidance, no statement about what happens if the task has already finished, and no mention of alternatives for other lifecycle operations.

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