Skip to main content
Glama

Activate a tab

tab_switch

Select a tab in the MCP group in the background by default, optionally bringing Chrome forward only when visibility or interaction requires it; returns the tab summary.

Instructions

Select a tab in the MCP group without bringing Chrome forward by default. Other tools already target tabId and do not need a preceding switch. Set bringToFront=true only when the user wants to see the tab or a required interaction needs a visible window. Returns the tab summary.

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": {
      "tabId": "<tabId>"
    },
    "name": "tab_switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesTarget tab ID (must be in the MCP group)
bringToFrontNoAlso bring the window forward (default false). Requires the user's popup setting 'Tillåt att agenter tar fram Chrome', off by default; otherwise FOCUS_DISABLED. Ordinary agent work stays in the background.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the disclosure burden and does well: it states activation happens in the background by default, that foregrounding is opt-in, and that the return value is a tab summary. It does not state what happens if the tabId is not in the MCP group, nor whether activation persists as the user's active tab, which are the remaining behavioral gaps.

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 default behavior and the alternative are front-loaded in the first two sentences, followed by focused guidance on the opt-in flag and a brief return note. Every sentence carries distinct information with no restatement of the title or schema.

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 two-parameter, non-annotated tool with no output schema, this covers the decision-relevant behavior well, including the default vs. opt-in split and the error condition documented in the schema. The only shortfall is that 'tab summary' is not characterized, though that is minor for a simple activation tool.

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 coverage is 100%, so the baseline is 3, and the description adds genuine meaning beyond the schema by explaining the intent behind bringToFront (user visibility or a required interaction) rather than just its mechanics. The tabId parameter is left entirely to the schema, which is acceptable given its full description.

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?

States a specific verb ('Select') and resource ('a tab in the MCP group') plus the important scope constraint that Chrome is not brought forward. It also distinguishes itself from the rest of the toolset by noting other tools target tabId directly, though it does not name a specific sibling to contrast with.

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?

Gives explicit when-to-use guidance for the optional flag ('bringToFront=true only when the user wants to see the tab or a required interaction needs a visible window') and an explicit when-not ('Other tools already target tabId and do not need a preceding switch'). An agent can decide whether to call this tool at all, and with which parameters, without inference.

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