pause_deployment_schedule
Pause the automated schedule of a Prefect deployment to temporarily halt workflow execution without deleting the deployment configuration.
Instructions
Pause a deployment's schedule.
Args: deployment_id: The deployment UUID
Returns: Confirmation message
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deployment_id": "<deployment_id>"
},
"name": "pause_deployment_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deployment_id | Yes |
Implementation Reference
- src/mcp_prefect/deployment.py:309-326 (handler)The handler function for the 'pause_deployment_schedule' MCP tool. It is decorated with @mcp.tool for registration and implements pausing the schedule of a Prefect deployment by calling the Prefect client's pause_deployment_schedule method.
@mcp.tool async def pause_deployment_schedule( deployment_id: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Pause a deployment's schedule. Args: deployment_id: The deployment UUID Returns: Confirmation message """ async with get_client() as client: await client.pause_deployment_schedule(UUID(deployment_id)) return [types.TextContent(type="text", text=f"Schedule for deployment '{deployment_id}' paused successfully.")]