Skip to main content
Glama

get_import_error

Retrieve detailed import error information, including ID, filename, stacktrace, and timestamp, to diagnose and resolve issues in Apache Airflow clusters efficiently.

Instructions

[Tool Role]: Retrieves a specific import error by ID.

Args: import_error_id: The import error ID to retrieve

Returns: Single import error: import_error_id, filename, stacktrace, timestamp

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
import_error_idYes

Implementation Reference

  • The core handler function implementing the get_import_error tool. It makes an HTTP GET request to the Airflow API endpoint /importErrors/{import_error_id} to retrieve details of a specific import error.
    @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()
  • Registration call that includes the get_import_error tool for Airflow API v1 compatibility.
    common_tools.register_common_tools(mcp)
  • Registration call that includes the get_import_error tool for Airflow API v2 compatibility.
    common_tools.register_common_tools(mcp)

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