Skip to main content
Glama

compile_delphi_project

Compile Delphi projects (.dpr/.dproj) and return only compilation errors, filtering out warnings and hints.

Instructions

Compile a Delphi project (.dpr or .dproj file) and return parsed results. For Windows targets (Win32/Win64/Win64x), uses MSBuild for IDE-identical output including icons, manifests, and DPI awareness. For cross-compilation targets (Linux64/Android/Android64), uses direct dcc compiler invocation. Returns only compilation errors, filtering out warnings and hints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYesAbsolute path to .dpr or .dproj file
force_build_allNoForce rebuild all units (adds -B flag)
override_configNoOverride active build config (e.g., "Debug", "Release")
override_platformNoOverride active platform (e.g., "Win32", "Win64", "Linux64", "Android", "Android64")
additional_search_pathsNoExtra unit search paths to add
additional_flagsNoAdditional compiler flags to append
Behavior3/5

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

With no annotations, the description must disclose all behavioral traits. It explains the compilation method per target and that it filters out warnings/hints. However, it does not mention side effects, permissions, error handling, or the format of 'parsed results', leaving gaps.

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: the first states the core purpose, the second provides critical behavioral details. Every sentence is informative and no redundant words. It is optimally concise.

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?

Given 6 parameters and no output schema, the description covers core behavior and target-specific compilation. It lacks description of return value format and potential error outputs, but the parameter schema is fully documented, so the description is largely complete.

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 coverage is 100%, so baseline is 3. The description does not add extra meaning beyond the schema parameter descriptions; it only restates behavior for some parameters implicitly through target distinctions.

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 specifies the verb 'compile', the resource 'Delphi project (.dpr or .dproj file)', and states that it returns parsed results. It distinguishes behavior by target platform, which adds specificity. The sibling tools have different purposes (config generation), so no confusion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description provides context on when to use this tool: for compiling Delphi projects. It explains different behavior for Windows vs cross-compilation targets. However, it lacks explicit 'when not to use' guidance or mention of alternatives, though siblings are unrelated.

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/Basti-Fantasti/delphi-build-mcp-server'

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