Skip to main content
Glama

build_project

Compile an ARM embedded firmware project with the bundled toolchain, applying clean, include, define, linker, and output options.

Instructions

Build a firmware project using EmbiMind's bundled ARM toolchain.

Prefer building in the user's firmware IDE (e.g., STM32CubeIDE). Only set user_approved=true after the user explicitly approves building via MCP.

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": {
      "project_dir": "<project_dir>"
    },
    "name": "build_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
cleanNo
flagsNo
definesNo
build_dirNo
output_elfNo
project_dirYes
include_dirsNo
linker_scriptNo
user_approvedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.3/5.0
Behavior3/5

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

There are no annotations, so the description carries the full behavioral burden. It usefully discloses that a bundled ARM toolchain is used and that user approval is a precondition for invoking it, but says nothing about side effects on disk, whether artifacts overwrite existing output, what a failure looks like, or whether anything is flashed or only built.

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 short sentences with the action front-loaded and the safety gate last, which matches reading order. No filler, though a list of the most relevant build parameters would have cost little space and paid off given the schema gaps.

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?

A 9-parameter mutation-ish tool with no annotations and no output schema needs far more description than this. Missing are the meaning of the build-tuning parameters, where artifacts land, and what the caller receives, leaving the agent under-informed despite the good purpose statement and approval gate.

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% across 9 parameters, so the description must compensate and largely does not. It clarifies only user_approved (beyond what the field name implies) and says nothing about clean, flags, defines, build_dir, output_elf, include_dirs, linker_script, or how project_dir is interpreted.

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?

Names a specific verb and resource ('Build a firmware project') and pins the implementation ('EmbiMind's bundled ARM toolchain'), which separates it from single-file siblings like compile_c or compile_assembly. It never states that contrast explicitly, so the agent has to infer that this is a whole-project build.

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?

Gives an explicit when-not: prefer the user's firmware IDE such as STM32CubeIDE. It also imposes a hard call condition, that user_approved must only be true after explicit consent, which is actionable gating. It does not name which MCP sibling to use when a build is not appropriate, so the routing guidance stops short of full coverage.

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