Skip to main content
Glama

attach

Destructive

Connects to an authorized existing loopback CDP endpoint for inspection and control without owning or terminating it; set cwd to enable frontend watches.

Instructions

Attach only to an authorized existing loopback CDP endpoint; never owns or kills it. Specify cwd for frontend watches.

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": {
      "port": "<port>"
    },
    "name": "attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
portYes
targetNo
timeoutNo
readinessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the safety bar is lower. The description adds real value by clarifying the tool does not own or terminate the endpoint process and that cwd affects frontend watch behavior, but it does not explain what destructive surface exists when attached, nor what a failed attach looks like. The 'never kills it' phrasing sits in mild tension with destructiveHint=true but refers to process lifecycle, not page state, so it is contextual rather than contradictory.

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?

Two short sentences with the critical constraint front-loaded and no filler. The compression borders on cryptic ('frontend watches'), but every clause carries information.

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 5-parameter, mutation-flagged tool with no output schema and zero top-level schema descriptions, the definition is thinner than ideal: it never says what attaching yields (a session handle?), how to discover candidate endpoints, or that client-side JS evaluation may require the server's --allow-js flag as the nested Ready schema hints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Top-level schema coverage is 0%: port, timeout, readiness and target carry no descriptions. The description explains only cwd ('for frontend watches'), leaving the required port and the 0-120 second timeout bounds, plus the meaning of readiness/expression, entirely undocumented outside the nested $defs.

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?

States a specific verb and resource: attach to an existing loopback CDP endpoint. The phrase 'never owns or kills it' implicitly distinguishes it from launch/stop, so an agent can infer it is the connect-to-existing-session path, though 'CDP' itself is never expanded.

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?

There is a stated precondition ('only to an authorized existing loopback CDP endpoint') and a pre-requisite in spirit (cwd for frontend watches), but no explicit routing such as 'use launch to start a new session, attach to join one already running' or reference to list_sessions/targets for discovery.

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