Skip to main content
Glama
William-An

cpp-debug-mcp

by William-An

lsp_diagnostics

Retrieve compile errors and warnings for any C++ file using clangd diagnostics. Identify and resolve coding issues quickly.

Instructions

Get compile errors and warnings for a C++ file from clangd.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesThe LSP session identifier.
file_pathYesAbsolute path to the C++ source file.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries full burden but only states the basic action. It does not disclose whether the tool blocks, handles errors, returns empty results, or requires authentication. The behavior beyond 'get diagnostics' is opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no redundant words. It is front-loaded with the action and context. Every word earns its place.

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?

The tool has an output schema (not shown) and simple parameters, but the description does not connect it to workflow (e.g., needing a session from lsp_start_session) or explain how it differs from similar tools. It is minimally adequate but lacks ecosystem context.

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?

Both parameters have schema descriptions (100% coverage), so the description adds no extra meaning. The parameters are straightforward, but the description could clarify valid values for file_path or session_id. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get', the resource 'compile errors and warnings', and the context 'for a C++ file from clangd'. It uniquely identifies the tool's function and distinguishes it from sibling tools like lsp_hover or lsp_find_references.

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?

The description provides no guidance on when to use this tool versus alternatives, no prerequisites (e.g., requiring an active LSP session), and no exclusions. The agent is left to infer usage from context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/William-An/cpp-debug-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server