Skip to main content
Glama

View / switch mode

browser_mode

View or switch the agent's operating mode to set model routes, allowed tools, and step budgets; modes only narrow permitted actions for coding, research, testing, or content.

Instructions

View the current mode, or switch modes (coding, content, research, testing, chat, coding-python, coding-web, coding-api, coding-scripts, content-writing). Each mode sets a preferred model route, allowed tools, and a step budget. A mode can only narrow what the agent may do, never widen past a guard. Call with no arguments to view, or with name to switch.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoMode to switch to, e.g. coding, research, coding-python, content-writing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3-alpha.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a solid job: it discloses that a switch changes model route, allowed tools, and step budget, and that modes can only restrict rather than expand permissions. Gaps remain on persistence (does the mode stay set for later calls?), behavior on an invalid name, and what the view form returns, but the core side-effect profile is stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the dual purpose, then mechanism, then invocation forms – a logical order with no filler. The long inline mode list is necessary since the schema lacks an enum, though it slightly bloats the opening sentence.

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 optional-parameter tool with no output schema, the definition covers purpose, effect, guardrails, and invocation. The only meaningful omission is what "view" returns and whether a switch persists, which an agent would likely want to know before relying on it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero enums, so the description's list of valid values (coding, content, research, testing, chat, coding-python, coding-web, coding-api, coding-scripts, content-writing) is genuinely additive rather than duplicative. It also clarifies the optional/absent semantics of `name` through the no-argument case. This compensates for the one real weakness the schema has.

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?

"View the current mode, or switch modes" gives a specific verb plus resource and covers both call shapes in one clause. The enumeration of mode names and the statement that a mode sets model route, allowed tools, and step budget makes the effect concrete. It is trivially distinguishable from the browser_* action siblings.

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?

"Call with no arguments to view, or with name to switch" explicitly maps the two invocation forms to their outcomes, which is the main usage fork here. The guard rule ("can only narrow, never widen") tells the agent the switching is safe to attempt. It stops short of saying when a given mode is appropriate, but no sibling alternative competes for this capability.

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