Skip to main content
Glama

clangd_configurations

Read-only

Lists CMake build contexts that already have a compilation database and clangd configured, helping you identify ready-to-use C++ code intelligence setups.

Instructions

List CMake contexts with an existing compilation database and clangd.

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

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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds one useful behavioral fact beyond that: results are filtered to contexts that have both a compilation database and clangd present. It says nothing about ordering, emptiness, or how the results should be consumed.

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?

One short sentence with the key constraint front-loaded and no wasted words. It is arguably too terse — a few more words on what a 'CMake context' is or what the caller does with the list would earn its place.

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?

For a zero-parameter read-only listing with an output schema, the definition covers what is listed and the inclusion criterion, which is most of what an agent needs. The remaining gap is the lack of a next-step pointer to the clangd_* and cmake_* tools that consume these contexts.

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, so there is nothing for the description to disambiguate and the baseline of 4 applies. The description correctly implies an unfiltered, argument-free enumeration.

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 gives a specific verb ('List') and a well-defined resource ('CMake contexts with an existing compilation database and clangd'), so an agent knows exactly what comes back. It does not, however, distinguish itself from near-siblings like cmake_profiles, which also enumerates CMake contexts.

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 only implied: an agent can infer this is the discovery step before invoking clangd_diagnostics or clangd_hover, but the description never says that. There is no explicit when-to-use, no exclusion of cmake_profiles, and no note that contexts lacking a compilation database will be absent.

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