Skip to main content
Glama
tina4stack

Claude Pascal MCP Server

by tina4stack

list_project_files

Scan a Delphi/Lazarus project directory to list Pascal source, form, and project files, and parse .dproj for unit references and build configuration.

Instructions

List all source files in a Delphi/Lazarus project directory.

Scans the directory for Pascal source files (.pas, .dpr, .lpr), form files (.dfm, .fmx, .lfm), and project files (.dproj, .lpi). Also parses .dproj files for unit references, search paths, and build configuration.

Args: project_dir: Path to the project directory on disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_dirYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.6

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It goes beyond the bare 'list project files' name by disclosing that it scans specific Pascal, form, and project extensions and that it parses .dproj files for units, search paths, and build configuration. It does not discuss edge cases or side effects, but 'List' and the scanning detail provide solid transparency.

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 compact and front-loaded with the core purpose, followed by two precise sentences detailing file categories and dproj parsing. The Args section is minimal and useful. There is no redundant text.

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 read-only listing tool with an output schema present, the description covers the key inputs and behavioral scope. It does not discuss recursion, missing-directory behavior, or return structure, but the output schema and the straightforward nature of the operation make this a minor gap.

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 schema only names 'Project Dir', while the description adds that it is a path to the project directory on disk. For a single, obvious parameter this is sufficient semantic grounding even though deeper details like relative vs. absolute paths are omitted.

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 ('list') and a clear resource ('source files in a Delphi/Lazarus project directory'), then enumerates exactly which file types are included. This differentiates it from siblings like parse_form, compile_pascal, and run_pascal, even though those alternatives are not named.

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 intended use is implied: call this to discover project files before compiling or running. However, the description does not explicitly state when to use this tool instead of siblings such as parse_form or compile_pascal, nor does it mention any exclusions or prerequisites.

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