Skip to main content
Glama

browser_tab_close

Close a browser tab you opened when it is no longer needed, or stop sharing a user's tab without closing it. Frees browser resources and keeps tab sessions tidy.

Instructions

Close a tab you opened (default: the active one) once you no longer need it. A tab the user shared with you, or has been using, isn't closed: you just stop sharing it.

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
idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses the default target (the active tab) and the important ownership behavior that user-shared tabs are detached rather than closed. It stops short of covering failure behavior or whether closing is reversible.

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?

Two short sentences, zero filler, and the default-target caveat is front-loaded in parentheses before the ownership exception. Every clause carries information an agent needs.

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-optional-parameter tool with no output schema and no annotations, the description covers the default target and the key ownership semantics. The remaining gap is how to identify a tab by id, which an agent would have 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 description coverage is 0% for the single optional 'id' parameter, so the description must compensate. It does explain the default behavior when id is omitted, but never says that id identifies a tab or where to obtain one (e.g., from browser_tabs).

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?

States a specific verb (close) and resource (tab) plus a scoping qualifier: only a tab you opened. That qualifier distinguishes it cleanly from browser_tab_new and browser_tab_select without needing to open their schemas.

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?

Gives an explicit trigger ('once you no longer need it') and an implicit exclusion (tabs the user shared or is using). It does not name a sibling as the alternative for the shared-tab case, but the when/when-not split is clear from the text itself.

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