Skip to main content
Glama

close_browser

Closes the browser opened by open_browser or disconnects from a connected browser, ending the current automation session and releasing the browser.

Instructions

Close the browser opened by open_browser (or disconnect from a connected 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": "close_browser"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description bears the disclosure burden. It does meaningfully distinguish two behaviors — terminating a launched browser versus merely disconnecting from a connected one — which implies differing degrees of teardown. It does not state whether session state, cookies, or open tabs are destroyed in each mode, nor any permission or confirmation requirement. An output schema exists, so return values need not be explained here.

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 sentence with the primary action front-loaded and the secondary mode parenthesized. No filler, no restatement of the tool name as a standalone 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 zero-parameter teardown tool with an output schema and no annotations, the definition covers the essential question of what state is being ended and under which of two modes. The remaining gap — what exactly is destroyed versus merely detached in each case — is the one piece an agent would still want.

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

Parameters4/5

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

The tool takes zero parameters, so there is no parameter semantics to document; the description correctly adds no spurious parameter discussion. Baseline 4 applies.

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?

Names a specific verb+resource ('Close the browser') and immediately distinguishes the two lifecycle paths — closing a browser this session launched via open_browser versus disconnecting from one established via connect_browser. An agent can tell this apart from open_browser/connect_browser and the tab-level siblings without opening any schema.

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?

Usage context is explicit: use after a browser was launched by open_browser, or to disconnect an existing connection. It gives no when-not guidance (e.g., that tab-scoped cleanup does not require this) and names no alternative teardown path, but the triggering conditions are clear.

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