Skip to main content
Glama

browser_ensure

Start or reuse an isolated headless Chromium session for automated loopback browsing. Specify viewport dimensions via optional width and height. Requires a lease ID.

Instructions

Start or reuse an isolated headless Chromium session (loopback browsing). Optional width/height set the viewport (defaults 1280x720). Requires lease_id. Not durable across MCP process death — unlike tmux. Screenshots are visual_capture, not this tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
widthNo
heightNo
lease_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description goes beyond annotations by specifying viewport defaults (1280x720), the requirement for lease_id, non-durability across MCP process death, and loopback isolation. Since annotations are all false and provide no hint, these details add significant operational context without contradiction.

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 three sentences long, front-loading the primary purpose, then adding essential parameter defaults and caveats. Every sentence contributes value, with no redundant phrasing.

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?

Core behavior and caveats are covered, but the description does not explain the origin/role of lease_id (presumably workspace_acquire) or the semantics of force. Given the low schema coverage and the presence of an output schema, these omissions leave the description only moderately complete.

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 description coverage is 0%, so the description must compensate. It explains width and height with defaults, and notes lease_id as required, but entirely omits the force parameter. This is a notable gap given the absence of schema descriptions.

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?

The description clearly states the tool starts or reuses an isolated headless Chromium session with loopback browsing. It distinguishes from visual_capture but does not explicitly contrast with browser_open, which could cause slight ambiguity. The core purpose is still unambiguous.

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?

The description mentions that screenshots belong to visual_capture and that the session is not durable unlike tmux, providing some exclusions. However, it does not explicitly state when to use this tool versus browser_open or other browser siblings, nor that it should be called before using browser actions.

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/davidlosasgonzalez/codeagent-mcp'

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