Skip to main content
Glama
AI-Zebra

Browserbase MCP Server

by AI-Zebra

browserbase_session_close

Close the current browser session to properly clean up resources and terminate session recording. This tool shuts down the Stagehand instance handling browser automation.

Instructions

Closes the current Browserbase session by properly shutting down the Stagehand instance, which handles browser cleanup and terminates the session recording.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses behavioral traits: it's a destructive operation (closes/shuts down), performs cleanup, and terminates recording. However, it lacks details on side effects (e.g., data loss, error handling), permissions, or rate limits, which are important for a session management tool.

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?

The description is a single, well-structured sentence that efficiently conveys the action, mechanism, and outcomes without redundancy. It is front-loaded with the core purpose ('Closes the current Browserbase session') and every part adds value, making it concise and effective.

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

Completeness3/5

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

Given the tool's complexity (session management with cleanup) and no annotations or output schema, the description is moderately complete. It covers the main action and effects but lacks details on return values, error conditions, or integration with sibling tools, leaving gaps for an agent to understand full behavior.

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 input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description appropriately adds no parameter information, focusing on the tool's action and effects. A baseline of 4 is applied as it compensates adequately for the lack of parameters by explaining the tool's purpose.

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?

The description clearly states the specific action ('closes') and resource ('current Browserbase session'), distinguishing it from siblings like 'browserbase_session_create' (creates) and 'browserbase_screenshot' (captures). It specifies the mechanism ('properly shutting down the Stagehand instance') and outcomes ('handles browser cleanup and terminates the session recording'), making the purpose unambiguous.

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?

The description implies usage context by referencing 'current Browserbase session' and 'Stagehand instance', suggesting it should be used after session activities. However, it does not explicitly state when to use it versus alternatives (e.g., no guidance on if it's mandatory after each session or optional), nor does it mention prerequisites like needing an active session first.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AI-Zebra/mcp-server-browserbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server