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

mcu_detect_env

Detect installed MCU toolchains and project files to verify a working embedded build environment before coding or flashing.

Instructions

Detect installed MCU toolchains (STM32CubeMX, CubeCLT, CMake, ARM-GCC/GDB, Keil, J-Link, ESP-IDF, probe-rs) and project files.

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

Input Schema

NameRequiredDescriptionDefault
project_pathNo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 behavioral burden, yet it never states that this is a read-only inspection with no mutation, nor whether missing toolchains produce errors or empty results. The return shape (which toolchains found, versions, paths) is undescribed, leaving an agent guessing about outcome semantics.

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?

A single, front-loaded sentence with zero filler; the enumeration of toolchains is informative rather than padding. It is well sized for a simple detection tool, though it offers no structural separation between detection of toolchains and detection of project files.

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 no annotations, no output schema, and an undocumented parameter, the description only covers the 'what' and omits the 'what comes back' and 'what it costs/affects'. For a discovery tool whose value lies in its result set, that leaves meaningful gaps an agent must guess at.

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?

The single parameter project_path (default ".") has 0% schema description coverage and is never mentioned in the description. The description does not explain what the path is used for — whether it scopes project-file discovery only or also toolchain lookup — so it adds no meaning beyond the bare schema.

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?

States a concrete verb ("Detect") and a specific resource (installed MCU toolchains plus project files), and enumerates the toolchains scanned (STM32CubeMX, ARM-GCC/GDB, J-Link, ESP-IDF, etc.), which makes the tool's scope unmistakable. It does not explicitly distinguish itself from the sibling check/audit tools, so it falls short of a 5.

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?

Usage is only implied: the verb "Detect" suggests a preflight/discovery step before audits or scaffolding, but the description never states when to run it, what prerequisites exist (e.g., that it should be run before mcu_ioc_audit or mcu_scaffold), or what alternatives exist. No explicit exclusions or routing guidance are given.

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