Skip to main content
Glama

switch_tab

Set the target tab for later calls by session ID, URL substring, or browser name, without focusing the browser. When foreground work is needed, activate the tab.

Instructions

Set the target tab for later calls by session id, URL substring, or browser name ('chrome'/'edge'/'opera') without focusing the browser. A URL substring must match exactly one tab; pass its full session_id when several tabs match. Use activate=true or activate_tab when foreground work is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
browserNo
activateNo
session_idNo
url_patternNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

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

  1. First observedv0.1.0

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 behavioral disclosure burden, and it does so well. It explicitly states that switching the tab does not focus the browser, that the setting applies to later calls, and how ambiguous URL matches are resolved. These are non-obvious behavioral traits an agent needs to avoid mistakes.

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 two sentences long, front-loaded with the primary purpose, and contains no filler. It packs the key behavioral constraint and the alternative tool mention into the second sentence without being verbose.

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?

For a stateful tab-selection tool with no annotations, no required parameters, and an output schema present, the description is complete. It covers selection methods, ambiguity handling, the no-focus side effect, and when to switch to activate_tab. Nothing critical is missing for an agent to call it correctly.

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 compensate, and it does. It explains all four parameters: browser name, session_id, url_pattern, and activate. It even adds matching semantics: a URL substring must match exactly one tab, otherwise use the full session_id. This goes well beyond the bare schema.

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 clearly states the tool's purpose: 'Set the target tab for later calls' using session id, URL substring, or browser name. It also distinguishes itself from activate_tab by explicitly noting that this tool does not focus the browser. This gives an agent a precise mental model of what the tool does.

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?

The description provides actionable when-to-use guidance, including when to pass a session_id ('pass its full session_id when several tabs match') and when to use an alternative ('Use activate=true or activate_tab when foreground work is required'). It also says the URL substring must match exactly one tab, which is a clear constraint on usage.

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/LinVireo/browsertap-mcp'

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