Skip to main content
Glama

launch_gdb

Starts GDB in WSL2 with the MCP plugin loaded, enabling binary debugging with log capture. Optionally runs the target program immediately for a quick start.

Instructions

Launch gdb with the MCP plugin loaded inside WSL2 (background process, log captured to a file). program may be a Windows or WSL path; the session registers itself when the plugin connects. With run=True, the inferior is started immediately (equivalent to gdb -ex run).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
envNo
runNo
argsNo
distroNo
programNo
gdb_argsNo
attach_timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does provide meaningful details: background execution, log capture to a file, support for Windows or WSL paths, session registration, and immediate inferior start with run=True. It does not mention log file location or lifecycle cleanup, but it discloses the key side effects and execution mode.

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?

The description is compact and front-loaded: the core launch behavior is in the first sentence, followed by two clarifying sentences. Every sentence adds useful information and there is no filler.

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 description covers the core launch flow and important behavioral traits, but with 8 optional parameters and no output schema it leaves meaningful gaps: most parameter semantics, how the session is identified, and what the tool returns. It is adequate for understanding the tool's purpose but not fully sufficient for correct invocation in all cases.

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 coverage is 0%, and there are no annotations, so the description needed to explain the parameters. It only covers `program` and `run`; the other six parameters (cwd, env, args, distro, gdb_args, attach_timeout_ms) are left entirely undocumented, requiring the agent to guess at their semantics.

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 clearly states what the tool does: launches gdb with the MCP plugin inside WSL2 as a background process. It identifies the unique resource and platform, which helps distinguish it from the other debugging tools, though it does not explicitly name an alternative sibling.

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 description implies when to use it ('launch gdb', session registers) and clarifies behavior of run=True, but it never states when to choose this tool over siblings like launch_script or load_target. There is no explicit when/when-not guidance or exclusion of alternatives.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mistyovo/gdb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server