Skip to main content
Glama
lucasgerads

pymcuprog-mcp

by lucasgerads

build_and_flash

Build a project with make and program the resulting hex file to the target device, performing erase, write, verify, and release operations.

Instructions

Build a project with make and flash the result to the target device.

project_dir: path to the directory containing the Makefile. Falls back to the PYMCUPROG_PROJECT_DIR environment variable if not provided. Runs 'make -C project_dir', finds the generated .hex file, then erases, writes, verifies, and releases the target. Returns 'OK' on success; raises with build output on compile failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_dirNo
deviceNo
toolNo
serialnumberNo
serialportNo
baudrateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations exist, so description carries full burden. It details the build process, flash steps (erase, write, verify, release), and error behavior, offering good transparency.

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?

Three sentences with step listing—no fluff, but the param explanations are missing. Still efficient for the information provided.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema, the description omits explanations for most parameters and does not address prerequisite steps or device selection, making it incomplete for a build+flash operation.

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

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only project_dir is explained; the other five parameters (device, tool, serialnumber, etc.) are entirely undocumented despite 0% schema coverage, failing to add meaning.

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 combines building with make and flashing, distinguishing it from sibling tools like flash or erase.

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?

Provides some context about project_dir and fallback to environment variable, but lacks explicit guidance on when to use this tool versus alternatives like build alone or flash alone.

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/lucasgerads/pymcuprog-mcp'

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