Calculate critical path
calculate_critical_pathUse this when the user wants a critical path calculation, project duration, earliest/latest task starts and finishes, or task slack from explicit durations and dependencies. Accepts one to forty tasks, at most 160 finish-to-start dependencies, and durations with at most three decimal places. Includes parallel critical tasks and a CSV schedule. Does not schedule calendar dates, generate Gantt charts, account for resources or holidays, or infer missing task durations.
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": {
"tasks": "<tasks>"
},
"name": "calculate_critical_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | A single elapsed-time unit for all task durations, e.g. days. Defaults to days; no business calendar is applied. | |
| tasks | Yes | Tasks in any order, e.g. [{"id":"A","duration":3},{"id":"B","duration":5,"depends_on":["A"]}]. | |
| project | No | Project label, e.g. Website launch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| notes | Yes | ||
| tasks | Yes | ||
| project | Yes | ||
| downloads | Yes | ||
| task_count | Yes | ||
| critical_tasks | Yes | ||
| project_duration | Yes | ||
| one_critical_path | Yes | ||
| schedule_preview_only | Yes |