Skip to main content
Glama

get_import_error

Retrieve specific import errors from Apache Airflow clusters to diagnose and resolve DAG import failures during workflow execution.

Instructions

[Tool Role]: Retrieves a specific import error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
import_error_idYes

Implementation Reference

  • The handler function decorated with @mcp.tool() that implements the get_import_error tool. It fetches the specific import error details from the Airflow REST API using the provided import_error_id.
    @mcp.tool() async def get_import_error(import_error_id: int) -> Dict[str, Any]: """[Tool Role]: Retrieves a specific import error.""" resp = await airflow_request("GET", f"/importErrors/{import_error_id}") 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