Skip to main content
Glama
ssasuoirafen

airflow-mcp-server

by ssasuoirafen

get_task_logs

Read-only

Access the log of a task attempt in Airflow, focusing on the trailing portion where errors and tracebacks typically appear.

Instructions

Read the log for one task attempt.

Task logs can be large, so by default only the trailing portion is returned (where the error and traceback usually are).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYesThe DAG.
dag_run_idYesThe run.
task_idYesThe task.
try_numberNoWhich attempt (1-based); retried tasks have more than one.
tail_charsNoReturn at most this many trailing characters. 0 = full log.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Description explains that only the trailing portion is returned by default (where errors/tracebacks are), and implies that setting tail_chars=0 retrieves full log. This adds value beyond the readOnlyHint annotation, disclosing size-related behavior.

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?

Two sentences with no unnecessary words. Front-loaded with the core purpose, then immediately addresses the key behavioral nuance about log size and truncation.

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

Completeness4/5

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

With output schema present, return value details are not needed. Description covers the primary behavior and default truncation. Could mention that logs are for a single attempt, but 'attempt' is already implied by 'try_number' parameter. Minor gap: no mention of potential errors or required permissions, but annotations indicate read-only.

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?

Input schema covers all 5 parameters with descriptions (100% coverage). Description does not add significant new information about parameters; it merely states the default truncation behavior already implied by the 'tail_chars' description. Baseline score of 3 is appropriate.

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?

Description clearly states 'Read the log for one task attempt,' specifying the action and resource. This distinguishes it from sibling tools like 'get_task_instance' (which returns task info) and 'clear_task_instances' (which modifies state).

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?

Description implicitly advises that logs can be large and default behavior returns trailing portion, guiding usage of the 'tail_chars' parameter. However, it does not explicitly state when to use this tool versus alternatives like 'get_task_instance' for debugging.

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