Skip to main content
Glama

execute_gdb_command

Run allowlisted GDB/MI commands to inspect and debug ARM firmware; state-changing or destructive commands require explicit user approval, while shell escapes and scripting are blocked.

Instructions

Execute one allowlisted GDB CLI command through GDB/MI.

Potentially destructive or state-changing commands require user_approved=true after explicit user approval. Host shell escapes and scripting are blocked.

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": {
      "command": "<command>"
    },
    "name": "execute_gdb_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYes
user_approvedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose the important traits: commands are allowlist-gated, destructive/state-changing ones require an explicit approval flag, and shell escapes plus scripting are rejected outright. Gaps remain — it does not say what happens to a non-allowlisted command (error shape), how to discover the allowlist, or what a successful invocation returns.

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?

Three short sentences, front-loaded with the core action, then the approval rule, then the hard blocks. Nothing is redundant and every sentence contributes a distinct constraint.

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 two-parameter, no-annotation, no-output-schema tool, the description covers the safety contract but not the mechanics: return content, error behavior for rejected commands, and the scope of the allowlist are all missing. Adequate to avoid misuse, insufficient to use confidently.

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 0%, so the description must supply parameter meaning. It does explain user_approved well (must be true after explicit user approval for destructive commands), but leaves 'command' entirely unexplained: no syntax, no examples, no hint about what forms are on the allowlist or whether it is a full GDB command line.

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 gives a specific verb and resource ('Execute one allowlisted GDB CLI command') plus a transport detail ('through GDB/MI'), which is enough to know what it does. However, the phrase 'through GDB/MI' blurs the boundary with the sibling execute_gdb_mi_command, and no explicit contrast is drawn between the CLI-command path and the raw-MI path.

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?

It states the precondition for state-changing commands (user_approved=true after explicit user approval) and the hard exclusions (host shell escapes and scripting are blocked), which is genuine when/when-not guidance. It never tells the agent when to prefer this tool over execute_gdb_mi_command or the OpenOCD equivalents, so routing between siblings is left to inference.

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