Skip to main content
Glama
tina4stack

Claude Pascal MCP Server

by tina4stack

parse_form

Parse Delphi/Lazarus form files (.dfm, .fmx, .lfm) to extract component structure, properties, positions, sizes, and event handlers. Choose tree, summary, or flat output to understand UI layouts.

Instructions

Parse a Delphi/Lazarus form file and return its component structure.

Reads .dfm (VCL), .fmx (FireMonkey), or .lfm (Lazarus) form files and returns a structured view of all components, their properties, positions, sizes, and event handlers.

Args: file_path: Absolute path to the .dfm, .fmx, or .lfm file. output_format: How to format the output: - 'tree': Indented component tree with key properties (default) - 'summary': High-level overview with component counts and events - 'flat': Flat list of all components with position/size info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
output_formatNotree

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.6

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses what files it reads and what it returns (components, properties, positions, sizes, event handlers) and documents the three output formats. However, it does not disclose error behavior for invalid paths or malformed files, nor does it explicitly state that parsing is non-destructive. Decent coverage but gaps remain.

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

Conciseness4/5

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

The purpose is front-loaded in the first line, followed by a detail paragraph and a structured Args section. The Args documentation is genuinely useful and not redundant. Slightly longer than necessary but every sentence earns its place given the three output formats to explain.

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?

An output schema exists, so return-value explanation is not required. The description covers supported input formats, output structure, and all parameters. The main gap is error-handling behavior for invalid files, which is relevant for a file-parsing tool but not critical to correct invocation.

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?

Schema description coverage is 0%, so the description must fully compensate. It documents both parameters: file_path (absolute path requirement) and output_format (with all three enum values and the default 'tree'). This adds meaning well beyond the bare schema, which only provides types and a default.

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?

States a specific verb (parse) + resource (Delphi/Lazarus form files) + result (component structure). Explicitly enumerates the three supported formats (.dfm/.fmx/.lfm). None of the 50+ siblings are form-parsing tools, so it is clearly distinguishable.

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 specifies which file types it handles (.dfm/.fmx/.lfm), which implicitly tells an agent when to call it. However, it gives no explicit when-not-to-use guidance, no exclusions, and no alternative tools to route to. The sibling set contains no other parsing tools, so this is acceptable but not explicit.

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