Skip to main content
Glama

Close Tab

tab_close
Destructive

Closes a specified tab and terminates all pane processes inside it; use only for tabs you created or the user named.

Instructions

Close a tab and terminate all pane processes inside it. Only close tabs 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": {
      "tab_id": "<tab_id>"
    },
    "name": "tab_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
tab_idYesTab ID to close.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is known. The description adds real value beyond them by disclosing the blast radius — every pane process inside the tab is terminated, not just the tab shell. It does not say whether termination is graceful or whether the action is recoverable, but the key side effect is disclosed.

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 its side effect first, then the safety guardrail. No redundant restatement of the title, no filler, and the destructive consequence is front-loaded where an agent will read it.

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 one-parameter destructive tool with rich annotations and no output schema, the description covers action, side effect, and authorization boundary. The only meaningful omission is whether pane processes receive a graceful shutdown or are killed outright, which an agent might want to warn users about.

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?

There is a single parameter (tab_id) with 100% schema description coverage, so the schema already documents it fully. The description adds no format, sourcing, or lookup guidance beyond what the schema provides, which matches the baseline for a fully covered schema.

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?

"Close a tab" is a specific verb plus resource, and the added clause "terminate all pane processes inside it" makes the scope wider than a single pane, implicitly distinguishing it from pane_close and workspace_close. It stops short of explicitly naming a sibling, so it is clear but not fully differentiating.

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 tabs you created or the user named" is an explicit when-to-use guardrail that prevents an agent from cleaning up tabs it did not own. There is no stated alternative for closing a single pane or a whole workspace, but the usage constraint itself is clear.

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