Skip to main content
Glama

Manage GPM Browser Tabs

gpm_browser_tabs

List, open, switch, or close tabs in a GPM browser profile over CDP to control multiple pages during automation.

Instructions

Quản lý các tab trong trình duyệt GPM: list (liệt kê), new (mở tab mới), switch (chuyển tab), close (đóng tab).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gpm_browser_tabs"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL cần mở khi action="new"
indexNoChỉ số tab (0-based) khi action="switch" hoặc "close"
actionNoThao tác: list (mặc định), new, switch, close
profile_idNoID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only restates the action names. It does not disclose that 'close' destroys a tab and any unsaved state, that the profile must have an active CDP connection, or what happens if index is out of range. For a tool with a destructive branch, this is a significant gap.

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

Conciseness4/5

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

A single front-loaded sentence that lists all actions with parenthetical glosses; nothing is padded. Slight redundancy with the action enum already in the schema keeps it from a 5.

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?

With four parameters, one destructive action, no annotations and no output schema, the definition is only marginally adequate. The schema covers parameters well, but the description omits return behavior and the CDP/profile connection context an agent needs before calling close or switch.

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 100%, so every parameter (url, index, action, profile_id) is already documented in the schema, including the default action and the conditional relevance of url/index. The description merely mirrors the enum values and adds no format or edge-case meaning, so baseline 3 applies.

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 names the resource (browser tabs in GPM) and enumerates the four concrete operations: list, new, switch, close. An agent can tell this apart from gpm_browser_navigate or gpm_browser_click by the tab-management framing. It stops short of explicitly contrasting those siblings, so a 4 rather than a 5.

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 action list implies when each operation applies, but there is no guidance on when to use this tool instead of gpm_browser_navigate (e.g. opening a URL in a new tab vs navigating the current one), nor any stated prerequisites. Usage is inferable but not directed.

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