Skip to main content
Glama

switch_tab

Bring a chosen browser tab to the foreground so a human can view it; pass the tab ID from list_tabs.

Instructions

Bring a tab to the foreground so the human sees it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdYesTab id from list_tabs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses foregrounding behavior but omits whether the action requires permissions, what happens if the tab is already active or invalid, whether it changes focus across windows, and what the operation returns. This is a significant gap for a mutation/UI-control tool.

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?

A single, front-loaded sentence with zero wasted words. It states the action and its purpose efficiently.

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 simple tab-switching tool with complete parameter schema coverage, the description is minimally adequate but thin. It does not mention edge cases, permissions, or return behavior, and with no annotations or output schema, more context would improve reliability.

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 100%, and the schema itself documents the single parameter ('Tab id from list_tabs'). The description adds no further parameter meaning, so the baseline of 3 is appropriate.

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 states a specific verb ('Bring') and resource ('a tab') with the outcome ('to the foreground'), making the tool's effect immediately clear. It does not explicitly differentiate from sibling tab tools like new_tab or close_tab, though the distinction is 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?

It implies when to use the tool ('so the human sees it') but provides no explicit when-to-use criteria, prerequisites, or alternatives to consider. Context is inferable but not spelled out.

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