Skip to main content
Glama
gabcoyne

airflow-unfactor

by gabcoyne

generate_deployment

Generate Prefect deployment configuration from Airflow DAG metadata, producing a complete prefect.yaml with schedule, parameters, and placeholders for work pool and pull settings.

Instructions

Write prefect.yaml deployment configuration from DAG metadata.

Call after generating flow.py. Produces a complete prefect.yaml with YAML anchors, schedule config, parameter defaults, and TODO stubs for work pool and pull step configuration.

Args: output_directory: Directory to write prefect.yaml into. flows: List of flow dicts. Each requires flow_name and entrypoint. Optional fields: schedule (cron/interval/None), parameters (dict of name→default), description, tags, dataset_triggers. workspace: Workspace name (default: "default").

Returns: JSON with created_file, deployment_names, next_steps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowsYes
workspaceNodefault
output_directoryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description must carry the disclosure burden. It does state the side effect (writes prefect.yaml), the file's key contents (YAML anchors, schedule config, TODO stubs), and the return shape. However, it doesn't disclose overwrite behavior, permissions, or failure modes, leaving important behavioral ambiguity for a file-writing tool.

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 structured with intro, Args, and Returns sections; no sentence is filler. The 'Call after generating flow.py' line adds a critical usage cue without wasting words.

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 3-parameter code-generation tool with a nested flows structure, the description covers inputs, output, and pipeline timing. It could strengthen completeness by specifying file-handling behavior (e.g., overwrites) and providing a minimal example, but it is sufficient for a typical 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 compensates by documenting all three parameters. It explains the required flow fields (flow_name, entrypoint) and optional fields (schedule, parameters, etc.) and gives the workspace default, adding real meaning beyond the bare schema.

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?

Opens with a specific verb phrase 'Write prefect.yaml deployment configuration from DAG metadata,' clearly naming the deliverable and source. The sibling tools have distinct purposes, and 'Call after generating flow.py' further distinguishes this as the deployment-config generation step.

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?

States an explicit precondition ('Call after generating flow.py'), giving clear context for when to invoke. It does not name alternatives or state when not to use, so it stops short of a 5.

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