Skip to main content
Glama

get_deployment_schedule

Retrieve schedule details for a Prefect deployment by providing its UUID to manage workflow automation timing and execution patterns.

Instructions

Get a deployment's schedule.

Args: deployment_id: The deployment UUID

Returns: Schedule details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deployment_idYes

Implementation Reference

  • The handler function for the 'get_deployment_schedule' tool. It is decorated with @mcp.tool, which registers it as an MCP tool. The function retrieves the schedule of a Prefect deployment using the Prefect client and returns it as text content.
    @mcp.tool
    async def get_deployment_schedule(
        deployment_id: str,
    ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]:
        """
        Get a deployment's schedule.
        
        Args:
            deployment_id: The deployment UUID
            
        Returns:
            Schedule details
        """
        async with get_client() as client:
            schedule = await client.read_deployment_schedule(UUID(deployment_id))
            
            return [types.TextContent(type="text", text=str(schedule.model_dump()))]

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/allen-munsch/mcp-prefect'

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