Skip to main content
Glama

Close Pane

pane_close
Destructive

Closes a specified terminal pane and terminates its foreground process, enabling shutdown of panes you created or the user named.

Instructions

Close a terminal pane and terminate its foreground process. Only close panes you created or the user named.

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": {
      "pane_id": "<pane_id>"
    },
    "name": "pane_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
pane_idYesPane ID to close (for example 'w1:p2').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds the concrete consequence beyond that hint: the pane's foreground process is terminated, not merely detached. It does not cover irreversibility beyond the destructive flag or confirm whether save-state/output is lost, so it is not a 5.

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 short sentences: the action and effect first, the safety constraint second. No redundant or filler wording.

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

Completeness5/5

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

For a single-parameter, no-output-schema tool with rich annotations, the description covers action, effect, and the key safety precondition. Nothing an agent needs to call it correctly is missing.

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?

With a single parameter at 100% schema description coverage, the schema already fully documents pane_id including an example format. The description adds no meaning about the parameter, so the baseline 3 applies.

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 ('Close a terminal pane') plus the side effect ('terminate its foreground process'), which clearly separates it from tab_close or workspace_close at the resource level. It does not explicitly name a sibling alternative, but the resource scope is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

'Only close panes you created or the user named' gives an explicit eligibility constraint that tells the agent when not to use the tool. It stops short of routing to an alternative (e.g., detach vs. close) but gives clear operating context.

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