Skip to main content
Glama

cmake_run_test

Destructive

Run a single project or storage test executable directly with literal command-line arguments, then read its output via process_get using the returned process ID. A zero exit code indicates success.

Instructions

Run one project/storage test executable directly with literal command-line arguments.

Inherits the server environment; cwd defaults to project/. Zero exit means success. No profiles, CTest properties, or case reports are used. Read output through process_get with the returned process_id.

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": {
      "executable": "<executable>"
    },
    "name": "cmake_run_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoproject/
timeoutNo
argumentsNo
executableYes

Output Schema

NameRequiredDescriptionDefault
cwdYes
errorNoNull on success; failure explanation otherwise.
argumentsNo
executableYes
process_idNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (destructive, openWorld, non-idempotent), the description adds real behavioral context: the child inherits the server environment, cwd defaults to project/, a zero exit code is the success signal, and output must be retrieved via process_get using the returned process_id. That async-process workflow is the kind of information the annotations cannot convey. It does not explain what gets destroyed or how failures surface, but the essential operating model is disclosed.

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?

Four short sentences, front-loaded with the core action, then scoping, then the environment/exit-code contract, then the follow-up step. No filler. Slightly telegraphic phrasing ('Zero exit means success', 'No profiles...') trades grammar for density but remains clear.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and rich annotations, the description need only cover the invocation contract, and it does: execution model, cwd default, success criterion, and the process_get follow-up. Remaining gaps are the undocumented timeout parameter and the absence of error/failure-path guidance, but the tool is callable correctly from what is written.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden: it explains cwd ('defaults to project/'), arguments ('literal command-line arguments', i.e. no shell interpretation), and executable ('one project/storage test executable'). The timeout parameter and its idle/total semantics are never mentioned in the description, leaving a meaningful gap for a long-running test invocation.

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?

The description states a specific verb and resource: run a single test executable directly with literal command-line arguments, and it explicitly names what is NOT involved (no profiles, CTest properties, or case reports), which implicitly separates it from the cmake_test sibling. It stops short of naming cmake_test directly, so an agent must infer the contrast rather than read it.

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 implied by the negation clause: use this when you want a raw executable invocation without CTest machinery. However, there is no explicit 'use cmake_test instead when...' routing statement, and no guidance on prerequisites such as whether the binary must already be built or which project/storage test binaries are eligible.

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