Skip to main content
Glama

browser_partition

Create isolated browser partitions so parallel agents keep separate tab groups and active tabs, preventing them from taking over each other's work; close a partition to release its port and tabs.

Instructions

Give a parallel agent its own part of the browser. action "new" opens a partition: its own listener port, so the extension gives it its own tab group and its own active tab, and agents that share this chat no longer take over each other's tabs. It answers an id like "p1"; pass partition: "p1" to every browser tool that agent calls (calls without partition go to the default partition). Ids are never reused while the server runs (when the MCP client restarts the server, numbering starts at p1 again). "new" chooses the Chrome profile right away by the same rules as BROWSER_MCP_PROFILE: pass profile to choose by the name in the extension popup, otherwise the partition uses BROWSER_MCP_PROFILE (or, without it, the same choice as the default partition: it waits about 2.5 seconds for the installations to connect, then takes the newest extension version, on a tie the one that connected last, and the answer says which one it took). It takes a few seconds, because the extension scans for new ports every 2 seconds. Errors: partition-limit (4 open partitions per server), port-capacity-exhausted (every port in the range is taken), the profile-* answers (profile-not-connected and the others; no partition is created and its port is released), and partition-closed when the partition is closed while "new" is still creating it. action "close" closes the partition's tabs through its own connection and releases its port: port_released, and tabs_closed true only when the extension confirmed it or when no tool call ever used the partition (it then has no tabs, and the extension is not asked), otherwise "unknown". Calls with a closed id answer partition-closed with sent: false. A command that is still waiting for the extension's answer when close releases the port answers partition-closed with sent: true (it may have been carried out); one answered before that gets its normal answer. An unknown id, or the id of a partition "new" is still creating, answers partition-not-found. Nothing is sent to the default partition instead. browser_about lists the partitions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "browser_partition"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoWith new: an optional label for your own overview, shown in browser_about (up to 64 characters).
actionYes"new" opens a partition, "close" closes one.
profileNoWith new: the name of the Chrome profile in the extension popup ("This Chrome profile") the partition drives. Default: BROWSER_MCP_PROFILE.
partitionNoWith close: the id of the partition to close, e.g. "p1". The default partition cannot be closed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.33.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so thoroughly: it discloses latency ('takes a few seconds, because the extension scans for new ports every 2 seconds'), id reuse rules, profile resolution order, port release on close, and the exact semantics of tabs_closed ('unknown' unless confirmed) and sent: true/false for in-flight commands. It even enumerates error cases (partition-limit, port-capacity-exhausted, profile-*, partition-closed, partition-not-found).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is well front-loaded, but the rest is a single dense wall of text with run-on clauses covering close semantics, in-flight commands, and error codes. Most sentences carry useful information, yet the lack of paragraph breaks makes it hard to scan and some error detail could be tightened.

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 multi-action tool with no output schema, the description covers everything an agent needs: creation latency, profile selection, id lifetime, close return values (port_released, tabs_closed), and the full error vocabulary. Nothing essential about calling or interpreting the tool is left implicit.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains how 'profile' resolves (named popup profile, else BROWSER_MCP_PROFILE, else newest extension after ~2.5s wait, tie broken by last connection) and confirms 'label' surfaces in browser_about. The 'partition' id format ('p1') is illustrated in both places.

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 opening sentence states a specific verb and resource: 'Give a parallel agent its own part of the browser,' and the two actions ('new' opens, 'close' closes) are named explicitly. It also distinguishes itself from the default partition and points to browser_about for listing, so an agent can identify the tool's role without opening the 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?

It states the core use case clearly: parallel agents get their own tab group so 'agents that share this chat no longer take over each other's tabs,' and calls without a partition go to the default partition. It does not explicitly contrast this with alternative approaches or say when partitioning is unnecessary, but the context is strong enough to guide selection.

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