Skip to main content
Glama

browser_session_close

Close a specific browser session, the active session, or all open sessions to free resources and reset browser state.

Instructions

Close a specific browser session, the active session, or all open browser sessions.

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_session_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoIf true, closes every open browser session.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a destructive, state-ending operation. It never says whether closing discards session cookies/storage, whether in-flight pages are lost, what happens when closing an already-closed session, or whether the call is idempotent.

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?

A single front-loaded sentence with no filler. The triple enumeration is slightly list-like but every clause corresponds to a real usage mode.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, zero-annotation tool with no output schema, the definition should disclose what is destroyed and any preconditions. It omits all of that, leaving the agent unable to predict consequences of the call.

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%, so both parameters are already documented, including the auto-launch behavior when sessionId is omitted. The description only restates the target modes the parameters already encode and adds no new semantics.

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 ("Close") and resource ("browser session") and enumerates the three targeting modes: a specific session, the active session, or all sessions. It does not distinguish this from the sibling browser_close, so an agent cannot tell the two apart from the description alone.

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 enumeration of three targets implies when each is appropriate and loosely maps onto the two parameters, but there is no explicit when-to-use/when-not guidance and no reference to the sibling browser_close as an alternative.

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