Skip to main content
Glama

MCP Server Airflow Token

get_import_error

Retrieve specific import error details from Apache Airflow by providing the error ID to diagnose and resolve DAG import failures.

Instructions

Get a specific import error by ID

Input Schema

NameRequiredDescriptionDefault
import_error_idYes

Input Schema (JSON Schema)

{ "properties": { "import_error_id": { "title": "Import Error Id", "type": "integer" } }, "required": [ "import_error_id" ], "type": "object" }

Implementation Reference

  • MCP tool handler for get_import_error. Accepts import_error_id (int), fetches the import error via ImportErrorApi, and returns it as text content.
    async def get_import_error( import_error_id: int, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: response = import_error_api.get_import_error(import_error_id=import_error_id) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Registration definition that includes the get_import_error tool, specifying its handler, name, description, and read-only status. This is imported and used in src/main.py to register the tool with the MCP server.
    def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (get_import_errors, "get_import_errors", "List import errors", True), (get_import_error, "get_import_error", "Get a specific import error by ID", True), ]

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/nikhil-ganage/mcp-server-airflow-token'

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