Skip to main content
Glama

get_camera_motions

Retrieve all supported camera motions for video creation. Utilize this tool to access camera movement options for enhancing Luma Dream Machine visuals via the mcp-luma-dream-machine server.

Instructions

Gets all supported camera motions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async function that implements the core logic of the 'get_camera_motions' tool by making a GET request to the Luma API endpoint '/generations/camera_motion/list' and formatting the response.
    async def get_camera_motions(parameters: dict) -> str: """Get all supported camera motions.""" try: result = await _make_luma_request("GET", "/generations/camera_motion/list") if not result: return "No camera motions available" return "Available camera motions:\n" + ", ".join(result) except Exception as e: logger.error(f"Error in get_camera_motions: {str(e)}", exc_info=True) return f"Error retrieving camera motions: {str(e)}"
  • Pydantic model defining the input schema for the tool. It is empty as the tool requires no input parameters.
    class GetCameraMotionsInput(BaseModel): pass
  • Registration of the tool in the list_tools() handler, specifying its name, description, and input schema.
    Tool( name=LumaTools.GET_CAMERA_MOTIONS, description="Gets all supported camera motions", inputSchema=GetCameraMotionsInput.model_json_schema(), ),
  • Dispatch logic in the call_tool() handler that routes calls to the 'get_camera_motions' function and formats the response.
    case LumaTools.GET_CAMERA_MOTIONS: result = await get_camera_motions(arguments) return [TextContent(type="text", text=result)]
  • Enum constant defining the tool name string within the LumaTools enum.
    GET_CAMERA_MOTIONS = "get_camera_motions"

Other Tools

Related Tools

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/bobtista/luma-ai-mcp-server'

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