Skip to main content
Glama

browser.close

Shut down a managed browser or detach from an externally launched one to release resources and end control safely.

Instructions

Shut down a managed browser, or detach from an externally launched one.

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.close"
  }
}

Input Schema

NameRequiredDescriptionDefault
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and openWorldHint=true, so the description's key addition — that a managed browser is actually shut down while an external one is merely detached from — is the single most important behavioral fact and it is disclosed up front. It stops short of saying whether page state, sessions, or artifacts survive shutdown, which is the remaining ambiguity.

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?

A single short sentence with zero filler, front-loading the primary action and then the contrasting mode. Nothing could be removed without losing meaning.

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-optional-parameter tool with full schema coverage and annotations covering the safety profile, the description is nearly sufficient. The only gap is the fate of browser state on shutdown, plus the schema's odd 'auto-launch one' fallback on a close operation, which the description never reconciles.

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 browser_id schema text already explains the 'omit to use the only running browser' fallback. The description adds no further parameter meaning, so the baseline of 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?

States a concrete verb and resource ('Shut down a managed browser') and immediately distinguishes a second mode ('detach from an externally launched one'). The two-mode framing makes the tool's scope unambiguous, though it does not name a sibling alternative.

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?

Usage is implied — you close a browser when you are done with it — and the managed vs external distinction hints at when detachment rather than shutdown occurs. However, there is no explicit guidance on when to call it versus leaving a browser running, and no prerequisites or exclusions are stated.

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

Deploy Server

Other Tools