Skip to main content
Glama
gabcoyne

airflow-unfactor

by gabcoyne

validate

Validate converted Prefect flow against original Airflow DAG. Returns both sources, syntax check, and comparison guidance for structural review.

Instructions

Validate a converted Prefect flow against the original Airflow DAG.

Returns both source files for comparison plus a syntax check on the generated code. You perform the structural comparison.

Args: original_dag: Path or inline content of the original DAG. converted_flow: Path or inline content of the generated flow.

Returns: JSON with original_source, converted_source, syntax_valid, syntax_errors, and comparison_guidance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
original_dagYes
converted_flowYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It clearly states that the tool returns both source files and syntax check results, and that the agent must perform the structural comparison. It also lists the exact return fields, which is valuable behavioral context, though it does not cover error handling or side effects.

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 concise, front-loaded with the main purpose, and uses a clear Args/Returns structure. Every sentence earns its place, and there is no fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description provides all necessary context for the agent to understand what the tool does, what inputs to provide, and what outputs to expect. It also explicitly assigns the responsibility of structural comparison to the agent, which is critical for correct usage. The presence of an output schema reduces the need for more return-value detail.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides only type 'string' for both parameters with no descriptions, but the description adds crucial semantics by stating each is a 'Path or inline content' for the original DAG and the generated flow. This fully compensates for the 0% schema description coverage.

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 opens with a specific verb and resource: 'Validate a converted Prefect flow against the original Airflow DAG.' This clearly distinguishes the tool from siblings like 'read_dag' and 'scaffold', and states the exact scope of the operation.

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 clearly implies when to use the tool (when validating a converted flow against its original DAG) and instructs the agent on the next step: 'You perform the structural comparison.' However, it does not explicitly mention alternatives or when not to use this tool, so it stays just below a perfect score.

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/gabcoyne/airflow-unfactor'

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