ping
Verify the operational status of the Luma API by sending a ping request. This tool ensures the API is active and ready for video and image processing tasks.
Instructions
Check if the Luma API is running
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/luma_ai_mcp_server/server.py:246-253 (handler)The main handler function for the 'ping' tool. It makes a GET request to the Luma API's /ping endpoint and returns a status message indicating availability.async def ping(parameters: dict) -> str: """Check if the Luma API is running.""" try: await _make_luma_request("GET", "/ping") return "Luma API is available and responding" except Exception as e: logger.error(f"Error in ping: {str(e)}", exc_info=True) return f"Error pinging Luma API: {str(e)}"
- Pydantic BaseModel defining the input schema for the ping tool, which requires no parameters.class PingInput(BaseModel): pass
- src/luma_ai_mcp_server/server.py:498-502 (registration)Registration of the 'ping' tool in the server's list_tools() method, specifying name, description, and input schema.Tool( name=LumaTools.PING, description="Check if the Luma API is running", inputSchema=PingInput.model_json_schema(), ),
- src/luma_ai_mcp_server/server.py:555-557 (registration)Dispatch logic in the server's call_tool() method that routes 'ping' tool calls to the ping handler function.case LumaTools.PING: result = await ping(arguments) return [TextContent(type="text", text=result)]
- src/luma_ai_mcp_server/server.py:95-95 (registration)Enum value defining the tool name constant 'PING = "ping"' used in registrations.PING = "ping"