Skip to main content
Glama
hardware-tooling-mcp
by Pheem49

run_custom_toolchain

Execute custom build or flash CLI commands (e.g., make flash, west build, openocd) in a chosen working directory with a configurable timeout.

Instructions

Run a custom build/flash CLI command (e.g., make flash, west build, cargo embed, openocd).

Args: command: Full CLI command string to execute. working_directory: Directory where the command should be run. timeout_sec: Timeout in seconds (default 300).

Input Schema

NameRequiredDescriptionDefault
commandYes
timeout_secNo
working_directoryNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries full behavioral burden, yet it never says whether the command runs through a shell, whether execution is blocking, what happens on timeout or non-zero exit, whether output is captured, or what privileges/working state it mutates. For a tool that executes arbitrary CLI commands, these omissions are significant. The only behavioral hint is the default 300-second timeout, which merely restates the schema.

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 purpose sentence is front-loaded and the examples earn their place by making the tool's scope concrete. The Args block largely re-lists schema fields and the trailing whitespace/newlines are wasted, but overall the text is short and scannable.

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?

An output schema exists, so return values need not be explained, but for a command-execution tool with zero annotations the description should still cover shell semantics, exit-code/timeout behavior, and side effects. Those gaps, plus the unresolved overlap with sibling build/flash tools, leave the definition under-specified for its risk profile.

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 description coverage is 0%, so the description is the only source of parameter meaning, and it does at least gloss all three parameters (full command string, execution directory, timeout default 300). But it adds little beyond the schema titles and defaults: it never explains what a null working_directory resolves to, whether relative paths are allowed, or what timeout expiry does to the running process.

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 opens with a specific verb+resource ("Run a custom build/flash CLI command") and backs it with concrete examples (make flash, west build, cargo embed, openocd), so an agent immediately knows the tool's domain. It does not distinguish itself from closely related siblings such as compile_and_flash, esptool_command, adb_command, or start_process, leaving overlap unresolved.

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?

The examples implicitly signal when this tool applies (custom or unsupported build/flash toolchains), which is adequate implied usage. However, there is no explicit when-to-use/when-not-to-use statement and no pointer to the alternative siblings that do similar things, so the agent must infer boundaries on its own.

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