Skip to main content
Glama
ZMC1011

Keil5 MCP Server

by ZMC1011

uv4_debug_session

Launch a headless Keil debug session for an STM32 project, set breakpoints, step through code, and print variable values to identify and fix issues automatically.

Instructions

Run an official Keil debug session via UV4 -d + a generated .ini script.

The debugger runs headless: sets a breakpoint, resets, runs, optionally steps, and prints variable values. Output is captured from the session log.

Args: project: path to .uvprojx target: target name (default first target) ini_path: custom .ini script path (overrides generated script) reset: reset target before running breakpoint: symbol/line to break at ("" = none) steps: extra single-step count after hitting the breakpoint dump_vars: variable names to print (e.g. ["i", "adc_value"]) timeout_seconds: session timeout

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resetNo
stepsNo
targetNo
projectYes
ini_pathNo
dump_varsNo
breakpointNomain
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations available, the description carries the full transparency burden and does a solid job: it discloses headless execution, the breakpoint/reset/run/step sequence, variable dumping, log capture, and timeout behavior. It does not mention prerequisites such as a connected probe or an initialized debug session, nor does it describe side effects on target state, which prevents a perfect score.

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 well-structured and economical: a one-sentence high-level purpose, a brief behavior summary, then a scannable args list. Every line earns its place and there is no filler.

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?

For an 8-parameter tool with no output schema and no annotations, the description covers the workflow, parameters, and key behaviors thoroughly. The main gap is the lack of detail about the return value or output format beyond saying output is captured from the session log, plus missing prerequisites and failure behavior.

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

Parameters5/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 thoroughly: all eight parameters are individually documented with defaults, override behavior, and examples. The parameter explanations add substantial meaning beyond the bare JSON schema.

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 states a specific action and resource: run an official Keil debug session headlessly via UV4 -d with a generated .ini script, and it outlines the debug sequence. However, it does not explicitly differentiate itself from sibling tools like uv4_debug_dde or the individual probe/debug commands, so the distinction is mostly carried by the tool name rather than the description.

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?

The description explains how the tool behaves but provides no explicit guidance about when to choose it over uv4_debug_dde, set_breakpoint, probe_step, or other debug-related siblings. There are no stated conditions, exclusions, or alternatives, so an agent must infer usage context.

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