optimize_schedule
Generate optimal task schedules by applying algorithms to balance priorities, deadlines, and dependencies while respecting maximum daily work hours.
Instructions
Auto-generate optimal task schedules.
Schedules tasks with estimated_duration based on priority, deadlines, and dependencies. By default schedules on weekdays only and skips tasks that already have a planned_start (use force_override to override).
Args: algorithm: Algorithm name. One of: greedy (front-load), balanced (even distribution), backward (JIT from deadline), priority_first (priority only), earliest_deadline (EDF), round_robin (parallel progress), dependency_aware (CPM), genetic (evolutionary), monte_carlo (random sampling). Use list_algorithms() to discover available algorithms. max_hours_per_day: Maximum work hours per day (e.g., 6.0 or 8.0) start_date: Optimization start date in ISO format (e.g., '2025-12-15' or '2025-12-15T09:00:00'). Defaults to server current time when omitted. task_ids: Specific task IDs to optimize. If omitted, all schedulable tasks are considered. force_override: If True, override existing schedules include_all_days: If True, schedule on weekends and holidays too
Returns: Optimization result with successful_tasks, failed_tasks, daily_allocations, and summary metrics.
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": {
"algorithm": "<algorithm>",
"max_hours_per_day": "<max_hours_per_day>"
},
"name": "optimize_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_ids | No | ||
| algorithm | Yes | ||
| start_date | No | ||
| force_override | No | ||
| include_all_days | No | ||
| max_hours_per_day | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||