Skip to main content
Glama
Gemini Remote Agent MCP

Gemini Remote Agent MCP

by lisycotana

kill_bg_job

DestructiveIdempotent

Terminate a running background job and its entire child process tree, optionally specifying which signal to send.

Instructions

Terminate a background job and its child process tree.

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": {
      "job_id": "<job_id>"
    },
    "name": "kill_bg_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
signal_nameNoSIGTERM

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description does add one genuinely new behavioral fact: child processes are killed along with the parent. It stops short of covering signal behavior (the SIGTERM default vs. a forceful kill) or what happens if the job has already exited.

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 front-loaded sentence naming the action, target, and the notable side effect (child process tree) with zero filler.

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?

An output schema exists, so return values need no explanation, and annotations cover destructiveness and idempotency. However, a destructive termination tool with two wholly undocumented parameters leaves the agent without enough to choose a signal or know when killing is the right move.

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 0%, so both parameters rely on the description, which mentions neither job_id nor signal_name. The signal_name parameter is especially consequential, since choosing SIGKILL versus the default SIGTERM changes whether the termination is graceful, and nothing here explains that.

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 (Terminate) and resource (background job), and adds scope by noting the entire child process tree is killed. This implicitly separates it from siblings such as start_bg_job, poll_bg_job, and list_bg_jobs, 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 Guidelines2/5

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

No guidance on when to terminate versus polling or letting a job finish, no prerequisites, and no mention of how to recover a job_id. The only hint of usage is the verb itself, which the tool name already conveys.

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