Skip to main content
Glama

执行GDB MI命令

gdb_command
Destructive

Directly execute GDB MI commands for advanced debugging operations like listing breakpoints or running programs, when other tools are insufficient.

Instructions

直接执行GDB Machine Interface (MI)命令。

参数:

  • command: MI命令 (以 - 开头,如 -break-list, -exec-run)

  • waitForDone (可选): 是否等待完成响应 (默认true)

示例:

  • gdb_command({command: "-break-list"}) → 列出所有断点

  • gdb_command({command: "-exec-run"}) → 运行程序

高级用法:当其他工具不支持特定操作时使用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesGDB MI command to execute, e.g., -break-list
waitForDoneNoWait for 'done' response
Behavior3/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. Description adds context about waiting for done response, but doesn't elaborate on potential state changes or side effects beyond what annotations convey.

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?

Description is concise with a clear purpose statement, parameter list, and examples. Could be slightly better formatted but not overly long.

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 as a generic MI command executor, the description covers purpose, parameters, usage guidance, and examples. Missing return value details, but no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers both parameters with descriptions (100% coverage). Description adds examples and parameter details, providing extra clarity beyond schema.

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 it executes GDB MI commands directly, distinguishing it from sibling tools by noting it's for advanced usage when specific tools don't support the operation.

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?

Explicitly states 'advanced usage when other tools do not support specific operations,' providing clear guidance on when to use this tool over siblings, though no explicit when-not-to-use is given.

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

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