Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

post_dag_run

Trigger a DAG by ID in Apache Airflow to start workflow execution with optional parameters like run ID, data intervals, and execution date.

Instructions

Trigger a DAG by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYes
dag_run_idNo
data_interval_endNo
data_interval_startNo
execution_dateNo
logical_dateNo
noteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv1.0.0
    • removedInput schema / properties / dag_id / title
      Removed value: -"Dag Id"
    • removedInput schema / properties / dag_run_id / title
      Removed value: -"Dag Run Id"
    • removedInput schema / properties / data_interval_end / title
      Removed value: -"Data Interval End"
    • removedInput schema / properties / data_interval_start / title
      Removed value: -"Data Interval Start"
    • removedInput schema / properties / execution_date / title
      Removed value: -"Execution Date"
    • removedInput schema / properties / logical_date / title
      Removed value: -"Logical Date"
    • removedInput schema / properties / note / title
      Removed value: -"Note"
    • removedInput schema / title
      Removed value: -"post_dag_runArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "Annotations": {
      -      "additionalProperties": true,
      -      "properties": {
      -        "audience": {
      -          "anyOf": [
      -            {
      -              "items": {
      -                "enum": [
      -                  "user",
      -                  "assistant"
      -                ],
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Audience"
      -        },
      -        "priority": {
      -          "anyOf": [
      -            {
      -              "maximum": 1,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Priority"
      -        }
      -      },
      -      "title": "Annotations",
      -      "type": "object"
      -    },
      -    "BlobResourceContents": {
      -      "additionalProperties": true,
      -      "description": "Binary contents of a resource.",
      -      "properties": {
      -        "_meta": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Meta"
      -        },
      -        "blob": {
      -          "title": "Blob",
      -          "type": "string"
      -        },
      -        "mimeType": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Mimetype"
      -        },
      -        "uri": {
      -          "format": "uri",
      -          "minLength": 1,
      -          "title": "Uri",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "uri",
      -        "blob"
      -      ],
      -      "title": "BlobResourceContents",
      -      "type": "object"
      -    },
      -    "EmbeddedResource": {
      -      "additionalProperties": true,
      -      "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit\nof the LLM and/or the user.",
      -      "properties": {
      -        "_meta": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Meta"
      -        },
      -        "annotations": {
      -          "anyOf": [
      -            {
      -              "$ref": "#/$defs/Annotations"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null
      -        },
      -        "resource": {
      -          "anyOf": [
      -            {
      -              "$ref": "#/$defs/TextResourceContents"
      -            },
      -            {
      -              "$ref": "#/$defs/BlobResourceContents"
      -            }
      -          ],
      -          "title": "Resource"
      -        },
      -        "type": {
      -          "const": "resource",
      -          "title": "Type",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "type",
      -        "resource"
      -      ],
      -      "title": "EmbeddedResource",
      -      "type": "object"
      -    },
      -    "ImageContent": {
      -      "additionalProperties": true,
      -      "description": "Image content for a message.",
      -      "properties": {
      -        "_meta": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Meta"
      -        },
      -        "annotations": {
      -          "anyOf": [
      -            {
      -              "$ref": "#/$defs/Annotations"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null
      -        },
      -        "data": {
      -          "title": "Data",
      -          "type": "string"
      -        },
      -        "mimeType": {
      -          "title": "Mimetype",
      -          "type": "string"
      -        },
      -        "type": {
      -          "const": "image",
      -          "title": "Type",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "type",
      -        "data",
      -        "mimeType"
      -      ],
      -      "title": "ImageContent",
      -      "type": "object"
      -    },
      -    "TextContent": {
      -      "additionalProperties": true,
      -      "description": "Text content for a message.",
      -      "properties": {
      -        "_meta": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Meta"
      -        },
      -        "annotations": {
      -          "anyOf": [
      -            {
      -              "$ref": "#/$defs/Annotations"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null
      -        },
      -        "text": {
      -          "title": "Text",
      -          "type": "string"
      -        },
      -        "type": {
      -          "const": "text",
      -          "title": "Type",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "type",
      -        "text"
      -      ],
      -      "title": "TextContent",
      -      "type": "object"
      -    },
      -    "TextResourceContents": {
      -      "additionalProperties": true,
      -      "description": "Text contents of a resource.",
      -      "properties": {
      -        "_meta": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Meta"
      -        },
      -        "mimeType": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "title": "Mimetype"
      -        },
      -        "text": {
      -          "title": "Text",
      -          "type": "string"
      -        },
      -        "uri": {
      -          "format": "uri",
      -          "minLength": 1,
      -          "title": "Uri",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "uri",
      -        "text"
      -      ],
      -      "title": "TextResourceContents",
      -      "type": "object"
      -    }
      -  },
      -  "properties": {
      -    "result": {
      -      "items": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/TextContent"
      -          },
      -          {
      -            "$ref": "#/$defs/ImageContent"
      -          },
      -          {
      -            "$ref": "#/$defs/EmbeddedResource"
      -          }
      -        ]
      -      },
      -      "title": "Result",
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "post_dag_runOutput",
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

C2.6/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 burden of behavioral disclosure. 'Trigger a DAG' implies a write/mutation operation, but it doesn't specify whether this creates a new DAG run, what happens if a run already exists, whether it's idempotent, or what the response looks like. For a mutation tool with zero annotation coverage, this is a significant gap in safety and operational context.

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 extremely concise at just 4 words, with zero wasted language. It's front-loaded with the core action and resource. While it's under-specified for a tool with 7 parameters, it's not verbose or poorly structured—it just lacks necessary detail.

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?

Given the complexity (7 parameters, mutation operation, no output schema, 0% schema description coverage, no annotations), the description is incomplete. It doesn't explain what the tool returns, how parameters interact, error conditions, or behavioral nuances. For a tool that likely initiates workflow executions, this leaves critical gaps for an AI agent to use it correctly.

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

Parameters2/5

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

Schema description coverage is 0%, meaning none of the 7 parameters have descriptions in the schema. The tool description adds no parameter information beyond the name 'dag_id' implied by 'by ID'. It doesn't explain what 'dag_run_id', 'data_interval_start/end', 'execution_date', 'logical_date', or 'note' are for, leaving most parameters undocumented. The description fails to compensate for the schema gap.

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 'Trigger a DAG by ID' clearly states the action (trigger) and target resource (DAG), which is better than a tautology. However, it lacks specificity about what 'trigger' means in this context (e.g., starting a workflow execution) and doesn't distinguish it from sibling tools like 'update_dag_run_state' or 'pause_dag/unpause_dag' that also affect DAG runs. The purpose is understandable but vague.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., DAG must exist, be unpaused), when to use it over other DAG-related tools like 'update_dag_run_state', or any constraints (e.g., rate limits, permissions). With many sibling tools affecting DAGs, this omission leaves the agent without context for tool selection.

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