Skip to main content
Glama

browser_tab_close

Closes a browser tab, defaulting to the active tab, so you can remove unwanted or completed pages from Chrome.

Instructions

Close a browser tab (defaults to the active tab).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_tab_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does note the default target (active tab), which is genuinely useful, but it says nothing about the destructive consequence (unsaved form state or page content is lost), what happens when tabId is invalid, or whether closing the last tab closes the window/browser.

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 default-target caveat in a compact parenthetical. Nothing extraneous, nothing buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-annotation, no-output-schema tool this is close to sufficient — the action and the default are clear. The gap is the destructive framing and the source of a valid tabId, both of which the agent needs before calling a close operation on production browser state.

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 0% and the single parameter tabId has no description, so the description must compensate. The parenthetical "defaults to the active tab" explains the parameter's optionality and default behavior, which is real added meaning, but it never says where a valid tabId comes from (e.g., browser_tab_list) or what an out-of-range id does.

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?

States a specific verb and resource ("Close a browser tab"), which is unambiguous and clearly distinct from siblings like browser_tab_new or browser_tab_select. It does not, however, explicitly name which sibling to use if the agent actually wanted to switch away from a tab rather than close it.

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 implied by the verb — use it to shut a tab — and the parenthetical hints the agent may omit a tab id. There is no explicit when-to-use versus when-not guidance, no mention of the alternative of selecting another tab, and no prerequisites.

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