Skip to main content
Glama

start_gdb_server

Starts a GDB server for J-Link targets to enable remote debugging of STM32 firmware, with configurable listen host/port, device, SWD/JTAG interface, and speed.

Instructions

Start GDB Server / 启动 GDB Server.

Args: host: Listen address / 监听地址 port: Listen port / 监听端口 device: Device name / 设备名称 interface: Interface type (SWD/JTAG, default JTAG) / 接口类型(SWD/JTAG,默认 JTAG) speed: Interface speed (kHz) / 接口速度(kHz)

Returns: Start result / 启动结果

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_gdb_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo0.0.0.0
portNo
speedNo
deviceNo
interfaceNoJTAG

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and does not discharge it. It does not say whether the server runs in the background or blocks the call, what happens on port conflict, whether it must be paired with stop_gdb_server, or what 'Start result' actually contains. Only the interface default (JTAG) and speed units are conveyed.

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?

Front-loaded with the action, then a compact parameter block; every line carries meaning, including the unit and enum detail the schema lacks. The bilingual duplication and the near-empty 'Returns: Start result' line are the only 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?

An output schema exists, so return-value detail is not required. But for a server-lifecycle tool with five parameters, zero annotation coverage, and zero schema descriptions, the definition should at least state prerequisites and whether the process is long-running — an agent could call this blindly and be surprised by blocking or port-conflict behavior.

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 description coverage is 0%, so the description must compensate, and it does: it maps host to listen address, port to listen port, device to device name, speed to kHz, and — importantly — supplies the SWD/JTAG value set and JTAG default that the schema leaves as an unconstrained string. It omits default values for host (0.0.0.0), port (2331), and speed (4000), which live only in the schema, and does not explain whether device is required.

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?

States a specific verb+resource pair ('Start GDB Server'), which an agent can distinguish from sibling verbs like stop_gdb_server and get_gdb_server_status by name alone. However, it never explicitly contrasts with those siblings or says what starting actually entails, so the differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

No when-to-use guidance at all: nothing about prerequisites such as a connected target, a free port, or the relationship to connect_device/build_project/deploy_project before launching a server. Nor does it say when to prefer gdb_batch or rtt_start instead. The agent must infer the entire workflow from sibling names.

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