Skip to main content
Glama

cmake_configure

Destructive

Configure selected CMake profiles for C++ builds and return build/database paths plus per-execution errors; changing a manual profile's generator recreates its build directory.

Instructions

Configure selected profiles; return build/database paths and per-execution errors.

Changing a manual profile's generator removes and recreates its build directory.

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_configure"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNo
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/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is given. The description still adds real value by disclosing the concrete destructive consequence (changing a manual profile's generator removes and recreates its build directory) and by stating that per-execution errors are returned, but it does not cover timeout behavior, partial-failure semantics, or what state is left behind on error.

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, front-loaded with the action and return values, with the destructive caveat second. No filler, though the fragment "per-execution errors" is slightly terse and could be phrased more directly.

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-value documentation is not required, and the destructive caveat covers the main risk. However, for a destructive, non-idempotent configuration tool with an undocumented 'profiles' parameter, the definition omits prerequisites (profiles must already exist via cmake_profiles), failure/timeout behavior, and how the default null profile selection behaves.

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% for the top-level properties: the 'profiles' array has no description, no format for profile names, and no statement of what null/default means (all profiles vs none). The description's phrase "selected profiles" only loosely implies the parameter is a subset selector; the nested timeout fields are documented in the $defs, but the description itself adds little beyond the 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 specific verb and resource ("Configure selected profiles") plus the return payload (build/database paths, per-execution errors), so the agent knows this runs CMake configuration rather than a build. It does not name sibling tools such as cmake_profiles or cmake_build to sharpen the boundary, keeping it below 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance: nothing says to call cmake_profiles first to discover valid profile names, or that cmake_build should follow a successful configure. Usage is only implied by the word "configure" and the mention of generator changes.

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