Skip to main content
Glama
Malkovsky

ce-analyzer-mcp

by Malkovsky

compile_cpp

Read-onlyIdempotent

Compile C++ source bundles to obtain bounded diagnostics, assembly output, and optional optimization records, using Compiler Explorer backend.

Instructions

Compile one supplied C++ source bundle without executing it, returning bounded diagnostics, assembly, and optional optimization records. Compilation tools transmit supplied source and virtual files to the configured Compiler Explorer backend. Assembly differences are not performance measurements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNo
sourceYes
windowNo
filtersNo
compilerNogcc-latest
librariesNo
include_assemblyNo
compiler_argumentsNo
include_diagnosticsNo
include_optimizationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
assemblyNo
compilerYes
warningsNo
cache_hitNo
exit_codeYes
timed_outYes
diagnosticsNo
fingerprintYes
optimizationNo
cache_eligibleNo
assembly_sha256No
backend_truncatedNo
response_truncatedNo
assembly_line_countYes
Behavior5/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds valuable context: code is not executed, diagnostics are bounded, and assembly differences are not performance measurements. This goes beyond the structured metadata.

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?

Three concise sentences, front-loaded with the core purpose, followed by a brief mechanism note and a critical caveat. Every sentence earns its place with no redundancy.

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?

The description covers core behavior, output categories, and a key performance caveat. Combined with a rich output schema and annotations, it is largely complete, though parameter-level details are deferred to the schema.

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%, and the description does not explain parameters like compiler, filters, libraries, or window. It provides a high-level model by mentioning source bundles, virtual files, diagnostics, assembly, and optimization records, which maps to some parameters but leaves many unaddressed.

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 uses a specific verb ('Compile') and resource ('C++ source bundle'), and clarifies it does not execute the code. This clearly distinguishes it from sibling tools like compare_cpp or analyze_cpp.

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 description implies usage for compilation tasks but does not explicitly state when to use this tool versus alternatives. It mentions that compilation tools transmit source to a backend, but lacks direct when/when-not guidance.

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/Malkovsky/compiler-explorer-mcp'

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