Skip to main content
Glama

switch_tab

Set a specific browser tab as active by index so subsequent browser tools operate on that page instead of another tab.

Instructions

Make the tab with this index (see list_tabs) the active page for all other tools.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "index": "<index>"
    },
    "name": "switch_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description still discloses an important behavioral trait: the switch is global and changes the target of every other tool, which is real state-machine context. It says nothing about what happens with an invalid or out-of-range index, whether the tab must already be open, or whether an error is thrown, leaving the mutation risk unexplained.

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?

One sentence, front-loaded with the action, with the only parenthetical earning its place by resolving where the index comes from. No filler or restated name.

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 single-parameter stateful tool with an output schema, the definition covers the action, the effect on other tools, and the index source. Remaining gaps (index base, invalid-index behavior) are minor but real for a tool that silently changes global state.

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 coverage is 0% and the only structured hint is the title 'Index', so the description has to carry the load. It partially does by pointing to list_tabs as the source of the index, but it never states whether indices are zero-based or how they map to tab ordering, so ambiguity remains.

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?

States a specific verb and resource ('Make the tab with this index the active page') and goes further by explaining the effect on all other tools, which is what distinguishes it from siblings like list_tabs or goto. An agent can tell what it does without opening the schema.

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?

The parenthetical '(see list_tabs)' tells the agent where to obtain a valid index, and 'active page for all other tools' implies when to call it (before operating on a specific tab). It stops short of explicit exclusions or a named alternative workflow, so it is clear but not fully directive.

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