Skip to main content
Glama

manage_tabs

List, open, switch, or close browser tabs. Find the correct tab index before switching, and handle new tabs opened by links or actions.

Instructions

List, open, switch between, or close browser tabs.

Use this tool for tab management. Browser navigation within the current tab belongs to navigate and manage_history.

Args: action: - "list": Return each open tab's index, URL, and title. Call this before switch when you need to determine a tab_index. - "open": Open a new tab, optionally navigating it to url. - "switch": Switch to the tab identified by tab_index from list. - "switch_newest": Switch to the newest tab. - "close_active": Close the currently active tab. url: URL for action="open". tab_index: Index returned by action="list" for action="switch". switch_to: For action="open", switch to the newly created tab when True.

Notes: Clicking a link or performing another browser action may open a new tab. Use action="list" to inspect available tabs before switching by index. Tab indexes should be treated as current-session values and may change after tabs are opened or closed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
actionNolist
switch_toNo
tab_indexNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.0.1

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains what 'list' returns, what each action does, and warns that tab indexes are session-scoped and may change after tabs are opened or closed. It also notes that other browser actions may open new tabs, which helps the agent plan its calls.

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?

The description is well-organized with a clear opening summary, a usage boundary, an action breakdown, and a notes section. Every sentence adds necessary information, and the structure makes it easy for an agent to scan the action options and associated parameters.

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

Completeness5/5

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

Given the multi-action nature and conditional parameters, the description is complete: it covers all four parameters, all five actions, return contents for list, the relationship between list and switch, and important caveats about tab index stability. The sibling-tool boundary is also explicitly drawn, so an agent can confidently select this tool.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must fully explain parameters. It does: action is detailed with each enum value's behavior, url is tied to 'open', tab_index is tied to list results for 'switch', and switch_to is explicitly described. This fully compensates for the schema's lack of descriptions.

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 description opens with a specific verb and resource: 'List, open, switch between, or close browser tabs.' It clearly defines the tool's scope and distinguishes it from navigate/manage_history, which manage navigation within the current tab rather than tab-level operations.

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

Usage Guidelines5/5

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

It explicitly states that tab management belongs here and that browser navigation within the current tab belongs to navigate and manage_history. It also advises calling action='list' before 'switch' to determine tab_index, giving concrete when-to-use guidance.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seleniumbase/SeleniumBase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server