Skip to main content
Glama
Airflow MCP Server

Airflow MCP Server

by treerootboy

get-dag-logs

Retrieve logs for an Airflow DAG run, optionally filtered by task ID and try number, to diagnose failures and inspect execution details.

Instructions

Get logs for a DAG run

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>",
      "run_id": "<run_id>"
    },
    "name": "get-dag-logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
dag_idYes
run_idYes
task_idNoGet logs for specific task
try_numberNoThe try number of the task execution

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full behavioral burden, yet it only restates the operation. It does not disclose read-only nature, pagination or limits, log availability, permissions, or whether task_id/try_number filter the output.

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?

Single sentence, front-loaded, with no wasted wording. The brevity comes at the cost of substance, but the structure itself is clean.

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 log-retrieval tool with four parameters, no annotations, and no output schema, the definition is too thin to be complete. It omits how logs are scoped by task/try and what the agent should expect from the call.

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?

The description says nothing about dag_id, run_id, task_id, or try_number. Schema coverage is only 50%, with the optional params described in the schema but the two required IDs undocumented, and the description adds no meaning beyond the field names.

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 ('Get') and resource ('logs for a DAG run'), so the core operation is clear. It does not distinguish itself from siblings such as get-dag-status or list-dag-runs, so it falls short of a 5.

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?

No when-to-use or when-not-to-use guidance is provided, and no alternative is named. An agent must infer that this is for retrieving DAG run logs rather than status or run metadata.

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