Skip to main content
Glama
agent-mcu MCP server
by linxi27667

mcu_scaffold

Generates standardized STM32 CubeMX+CMake, STM32 bare-metal register, or ESP-IDF project structures from a chosen track and output directory.

Instructions

Scaffold a standardized STM32 CubeMX+CMake, STM32 Bare-Metal Register, or ESP-IDF project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "track": "<track>",
      "out_dir": "<out_dir>"
    },
    "name": "mcu_scaffold"
  }
}

Input Schema

NameRequiredDescriptionDefault
mcuNoSTM32F407ZET6
nameNomcu_firmware
forceNo
trackYes
hse_mhzNo
out_dirYes
sysclk_mhzNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It implies a write operation by saying it scaffolds a project, but it does not disclose that files are created on disk, what happens when out_dir is non-empty, what the force parameter changes, or whether the operation is idempotent.

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?

The single sentence is front-loaded with the verb and free of filler. It is arguably too sparse for a seven-parameter generator, but that is a completeness issue rather than wasted wording.

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?

This is a seven-parameter project generator with no annotations and no output schema, so the description should explain out_dir behavior, overwrite semantics, defaults, and what artifacts are produced. Instead it provides only the high-level purpose, leaving the operational details an agent needs before invoking it.

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

Parameters2/5

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

Schema description coverage is 0%, and the description only indirectly maps the three project names to the track enum values. It adds no meaning for mcu, out_dir, name, force, hse_mhz, or sysclk_mhz, so the majority of the seven parameters remain undocumented in both the schema and the description.

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 names a specific verb, 'Scaffold', and a specific resource, 'project', then enumerates the three project flavors it supports. That is clear enough for an agent to know what the tool produces, but it does not explicitly differentiate itself from the sibling tools, which are checkers and appliers rather than generators.

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 states what the tool does but gives no when-to-use guidance, no preconditions, and no exclusions. It does not say whether this is meant for new projects only, whether it should precede mcu_cubemx_apply, or what an agent should do if a project already exists.

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