Skip to main content
Glama

Close Chrome tab

browser_close_tab
Destructive

Closes a specified Chrome tab by tab ID, including any tab when running in all_tabs mode.

Instructions

Close an attached Chrome tab (or any tab when in all_tabs mode) by tabId.

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": "browser_close_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesNumeric Chrome tab id to close.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the destructive nature is covered structurally. The description adds the scope nuance about all_tabs mode, but says nothing about irreversibility, whether the browser closes when the last tab is closed, or what happens if tabId is stale or invalid — meaningful gaps for a destructive operation.

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?

A single sentence with the action front-loaded and the selector immediately following. There is no filler or redundancy.

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 whose annotations already flag destructiveness and no output schema exists, this is close to complete. The one loose end is the unexplained 'all_tabs mode', which is not a parameter and is left for the agent to infer.

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 coverage is 100% for the single tabId parameter, and the schema already explains it is a numeric Chrome tab id with a positive lower bound. The description's 'by tabId' merely restates the schema without adding format, sourcing, or error-handling guidance, 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 gives a specific verb and resource ('Close an attached Chrome tab') plus the selector ('by tabId'), which cleanly separates it from browser_open_tab, browser_switch_tab, and browser_list_tabs. It stops short of naming a sibling or contrasting behaviors, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Usage is only implied: the parenthetical '(or any tab when in all_tabs mode)' hints at a scope condition, but the description never says when to prefer this over other tab tools or how to obtain a valid tabId (e.g., via browser_list_tabs). No exclusions or prerequisites are stated.

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