Skip to main content
Glama

browser_close_tab

Destructive

Closes a specified browser tab, all tabs opened by palmifer, or every open tab, with an optional force setting to close the last tab.

Instructions

Close a tab, tabs opened by palmifer (mine=true), or all tabs.

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_close_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoClose all open tabs.
tabNoTab index string (e.g. '0'), targetId, or URL/title substring.
mineNoClose tabs opened by palmifer.
forceNoAllow closing last tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already supply destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds essentially nothing behavioral beyond that — it does not say that closing is irreversible, that unsaved state in the tab is lost, or that the last tab requires force, leaving the schema to carry that critical constraint.

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 compact sentence with the core action front-loaded and no filler. The parenthetical '(mine=true)' is slightly awkward embedded in a list but is efficient and unambiguous.

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 destructive, zero-required-parameter tool with a fully described schema and no output schema, the definition is minimally sufficient to invoke correctly. It is not complete for the risk profile: the force flag's significance (closing the last tab) and the irreversibility of the action are absent from the prose.

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 100%, so the schema already documents all four parameters, and the baseline is 3. The description adds one useful mapping (mine=true corresponds to palmifer-opened tabs) but says nothing about tab selector resolution precedence (index vs targetId vs URL substring) or the force flag.

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+resource ('Close a tab') and enumerates the three selectable scopes (single tab, tabs opened by palmifer, all tabs). It is clear what the tool does, though it does not contrast itself with tab-listing or tab-opening siblings such as browser_tabs or browser_open.

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 description hints that mine=true targets palmifer-opened tabs and that the no-argument form closes a single tab. There is no explicit when-to-use/when-not guidance, no mention of prerequisites, and no routing to alternatives for inspecting tabs before closing them.

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