Skip to main content
Glama

Close a Zen tab

tabs_close
Destructive

Close a tab Claude opened to clean up finished browsing work; closing any other tab requires force=true and an explicit user request.

Instructions

Close a tab Claude opened. Use it to clean up tabs you are done with. Closing a tab Claude did not open requires force=true and should only be done when the user asks.

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": {
      "tabId": "<tabId>"
    },
    "name": "tabs_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoAllow closing a tab that Claude did not open (only when the user asked).
tabIdYesTab ID from tabs_context / tabs_create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior3/5

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

The destructiveHint=true annotation already tells the agent this is a destructive operation, so the description's main added value is the scope rule that only Claude-opened tabs are closable without force. However, that rule is restated almost verbatim from the schema's force field description, and nothing is said about failure modes or what happens to tab content.

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?

Three short sentences with no filler, and the default safe path is front-loaded while the consent constraint comes last. Each sentence contributes either scope, purpose, or a guardrail.

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 two-parameter destructive tool with annotations and full schema coverage, the description covers the critical unknowns: scope and user-consent. Remaining gaps (error behavior, whether tab history is lost) are minor for a close operation and partly covered by the destructiveHint.

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 description coverage is 100%, so both tabId and force are already documented, including the force semantics and the source of tabId. The description repeats the force constraint rather than adding new meaning, so 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?

The description states a specific verb and resource ('Close a tab') and scopes it to tabs Claude opened, which inherently separates it from tabs_create and tabs_context. It stops short of explicitly naming which sibling to use instead when the target is a tab Claude did not open, so the differentiation is implied rather than stated.

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

Usage Guidelines5/5

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

It gives an explicit positive case ('clean up tabs you are done with'), an explicit conditional path (force=true for tabs Claude did not open), and a hard precondition ('should only be done when the user asks'). An agent knows both when to call it and when to escalate for user consent.

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