Skip to main content
Glama

Close tab

browser_tab_close

Close a browser tab, defaulting to the active tab, to manage open pages and reduce clutter. Specify a page ID or session to target a particular tab.

Instructions

Close a tab (default: 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
pageIdNo
sessionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and destructiveHint=false; the description adds only that the active tab is the default target. It says nothing about unsaved state, undo, or whether closing the final tab shuts down the browser — meaningful gaps for a mutation tool whose annotations explicitly downplay destructiveness.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with the default behavior front-loaded — no wasted wording. The brevity borders on under-specification rather than verbosity, which is captured elsewhere.

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

Completeness2/5

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

For a two-parameter mutation tool with no output schema and zero schema documentation, the description is too thin: neither parameter's format is explained and no behavioral consequences of closing a tab are disclosed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so both pageId and session are undocumented anywhere. The phrase "default: active tab" implicitly tells the agent that omitting pageId targets the active tab, which is useful, but session is entirely unexplained and pageId's format/scope remains unspecified.

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?

"Close a tab" gives a specific verb and resource, and the parenthetical adds the default target (active tab). It does not explicitly distinguish itself from sibling browser_close (which presumably closes the whole browser), so the agent must infer the scope difference.

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

Usage Guidelines2/5

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

The only guidance is the default-target note. There is no statement of when to prefer this over browser_close or browser_tab_switch, no prerequisites, and no note about what happens when the last tab is closed.

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