Skip to main content
Glama

configure_adapter

DestructiveIdempotent

Register or update a debug adapter configuration and persist it to disk, so AI agents can launch programs under real debuggers across Python, Go, Node.js, C/C++, Rust, and PHP.

Instructions

Register or update a debug adapter configuration and persist it to disk.

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": {
      "type": "<type>",
      "program": "<program>"
    },
    "name": "configure_adapter"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoAdditional arguments to pass to the adapter
typeYesAdapter type identifier (e.g. 'python', 'node', 'go')
scopeNoWhere to persist the adapter config (default: project)
programYesPath or command for the adapter executable
runtimeNoOptional runtime to invoke the program (e.g. 'node', 'python3')
transportNoDAP transport used by the adapter
installHintNoHint shown when adapter is not installed
portMatcherNoRegex whose first capture group is the TCP port
launchDefaultsNoDefault launch configuration properties

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is known. The description adds one genuinely new fact — the config is persisted to disk — but says nothing about which file is written, whether an update overwrites prior fields, or whether running debug sessions are affected. That is a meaningful gap for a destructive mutation.

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?

A single front-loaded sentence with no filler; the mutation and its persistence effect come first. Nothing in it is redundant with the title or schema.

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 9-parameter destructive writer with a nested object and no output schema, one sentence is thin — the persistence location, update-vs-replace semantics, and precondition (adapter installed?) are unaddressed. Annotations and full schema coverage compensate for much of it, keeping this at minimum-viable rather than inadequate.

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% across all 9 parameters, including enums for scope/transport and the nested launchDefaults object, so the schema carries the parameter burden. The description adds no semantics beyond it (e.g., how scope=global vs project resolve to paths, or what program vs runtime precedence is). 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?

Names a specific verb pair (register/update), a concrete resource (debug adapter configuration), and the side effect (persisted to disk). An agent can distinguish it from list_adapters or debug_launch, though the description never explicitly names a sibling to contrast with.

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?

No when-to-use guidance is given — nothing says whether this must be called before debug_launch/debug_attach, whether it replaces an existing adapter entry, or how it relates to list_adapters. The 'register or update' wording implies both create and modify paths but leaves the choice to inference.

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