Skip to main content
Glama
keil-mdk-mcp

keil-mdk-mcp

by lideshengstu

keil_get_execution_state

Observe CPU execution state, halt reason, exception number, and confirmed breakpoint hits to diagnose STM32 debugging issues.

Instructions

Observe CPU state, halt reason, exception number and confirmed breakpoint hit when available.

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": "keil_get_execution_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, 'Observe' usefully implies a non-mutating inspection, and 'when available' discloses that some state may be conditional or absent. It does not explain behavior while the CPU is running, prerequisites for obtaining halt or exception details, or whether repeated calls have any timing or session considerations.

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?

A single compact sentence front-loads the operation and enumerates the available state without filler. The availability qualifier is retained without adding unnecessary wording.

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 a zero-argument inspection tool with an output schema, the description covers the essential purpose and scope without needing to document return fields in detail. Its main omissions are invocation prerequisites, behavior outside a halted state, and clearer positioning among the related execution and status getters.

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?

The tool has no parameters, so there are no input semantics requiring additional explanation. The description appropriately focuses on the execution information being retrieved.

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 clearly states an observational operation over CPU execution state and identifies the specific information available: halt reason, exception number, and breakpoint hit. The field list helps distinguish it from other getters, but it does not explicitly differentiate it from close siblings such as keil_get_status or keil_get_pc.

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 listed fields imply that the tool is useful when inspecting why execution stopped or whether a breakpoint was hit. However, it gives no explicit guidance about when to call it, whether a debug session or halted target is required, or when another sibling getter is more appropriate.

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