Skip to main content
Glama

debugger_attach

Destructive

Attach to a local process by PID, then configure initial breakpoints before execution starts.

Instructions

Attach to an explicit local PID and configure initial breakpoints.

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": {
      "toolset_id": "<toolset_id>",
      "options": "<options>"
    },
    "name": "debugger_attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
adapterNolldb-dap
initialNo
optionsYes
timeoutNo
toolset_idYes

Output Schema

NameRequiredDescriptionDefault
snapshotYes
executionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already flag readOnlyHint=false and destructiveHint=true, so the description should explain what is actually altered — e.g. that attaching halts the target, that stop_on_entry defaults to true, and what the timeout governs. None of that is disclosed; the single sentence only restates the mutation implied by the name.

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?

One front-loaded sentence with no filler or redundancy. It is efficient, though the brevity borders on under-specification for a five-parameter mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive operation with nested option objects, an output schema, and two required parameters, the description omits session lifecycle context (how to close, how to continue after attach), the toolset_id requirement, and adapter choice. An agent could not invoke this correctly without reading the schema closely.

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?

Schema description coverage is reported at 0% and the top-level properties (toolset_id, adapter, options, initial, timeout) carry no descriptions. The description mentions only the PID and breakpoints, leaving the required toolset_id, the adapter default of lldb-dap, and the timeout semantics entirely unexplained.

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 object ('Attach to an explicit local PID') plus a secondary function ('configure initial breakpoints'), which lets an agent distinguish it from debugger_launch. It never names the sibling explicitly, so the contrast is inferred rather than stated.

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?

'Explicit local PID' implies the target process must already exist, which implicitly separates it from debugger_launch, but there is no explicit when-to-use/when-not guidance, no prerequisite (toolset_id, adapter selection, ptrace permissions), and no mention of debugger_close as the follow-up.

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