Skip to main content
Glama
ssasuoirafen

airflow-mcp-server

by ssasuoirafen

clear_task_instances

Destructive

Clear task instances to re-run them, resetting state for scheduler retry. Use dry_run to preview affected tasks without execution.

Instructions

Clear task instances so they re-run (retry).

Clearing resets task state and the scheduler re-runs them, so it is destructive - it can re-execute work. Use dry_run=True first to preview exactly which task instances would be affected without changing anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYesThe DAG.
dag_run_idNoRestrict to a single run (recommended).
task_idsNoRestrict to specific task ids; omit for all tasks in scope.
include_downstreamNoAlso clear downstream tasks.
include_upstreamNoAlso clear upstream tasks.
only_failedNoOnly clear failed task instances.
dry_runNoIf True, report what would be cleared without doing it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_instancesNo
total_entriesNo
Behavior5/5

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

The description explicitly states the destructive nature (resets state, re-executes work), which aligns with annotations (destructiveHint: true). It adds context beyond annotations by explaining the consequence and suggesting dry run for safety.

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 two short sentences, front-loaded with the core purpose 'Clear task instances so they re-run.' Every sentence adds value; no wasted text.

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?

Given the tool has 7 parameters (all covered by schema) and an output schema, the description provides essential behavioral context (destructive, dry run) without needing to repeat schema details. It is complete for the complexity level.

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 100%, so parameters are already well-documented. The description adds minimal extra meaning beyond what the schema provides, mainly the advice to use dry_run. This meets the baseline for high 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 clearly states the tool clears task instances so they re-run, using specific verbs ('Clear', 're-run', 'resets'). It distinguishes from siblings which are mostly read-only or other mutations (e.g., list_dags, set_dag_paused).

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 recommends using dry_run=True first to preview effects, providing a clear usage pattern. However, it does not explicitly state when to use this tool versus alternatives or when not to use it, leaving some ambiguity.

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/ssasuoirafen/airflow-mcp-server'

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