Skip to main content
Glama
Mort2000

GDB Lite MCP

by Mort2000

Execute gdb command

gdb_exec

Execute a GDB debugging command and retrieve all output since the prior command. An empty command polls for new output.

Instructions

Send a gdb command and return all output since the previous gdb_exec or gdb_interrupt call. Empty command only polls output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
timeoutNo
max_output_bytesNoOptional maximum returned output size in bytes. Keeps the tail with a truncation marker.
commandNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
outputYes
completion_reasonYes
saw_promptYes
timed_outYes
session_exitedYes
at_promptYes
command_pendingYes
needs_interruptYes
bytesYes
duration_msYes
truncatedYes
omitted_bytesYes
internal_buffer_bytesYes
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It mentions that output is returned since the previous call, but does not indicate whether the tool is destructive, blocking, or requires specific permissions. Side effects and concurrency behavior are omitted.

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?

The description is short (two sentences) and front-loads the action. It is efficient but could include more detail without bloating.

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 tool with 4 parameters, no annotations, and a critical role in debugging, the description is too minimal. It lacks details on required session context, timeout implications, and output format (though output schema exists). More context is needed for effective agent use.

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 only 25% (only max_output_bytes has a description). The description does not add meaning to parameters like session_id, timeout, or command beyond their names. It fails to compensate for the low schema coverage.

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 tool sends a gdb command and returns output since the last call, with a specific behavior for empty commands. It distinguishes the action and resource (gdb command execution).

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 provides some usage hint (empty command polls output) but does not offer explicit guidance on when to use gdb_exec versus sibling tools like gdb_interrupt or gdb_spawn. No when-not-to-use or alternatives are mentioned.

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