Skip to main content
Glama

build_project

Configure and compile CMake/Ninja or arm-none-eabi firmware projects, returning compiler output, ELF SHA256, size, and warning/error counts for verification.

Instructions

Configure + build a CMake/Ninja/arm-none-eabi project / 编译工程并产出证据.

Uses CMakePresets.json when the preset exists, else explicit Ninja configure. Returns raw compiler output, ELF SHA256, size output, warning/error counts. Never touches hardware and does not modify source files.

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_path": "<project_path>"
    },
    "name": "build_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
cleanNo
presetNoDebug
targetNo
timeout_sNo
build_argsNo
project_pathYes
configure_argsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it names the configure strategy, the returned artifacts (raw compiler output, ELF SHA256, size output, warning/error counts), and two negative side effects (no hardware access, no source modification). It does not disclose what `clean` destroys, whether the build aborts on first error, or timeout behavior, which keeps it from a 5.

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?

Front-loaded with the action and resource, followed by short scoping and output sentences with no filler. The duplicated Chinese phrase '编译工程并产出证据' is redundant with the English and earns little, but the text overall stays tight.

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?

An output schema exists so return values need not be explained, and the safety/scope boundaries are stated. However, for a 7-parameter mutation-style build tool with zero annotation coverage, the absence of any parameter-level semantics leaves an agent guessing at clean, target, build_args, and timeout_s.

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 7 parameters, so the description must compensate but largely doesn't. Only `preset` gains any meaning (CMakePresets.json is consulted when the preset exists); clean, target, timeout_s, build_args, configure_args, and project_path are left entirely to bare schema types and defaults.

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 first sentence gives a precise verb+resource+toolchain: 'Configure + build a CMake/Ninja/arm-none-eabi project', which immediately separates it from siblings like build_status, deploy_project, or inspect_project. The scope statement ('Never touches hardware and does not modify source files') further pins down what this tool is not.

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 configure-then-build flow is described, but there is no explicit 'use this when... instead of build_status/deploy_project' guidance. The CMakePresets-vs-Ninja branching is a behavioral rule, not a when-to-call rule.

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