Skip to main content
Glama

get_task_instance_extra_links

Retrieve additional links for a specific task instance, such as monitoring dashboards or logs, by providing the DAG ID, DAG run ID, and task ID. Simplifies access to external resources within Apache Airflow clusters.

Instructions

[Tool Role]: Lists extra links for a specific task instance (e.g., monitoring dashboards, logs, external resources).

Args: dag_id: The DAG ID containing the task dag_run_id: The DAG run ID containing the task instance task_id: The task ID to get extra links for

Returns: List of extra links with their URLs and descriptions: task_id, dag_id, dag_run_id, extra_links

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYes
dag_run_idYes
task_idYes

Implementation Reference

  • The main handler function for the 'get_task_instance_extra_links' tool, decorated with @mcp.tool() for registration. It makes an API request to retrieve extra links for the specified task instance.
    @mcp.tool() async def get_task_instance_extra_links(dag_id: str, dag_run_id: str, task_id: str) -> Dict[str, Any]: """[Tool Role]: Gets extra links for a task instance.""" resp = await airflow_request("GET", f"/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links") resp.raise_for_status() return resp.json()

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/call518/MCP-Airflow-API'

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