Skip to main content
Glama

pyocd_project_init

Create a .pyocd-debug.json configuration file for pyOCD debug sessions, storing target type, firmware, ELF, SVD, and probe paths with automatic relative conversion to enable reliable debugging.

Instructions

Create .pyocd-debug.json config file in a project directory. Stores target type, firmware, ELF, SVD, and probe paths so that debug sessions can be started reliably without manual file discovery. Paths under the project directory are automatically converted to relative paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
elfNoPath to ELF/AXF file for symbol resolution
svdNoPath to SVD file for peripheral register access
probeNoProbe unique ID (partial match supported)
targetYesTarget MCU type (e.g. 'hc32f4a0xi', 'stm32f407xe')
firmwareNoPath to firmware file (.hex/.bin)
project_dirYesAbsolute path to the project root directory

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It mentions relative path conversion but does not state whether the file is overwritten, appended, or if prior state is required. Missing side-effect details.

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 three sentences long, front-loaded with the core action, followed by purpose and a key behavioral detail. No redundant information.

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?

With an output schema present, return value explanation is unnecessary. The description covers the config file content and relative path behavior. Missing error conditions or prerequisites, but overall sufficient for the tool's simplicity.

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 coverage is 100%, baseline 3. The description adds meaning by noting that paths under project_dir become relative, which enriches understanding of parameters like elf, svd, firmware, and probe. However, it uses 'probe paths' while schema says 'unique ID', causing slight ambiguity.

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 the tool creates a .pyocd-debug.json config file, specifying the action (create) and resource (config file). It distinguishes itself from sibling tools like breakpoint or flash operations, as this is an initialization step.

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?

The description implies usage before debug sessions to avoid manual file discovery. It provides clear context but does not explicitly exclude alternatives or state when not to use, though no sibling tool serves the same function.

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/konbakuyomu/pyocd-debug-mcp'

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