Skip to main content
Glama

cmake_build

Destructive

Build configured profiles and build presets, optionally selecting explicit targets and parallel jobs.

Instructions

Build selected profiles and their build presets after configuration.

Omitted targets use CMake or preset defaults; a nonempty targets list selects explicit build targets.

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

Input Schema

NameRequiredDescriptionDefault
targetsNo
timeoutNo
parallelNo
profilesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.2.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the safety profile (destructiveHint=true, openWorldHint=true, idempotentHint=false), so the description's job is to add specificity. It adds useful defaults semantics ('Omitted targets use CMake or preset defaults'), which annotations cannot convey. It does not say what gets written where, what failure modes look like, or how the timeout/parallel limits interact with the build, leaving behavioral gaps for a destructive long-running operation.

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?

Two short sentences with no filler, and the default-handling rule is front-loaded after the core purpose statement. The line break inside the sentence is cosmetic; wording is tight and every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 described. For a four-parameter build invocation, the definition covers what is built, the default behavior when targets are omitted, and the prerequisite configuration step, which is sufficient for an agent to invoke it correctly.

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 four parameters, so the description must carry parameter meaning. It explains targets well (null = preset/CMake default, nonempty = explicit target selection) and implicitly covers profiles via 'selected profiles', but says nothing about timeout or parallel, leaving two of four parameters documented nowhere.

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 specific verb and resource: 'Build selected profiles and their build presets after configuration.' The phrase 'after configuration' plus the sibling names cmake_configure and cmake_test give the agent enough to distinguish this build step from configuration and testing. It falls short of 5 only because 'profiles and build presets' is domain jargon not otherwise explained.

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 sentence 'after configuration' implies the prerequisite step (cmake_configure) and ordering, which is useful implied guidance. However, no explicit when-to-use vs cmake_test or cmake_run_test, and no statement about what happens if no profiles are supplied or whether a failed build needs reconfiguration.

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