Skip to main content
Glama

browser_session_switch

Switch the default active browser session so subsequent tool calls that omit sessionId target the intended session.

Instructions

Switch the default active browser session used when sessionId is omitted from subsequent tool calls.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "browser_session_switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesID of the existing browser session to make active.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose that this mutates a default that affects subsequent calls. It does not say what happens if the ID is invalid or closed, whether the change is reversible by switching again, or whether any existing sessions are disturbed.

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 and immediately followed by its effect, with no redundant or filler wording.

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 one-parameter tool with no output schema and no annotations, the description covers the action and its downstream effect adequately. Minor gaps remain around failure behavior for invalid session IDs and where to obtain valid IDs, but nothing essential for a correct call is missing.

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 single parameter is already documented as 'ID of the existing browser session to make active.' The description reinforces the effect (becoming the default) but adds no format, sourcing, or validation detail beyond the schema; baseline 3 applies.

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 and resource ('Switch the default active browser session') and explains the mechanism that makes it distinct: the chosen session is used whenever sessionId is omitted from later calls. That mechanism implicitly separates it from siblings such as browser_session_create or browser_session_close, though no sibling is named explicitly.

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?

The description conveys the context in which the switch takes effect ('when sessionId is omitted from subsequent tool calls'), which is enough to see why an agent would call it. It offers no explicit routing to alternatives (e.g., listing sessions to obtain an ID, or creating one if none exists) and no stated prerequisites or when-not-to-use conditions.

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