Skip to main content
Glama

pyocd_flash_program

Program firmware files (.hex/.bin/.elf/.axf) to target flash memory. Automatically attaches ELF files for symbol resolution and sends progress updates.

Instructions

Program a firmware file (.hex/.bin/.elf) to the target flash. For armclang-compiled firmware, prefer .hex format to avoid ELF compatibility issues. When programming a .elf or .axf file, automatically attaches it for symbol resolution. Sends progress notifications to prevent AI client timeouts during programming.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eraseNoErase flash before programming (default True)
file_pathYesAbsolute path to firmware file (.hex, .bin, .elf, or .axf)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations, so description carries burden. Mentions progress notifications to prevent timeouts and ELF auto-attach behavior. Missing details on post-programming actions like reset or verification.

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 focused sentences: one for main purpose, two for specific guidance. No redundant phrasing, front-loaded with core action.

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?

With 2 params and existing schema, description covers key aspects but lacks prerequisites (session connected?) and what happens after programming (reset, verify). Sibling tools hint at needed workflow but description doesn't complete it.

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 covers both parameters fully. Description adds minor value by recommending .hex format for armclang, but doesn't expand on the erase parameter's effect.

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?

Clearly states it programs firmware files to target flash with specific formats (.hex/.bin/.elf/.axf). Distinguishes well from sibling tools like erase and verify.

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?

Provides format preference for armclang firmware and notes automatic ELF attachment. Could be more explicit about when to avoid this tool, but gives good context.

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