Skip to main content
Glama

browser_session

Destructive

Manage destructive browser lifecycle actions—close, disable anonymous mode, cancel, stop, or restart daemon—while browser_mode handles starting and switching modes.

Instructions

Destructive lifecycle ops: browser_close, anon_off, cancel, stop, restart_daemon. For starting/switching modes use browser_mode.

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": {
      "action": "<action>"
    },
    "name": "browser_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesLifecycle action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already fully declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=true, so the safety profile is covered. The description mainly reinforces that framing ('Destructive lifecycle ops') and repeats the enum values without explaining side effects such as what browser_close closes, what state restart_daemon affects, or whether cancellation is reversible. Useful but not rich context beyond what annotations provide.

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?

Two compact sentences, the destructive scoping front-loaded, then the pointer to the alternative. No wasted 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 action enum tool with full schema coverage and complete annotations, the description supplies enough to choose and invoke it correctly. The minor gap is that it doesn't disambiguate browser_close from the sibling browser_close_tab or explain restart_daemon's blast radius.

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 single action parameter has a fully documented enum, so the baseline is 3. The description lists the same enum values but adds no per-action meaning or caveats (e.g., what distinguishes stop from cancel), so it does not add value over the schema.

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 uses a specific verb class (destructive lifecycle ops) and enumerates the exact operations: browser_close, anon_off, cancel, stop, restart_daemon. It also distinguishes itself from browser_mode, so an agent can tell which tool handles lifecycle termination vs. mode switching. It stops short of 5 because 'browser_session' as an umbrella name doesn't map cleanly to a single verb+resource, leaving some interpretation to the enum.

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?

It gives a clear routing rule: use this for destructive lifecycle operations, use browser_mode for starting/switching modes. That names an alternative and the condition selecting it. It doesn't state when-not-to-use beyond that single redirect (e.g., closing a single tab via browser_close_tab), so it falls just short of explicit exclusions.

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