Skip to main content
Glama
Airflow MCP Server

Airflow MCP Server

by treerootboy

list-dag-runs

Retrieve and filter Apache Airflow DAG runs in batches by DAG ID, state, and execution date range, with pagination and ordering controls.

Instructions

Get DAG runs in batch

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-dag-runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of records to return per DAG
offsetNoNumber of records to skip
statesNoList of states to filter
dag_idsNoList of DAG IDs to query, if None get all dags from list-dag-runs tool
order_byNoField to order by (e.g. -start_date, start_date)-start_date
execution_date_gteNoStart date in YYYY-MM-DD format, timezone is Asia/Shanghai
execution_date_lteNoEnd 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.5/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and provides almost nothing. "Get" implies a read-only operation, but pagination defaults (limit 100, offset 0), ordering defaults, the Asia/Shanghai timezone handling, and the cost of querying all DAGs are not mentioned. Only the schema fields hint at these behaviors.

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

Conciseness3/5

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

The single sentence is front-loaded and free of waste, but at five words it is under-specified rather than concise. It neither orients the reader to the batch semantics nor summarizes the filtering capabilities.

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 7-parameter query tool with no annotations and no output schema, the description is far too thin. It omits filtering behavior across states, dag_ids, and date ranges, and says nothing about return shape or result ordering, leaving the agent to reconstruct usage entirely from the schema.

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 description coverage is 100%, so every parameter is documented in the schema, including defaults and the date format/timezone. The description adds no additional meaning beyond what the schema already provides, so the baseline 3 applies.

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

Purpose3/5

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

The description gives a verb ("Get") and a resource ("DAG runs"), and the phrase "in batch" hints at multi-DAG retrieval, which the dag_ids parameter confirms. However, it never explains what a "batch" means here, whether results are paginated per DAG or globally, or how this differs from siblings like get-dag-status or get-dag-logs.

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?

There is no when-to-use guidance at all: no indication of when to prefer this over get-dag-status, get-dag-logs, or list-dags, and no stated preconditions. The agent must infer everything from the schema alone.

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