Skip to main content
Glama
Airflow MCP Server

Airflow MCP Server

by treerootboy

backfill-dag

Backfill an Airflow DAG for a specified date range, optionally targeting a single task, to reprocess historical data.

Instructions

Backfill a DAG for a specified date range. Can optionally backfill only a specific task.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "dag_id": "<dag_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "backfill-dag"
  }
}

Input Schema

NameRequiredDescriptionDefault
dag_idYes
task_idNoOptional. Task ID to backfill. If not specified, backfill the entire DAG.
end_dateYesEnd date in YYYY-MM-DD format, timezone is Asia/Shanghai
start_dateYesStart date in YYYY-MM-DD format, timezone is Asia/Shanghai

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It conveys that this is a mutation over a historical window, but it says nothing about how many DAG runs are created, whether existing runs are affected, whether the operation is long-running, what is returned, or what permissions are required — gaps that matter for a backfill tool.

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?

Two short sentences with the core action front-loaded and no redundant wording. The brevity is efficient, though it comes at the cost of the behavioral detail noted elsewhere.

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

Completeness2/5

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

For a mutation tool with no annotations and no output schema, the definition is thin. An agent would not know what backfilling produces (run IDs, a summary), whether it is safe to repeat, or what preconditions exist, so it is not complete enough relative to the tool's complexity.

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 75%, and the schema already documents task_id as optional and gives the date format and Asia/Shanghai timezone for start/end dates. The description repeats the task_id behavior rather than adding new meaning, so the baseline score of 3 is appropriate when the schema does most of the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Backfill'), the resource (DAG), and the scope (a specified date range), plus the optional narrowing to a single task. It is clear what the tool does, though it does not explicitly contrast itself with trigger-dag or the other run-related siblings.

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

Usage Guidelines2/5

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

The description explains that a specific task can optionally be backfilled, which implies when the task_id path is appropriate, but it gives no guidance on when to choose backfill over trigger-dag, and it does not mention prerequisites such as whether the DAG must be paused or enabled.

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