Skip to main content
Glama

Connect CDP to Running GPM Profile

gpm_connect_cdp

Establishes a Playwright CDP connection to an already opened GPMLogin profile using its remote debugging address, enabling automation of that browser session.

Instructions

Kết nối Playwright CDP tới một profile GPMLogin đã được mở sẵn bằng địa chỉ remote_debugging_address (vd "127.0.0.1:54321").

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": {
      "profile_id": "<profile_id>",
      "remote_debugging_address": "<remote_debugging_address>"
    },
    "name": "gpm_connect_cdp"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_idYesID định danh của profile
remote_debugging_addressYesĐịa chỉ CDP trả về từ GPM, vd "127.0.0.1:54321" hoặc "http://127.0.0.1:54321"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations the description carries the full burden; it does disclose the key prerequisite (profile already open) and the address format expected. It says nothing about whether the call is idempotent, whether it replaces an existing CDP session, whether it mutates profile state, or what happens on a bad address, leaving meaningful behavioral gaps.

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 with the action, target and argument all in the first clause. The parenthetical address example partly duplicates the schema but is short enough not to be wasteful.

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?

The tool is simple (2 params, no nesting), but with no annotations and no output schema the description should say what the agent gets back (a connected Playwright browser/session object) and whether the connection must be explicitly closed. That omission is the main completeness gap.

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 coverage is 100%, so both parameters are already documented, including the address example. The description's only added meaning is tying profile_id to an already-running profile, which is a marginal gain over the schema.

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 a specific action (connect Playwright CDP) and a specific target (an already-open GPMLogin profile), so it is far from a restatement of the title. The phrase 'đã được mở sẵn' implicitly separates it from gpm_start_profile, though no sibling is named explicitly.

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 precondition that the profile must already be opened is stated, which hints the agent should launch a profile first. However, it never names gpm_start_profile or gpm_close_profile as the alternatives, nor states what to do if the profile is not running.

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