Skip to main content
Glama
AI-Zebra

Browserbase MCP Server

by AI-Zebra

multi_browserbase_stagehand_session_close

Terminate a browser session to free cloud resources and prevent unnecessary billing charges in multi-session automation workflows.

Instructions

Cleanup parallel session for multi-session workflows. Properly terminates a browser session, ends the Browserbase session, and frees cloud resources. Always use this when finished with a session to avoid resource waste and billing charges. Critical for responsible multi-session automation - each unclosed session continues consuming resources!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesExact session ID to close (get from 'multi_browserbase_stagehand_session_list'). Double-check this ID - once closed, the session cannot be recovered!
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes critical behavioral traits: the tool performs a destructive operation (terminates and frees resources), has irreversible consequences ('once closed, the session cannot be recovered'), and addresses cost implications ('billing charges', 'consuming resources'). It doesn't cover rate limits or auth needs, but given the context, this is sufficient for a high score.

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 appropriately sized and front-loaded, with every sentence adding value. The first sentence states the purpose, the second explains the action, and the remaining sentences provide critical usage guidelines and warnings, with no wasted words.

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?

Given the tool's complexity (destructive operation with cost implications), no annotations, and no output schema, the description does well by covering purpose, usage, and behavioral risks. However, it doesn't specify the return value or error conditions, which leaves a minor gap in completeness for a tool with such significant consequences.

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 100% description coverage, so the baseline is 3. The description adds meaningful context beyond the schema by emphasizing the importance of the sessionId parameter ('Double-check this ID') and referencing where to obtain it ('get from multi_browserbase_stagehand_session_list'), which enhances understanding without redundancy.

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 tool's purpose with specific verbs ('cleanup', 'terminates', 'ends', 'frees') and resources ('parallel session', 'browser session', 'Browserbase session', 'cloud resources'). It distinguishes from siblings by focusing on cleanup for multi-session workflows, unlike session creation or action tools in the sibling list.

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?

The description provides explicit guidance on when to use this tool ('Always use this when finished with a session') and why ('to avoid resource waste and billing charges'). It also implies alternatives by referencing 'multi_browserbase_stagehand_session_list' for getting session IDs, though it doesn't explicitly name when-not-to-use scenarios, the 'always use' directive is strong enough for full credit.

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