tab_close
Close a browser tab using its target ID. Helps clean up unused tabs during debugging.
Instructions
Close a browser tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | Yes | Target ID of the tab to close |
Close a browser tab using its target ID. Helps clean up unused tabs during debugging.
Close a browser tab.
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | Yes | Target ID of the tab to close |
Changes observed during successful MCP inspections.
v1.1.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral disclosure burden. "Close" conveys the core destructive action, but the description does not mention irreversibility, failure behavior when the target doesn't exist, or any effect on the browser session. For a simple close operation this is minimally adequate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is one short, front-loaded sentence with no wasted words. It states exactly what the tool does and nothing more.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple and the single parameter is fully documented in the schema. However, the description omits practical context like how to find targetId or what happens after the last tab is closed, making it only minimally complete for an agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already documents targetId with "Target ID of the tab to close," giving 100% schema coverage. The description adds no additional parameter meaning, which is acceptable given the schema covers it.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource: "Close a browser tab." This clearly distinguishes it from sibling tools like tab_open, tab_navigate, and tab_list.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given for when to use this tool versus alternatives, nor does it mention prerequisites such as an active browser session or obtaining the targetId via tab_list. The agent must infer usage entirely from the name and schema.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.