Skip to main content
Glama

Switch Default Browser Session

session_switch

Switch the active default browser session so commands without a session_id use the selected session. Provide a session ID to make it the default for subsequent automation.

Instructions

Switch the default active browser session used when session_id is omitted.

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": {
      "session_id": "<session_id>"
    },
    "name": "session_switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesSession ID to set as the active default session

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is not read-only and not destructive. The description adds useful behavioral context by explaining that the session becomes the default for calls that omit session_id. However, it does not say whether the change persists across restarts, whether it affects already-running sessions, or whether any confirmation is required.

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 definition is a single focused sentence with no wasted wording. The default-session behavior is front-loaded and easy to scan.

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 full schema coverage and annotations covering safety, the description is largely complete. It clearly states the effect on the default session. A minor gap is that it does not describe persistence or side effects on existing sessions.

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 description coverage is 100%, and the sole parameter is already documented as the session ID to set as active default. The description reinforces the role of session_id by tying it to omission behavior, but it adds little syntax or format detail beyond the schema. A baseline score of 3 is appropriate when the schema carries the parameter documentation.

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: switching the default active browser session. It also distinguishes the effect by noting that the chosen session is used when session_id is omitted, which helps separate it from session creation or tab switching. It does not explicitly name a sibling, but the purpose is clear 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'used when session_id is omitted' implies when this default matters, but it does not explicitly say when to call this tool versus session_create, session_list, or browser_switch_tab. The usage context is inferable rather than stated, and no when-not condition is provided.

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