Skip to main content
Glama

browser_tabs

Destructive

List, open, select, or close browser session tabs to manage the active page before acting on it with other browser tools.

Instructions

List, open, select or close the tabs of the browser session. list (the default): each tab's tab_id, url, title (null when the page did not answer in 3 s; a tab on a page the tools do not read has not_read:true, no title and the start of its address), whether it is the active page and whether browser_tabs opened it. new: opens a tab (url: http(s); file:// needs NORACU_ALLOW_FILE_URL=1) and makes it the active page. select: makes tab_id the active page — only a tab on an http(s) page (or file:// with NORACU_ALLOW_FILE_URL=1), or one still on the blank page it was opened on (tab_not_selectable otherwise). The other browser_* tools act on the active page only; a tab the page opens itself is listed, never followed. close: only a tab browser_tabs opened (tab_not_owned otherwise), never the last one. After new, select or closing the active tab, earlier element_index values no longer apply; when the active tab goes, the first tab select would take becomes the active page (none: no_active_page). An active tab that comes to show a page select would refuse stays the active page, and the other tools answer active_page_not_allowed — browser_navigate can take it to an http(s) page. new, select and close report delivery and retry.

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

Input Schema

NameRequiredDescriptionDefault
urlNo
actionNo
tab_idNo
browser_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, and nothing in the description contradicts them; close is destructive, select/new mutate the active page, and no idempotency is implied. The description adds substantial context beyond the annotations: ownership gating for close, the never-close-the-last-tab rule, the file:// env-var requirement, invalidation of earlier element_index values after new/select/close, active-page fallback semantics, the active_page_not_allowed state and the pointer to browser_navigate as the remedy.

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?

The definition is front-loaded with the one-line purpose before per-action detail, and nearly every sentence carries a rule an agent needs (error codes, ownership, index invalidation). Some sentences are heavily packed with clauses and status codes in a single paragraph, which makes it harder to scan than a short per-action breakdown would be, but there is little outright filler.

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 four-action stateful tool with no output schema and zero schema-level parameter documentation, the description covers return shape for list (tab_id, url, title, not_read, active flag, ownership) and the failure modes and state transitions for new/select/close. The unexplained browser_id parameter is the main incompleteness, along with no explicit statement of what new/select/close return beyond 'report delivery and retry'.

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 description coverage is 0%, so the description carries the full burden, and it does most of the work: it names the action values (list as default, new, select, close), constrains url to http(s) or file:// behind NORACU_ALLOW_FILE_URL=1, and explains what tab_id must identify for select and close. The one real gap is browser_id, which is never mentioned in the description or the schema, leaving an agent unable to tell what it scopes.

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?

The first sentence gives a specific verb set and resource ('list, open, select or close the tabs of the browser session'), then enumerates each action (list, new, select, close) with its own scoped explanation. It also draws a clear boundary against siblings: 'The other browser_* tools act on the active page only,' which tells an agent exactly what this tool is responsible for versus the other browser_* tools.

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?

It signals the context in which this tool matters ('The other browser_* tools act on the active page only', so select is the way to change what they operate on) and states when close fails (tab_not_owned) and when select fails (tab_not_selectable). It does not explicitly route the agent between alternatives such as browser_launch or browser_close, so there is no named when-not/use-instead rule beyond the ownership restrictions.

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