Skip to main content
Glama

Close GPM Profile

gpm_close_profile

Closes a running GPMLogin profile browser and cleans up its associated CDP session, helping you end profile-specific automation and free browser resources.

Instructions

Đóng trình duyệt của một profile GPMLogin đang chạy và dọn phiên CDP tương ứng.

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>"
    },
    "name": "gpm_close_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_idYesID của profile cần đóng

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden; it does disclose the meaningful side effect that the associated CDP session is cleaned up, which is more than the name alone conveys. However, it is silent on error behavior when the profile is not running, whether the operation is idempotent, and whether the profile configuration survives the close. These are material gaps for a state-changing tool with zero annotation coverage.

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?

One sentence that front-loads the action and adds the cleanup consequence without any filler. Nothing is wasted and nothing important is buried.

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?

For a single-parameter lifecycle tool with no output schema, the description covers the action and its main side effect, but leaves open the failure modes and the resulting profile state a caller would want to know. It is adequate but has clear room to be more 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?

The input schema has a single required parameter with 100% description coverage ("ID của profile cần đóng"), so the schema already carries the meaning. The description adds no format, source, or lookup guidance for the profile_id beyond what the schema states; 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 a specific verb ("Đóng trình duyệt" / close the browser) and a specific resource ("profile GPMLogin đang chạy" / a running GPMLogin profile), plus the side effect of tearing down the CDP session. It is distinguishable from gpm_delete_profile by making clear only the browser session is closed, though it does not explicitly name the sibling it is not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no stated prerequisites (e.g. the profile must currently be running), and no routing to alternatives such as gpm_delete_profile for permanent removal or gpm_connect_cdp for attaching a session. The usage is only inferable from the verb itself.

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