Skip to main content
Glama

stop_browser

Close the active browser session and quit its browser when automation is done, preventing browsers from being left open. Cookies, login state, and open pages are discarded.

Instructions

Close the active browser session and quit its browser; its cookies, login state, and open pages are lost. With several sessions open, only the active one closes and another becomes active; use session_destroy to close a specific one. Safe to call when nothing is running. Call it when you are done, so no browser is left open.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral burden: it warns that cookies, login state, and open pages are lost, explains multi-session behavior (only active closes, another becomes active), and states that calling it when nothing is running is safe.

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?

Front-loads the core action and destructive consequence, then efficiently layers in multi-session behavior, the alternative tool, and safe no-op guidance. Every sentence earns its place with no wasted wording.

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

Completeness5/5

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

For a zero-parameter, no-output-schema tool with no annotations, the description is complete: it covers the operation, side effects, multi-session routing, safety, and recommended usage timing. Nothing needed for correct invocation is missing.

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?

There are zero parameters and the schema is empty, so parameter semantics are not applicable. The baseline for a zero-parameter tool is 4, and the description appropriately adds no unnecessary parameter detail.

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?

States a specific verb and resource: close the active browser session and quit its browser. It also distinguishes the tool from its closest sibling by explicitly naming session_destroy for closing a specific session.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance ('Call it when you are done'), a safe no-op condition ('Safe to call when nothing is running'), and the alternative for a different need ('use session_destroy to close a specific one').

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