Skip to main content
Glama

browser_close_tab

Close a specific browser tab by passing the handle returned when it was opened, so multiple agents can keep their own pages separate and clean up when done.

Instructions

Close the tab. tab: the handle browser_new_tab returned ("t3"). Pass it on every call: several agents can share this server, and the tab is how each one keeps to its own page.

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
tabNo

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?

With no annotations, the description carries the full burden, and it does add one genuinely valuable trait: the server is shared across agents and the tab handle is what keeps each agent on its own page. It omits what happens to the handle after closing, whether closing fails on a stale/foreign handle, and whether closing the last tab affects the session.

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, front-loaded with the action and then the parameter contract; every clause (handle form, origin tool, multi-agent rationale) adds information that is not in the schema.

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 close tool with no output schema this is close to sufficient, and the multi-agent scoping note is well targeted. It is still missing the default-tab case and failure behavior on an invalid handle, which an agent needs before calling blindly.

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

Parameters4/5

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

Schema coverage is 0%, so the description must supply meaning, and it does: the value is a handle returned by browser_new_tab, in the form "t3", and must be supplied on every call. The one gap is that the parameter is optional with a null default, and the description never says what happens if it is omitted (current tab? most recent?).

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 opens with a specific verb and resource ("Close the tab") and ties the `tab` argument back to the sibling that produces it (browser_new_tab). It does not distinguish from close-adjacent siblings such as browser_release_tabs, so the scope of "this tab vs all tabs" is only implicit.

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 rather than stated: the reader infers you close a tab when done with it, and the description gives the calling convention (pass the handle on every call). There is no explicit when-not guidance or comparison to alternatives like releasing all tabs, which is the most likely nearby confusion.

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