Skip to main content
Glama
Malkovsky

ce-analyzer-mcp

by Malkovsky

create_shortlink

Validate C++ source with up to six compiler configurations and generate a permanent shareable shortlink for public retrieval on Compiler Explorer.

Instructions

Validate and permanently store one C++ source with one to six resolved compiler configurations, returning a shareable Compiler Explorer shortlink. Shortlink creation transmits source and settings for persistent, publicly retrievable storage by the configured Compiler Explorer backend; there is no delete operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
compilersNo
validate_compilationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
warningsNo
compilersYes
shortlink_idYes
response_truncatedNo
compilation_validatedYes
Behavior5/5

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

The description adds meaningful behavioral context beyond the annotations: it states that the source and settings are 'transmitted for persistent, publicly retrievable storage' and that 'there is no delete operation.' This clarifies the externally visible side effects and irreversibility, which is critical for a mutation tool with openWorldHint=true. It also discloses the validation step, which annotations do not capture.

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 two sentences long, starts with the primary action and outcome, and uses the second sentence solely for an important side-effect warning. There is no redundant repetition of schema or annotation information, and every clause contributes meaning.

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?

While the description covers the core behavior and persistence implications, it omits important operational details: it does not explain what 'Validate' entails, whether compilation failures abort the operation, or that compilers is optional despite the 'one to six' phrasing. The schema is rich, but the description introduces a potential restriction (one to six) not present in the schema and does not fully align with the null default, leaving ambiguity.

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

Parameters2/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 the individual parameters (source, compilers, validate_compilation) beyond an implicit mention of 'one to six resolved compiler configurations.' The description does not clarify what 'resolved' means, what happens with validate_compilation=false, or the structure of compiler configurations, leaving the agent without sufficient guidance for parameter selection.

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 begins with a specific verb ('Validate and permanently store') and names the exact resource (a C++ source with compiler configurations) and result (a shareable Compiler Explorer shortlink). It clearly distinguishes from sibling tools like get_shortlink, compile_cpp, or analyze_cpp by focusing on persistent creation rather than compilation, comparison, or retrieval.

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 the use case—creating a shareable, persistent shortlink—and warns that there is no delete operation, which indirectly advises caution. However, it does not explicitly state when to prefer this tool over alternatives such as compile_cpp or get_shortlink, nor does it provide explicit exclusions or conditions.

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