Skip to main content
Glama

cmake_profiles

Read-only

Lists active CMake profiles and their toolsets, build settings, and preset selections to help verify the configuration in use.

Instructions

List effective profiles and their toolsets, build settings, and preset selections.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

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

A3.5/5.0
Behavior3/5

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

The readOnlyHint=true annotation already establishes that this is a safe, non-mutating read, and the description adds useful context by naming the categories of data returned. However, it does not clarify what 'effective' means (resolved/merged versus on-disk), nor whether results depend on the currently open workspace, which is the main behavioral unknown with no parameters to control it.

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?

A single sentence with the action front-loaded and no filler; every listed item (toolsets, build settings, preset selections) is informative. It is appropriately sized for a zero-parameter read tool.

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?

Because an output schema exists, the description need not describe return values, and the readOnly annotation covers safety, so the remaining burden is light. Still, the absence of any usage guidance or explanation of 'effective' leaves a small but real gap for a tool sitting next to cmake_configure and the toolset_* tools.

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

Parameters4/5

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

The tool takes zero parameters, which is the baseline-4 case; there is nothing for the description to disambiguate. The description correctly implies the tool operates on the whole context rather than a selected profile, consistent with the empty 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?

The description uses a specific verb, 'List,' with a clear resource, 'effective profiles,' and enumerates the contents (toolsets, build settings, preset selections), so an agent knows exactly what it returns. It does not distinguish itself from siblings such as toolset_get or cmake_configure, which is the only thing keeping it from 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 Guidelines3/5

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

It is only implied that this is a discovery/introspection call, presumably run before cmake_configure to learn which profiles exist. There is no explicit when-to-use statement, no mention of the alternatives (toolset_get, cmake_configure), and no stated prerequisites, so the agent must infer the workflow.

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