Skip to main content
Glama
Mort2000

GDB Lite MCP

by Mort2000

Spawn gdb

gdb_spawn

Initiate a GDB debugging session and receive a session ID. Supports debugging local programs, core files, attaching to processes, and remote targets.

Instructions

Start a gdb session and return a session id. Supports local programs, core files, attach, remote targets, and extra native gdb args.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prog_pathNoProgram path. Relative paths are resolved from work_dir.
work_dirYesWorking directory for gdb and the debuggee.
environmentsNoExtra environment variables.
core_pathNoOptional core file path. Relative paths are resolved from work_dir. Mutually exclusive with attach_pid and remote_target.
attach_pidNoOptional local process id to attach to. Mutually exclusive with core_path and remote_target.
remote_targetNoOptional native GDB remote target, for example "localhost:1234". Mutually exclusive with core_path and attach_pid.
gdb_argsNoOptional extra native gdb command-line arguments.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that a session id is returned and lists supported modes, but does not detail side effects, permissions, or error conditions. The description is adequate but could be more transparent.

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 two sentences, front-loaded with the core purpose, and wastes no words. Every sentence adds value.

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

Completeness4/5

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

Given the tool's complexity (7 parameters, output schema, nested objects), the description covers the primary modes. It does not emphasize that work_dir is required or clarify dependencies between parameters, but it is largely complete for a spawn tool.

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%, so baseline is 3. The description adds conceptual grouping of parameters (e.g., core_path, attach_pid, remote_target as exclusive options) but does not add significant meaning beyond the schema's own parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Start' and the resource 'gdb session', and specifies that it returns a session id. It lists the supported modes (local programs, core files, attach, remote targets), differentiating it from sibling tools like gdb_close, gdb_exec, and gdb_interrupt.

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

Usage Guidelines4/5

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

The description enumerates the various use cases (local, core, attach, remote), which implicitly tells the agent when to use this tool. However, it does not explicitly state when not to use it or provide direct alternatives to sibling tools.

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

Install Server

Other Tools

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/Mort2000/gdb-lite-mcp'

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