Skip to main content
Glama

cmake_test

Destructive

Run CTest for selected profiles and test presets after building to validate C++ code and return test cases; pass exact test names or omit for defaults.

Instructions

Run CTest for selected profiles and test presets after building; return test cases.

names selects exact test names, not regex patterns; omit it to use CTest or preset defaults.

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

Input Schema

NameRequiredDescriptionDefault
namesNo
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

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, so the description's only added behavioral fact is the build precondition. It says nothing about what test execution touches, what the default 600s timeout means, how parallel affects the run, or what happens on failure — the burden is largely unmet despite the destructive profile.

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 tight sentences, front-loaded with the action and followed by the only non-obvious parameter caveat. 'return test cases' is redundant given an output schema exists, but the rest earns its space.

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?

For a zero-required-parameter tool with 0% schema coverage and a destructive profile, the definition omits the meaning of profiles, parallel and timeout, and provides no disambiguation from cmake_run_test. The vague mention of returning 'test cases' is unnecessary because an output schema exists.

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%, so the description must compensate for all four parameters. It only explains 'names' (exact names, not regex, omit for defaults) and leaves 'profiles', 'parallel' and 'timeout' entirely undocumented, covering roughly one of four parameters.

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 ('Run CTest ... return test cases') and adds the precondition that a build must precede it. It does not, however, differentiate itself from the sibling cmake_run_test, which an agent could easily confuse with this tool.

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 phrase 'after building' gives a useful precondition, and 'omit it to use CTest or preset defaults' clarifies the default path. There is no explicit guidance on when to pick this over cmake_run_test, cmake_build, or cmake_configure, so usage is only implied.

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