Skip to main content
Glama

Close every tab except one

browser_close_other_tabs

Close all tabs except a specified tab while leaving pinned tabs intact, useful for cleaning up after a series of agent-created tabs.

Instructions

Close all tabs in the window except the given one ("close other tabs" in the tab context menu). Pinned tabs are left alone, the same way the menu behaves. Use it to clean up after a series of agent tabs.

Input Schema

NameRequiredDescriptionDefault
contextNoTab context id to keep (default: the active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

The description goes far beyond the simple `readOnlyHint: false` annotation by detailing crucial operational behavior. It explicitly states that 'Pinned tabs are left alone' and that the action mimics the built-in menu, adding essential constraints that the API structure alone cannot convey.

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?

The definition is perfectly sized. The first sentence defines the core function and mechanism, and the second sentence adds critical constraints (pinned tabs) and use case, with zero wasted words.

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?

Given the complexity of the operation (closing multiple tabs based on an exclusion list), the description is completely sufficient. It covers the mechanism, the constraints (pinned tabs), and the intended use case, leaving the agent with all necessary operational information.

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 100% schema coverage, the parameter semantics are well-covered by the input schema itself. The description clarifies that the 'context' is the ID to keep, which reinforces the schema but adds minimal semantic value beyond the structured definition. Baseline score applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The purpose is perfectly clear: to close tabs while preserving a specified tab. The use of the phrase 'Close all tabs in the window except the given one' is highly specific, and mentioning the 'close other tabs' context menu reinforces its precise function.

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?

While it doesn't explicitly contrast itself against every sibling, it provides a strong 'when' context: 'Use it to clean up after a series of agent tabs.' This practical guideline helps the agent determine the appropriate operational scenario for this complex close action.

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

Deploy Server

Other Tools