Skip to main content
Glama

Compare timeline what-ifs

compare_timeline_scenarios
Read-onlyIdempotent

Use this when the user asks what happens to a project schedule if a task slips, takes longer or shorter, or starts later: for example "if Design slips 5 days, when do we finish?" or "does the critical path change?". Takes the same task list and calendar as plan_project_timeline plus 1 to 4 scenarios, each with changes (extra_days, a new duration, or a new start-no-earlier-than date). Returns the baseline and each scenario's end date, the delay in working and calendar days, the new critical path, tasks that became or stopped being critical, and how much of each slip was absorbed by float. Does not change or save the plan. Do not use for the first schedule of a project (use plan_project_timeline).

Input Schema

NameRequiredDescriptionDefault
tasksYesTasks in any order (1 to 150), e.g. [{"id":"A","name":"Design","duration":5},{"id":"B","name":"Build","duration":10,"depends_on":["A"]}].
countryNoCountry whose public holidays are skipped in business_days mode, as a 2-letter code or name, e.g. US, GB, DE, PL.
calendarNobusiness_days (default) counts Monday to Friday and skips public holidays of country; calendar_days counts every day.
scenariosYes1 to 4 what-if scenarios compared with the baseline plan, e.g. [{"label":"Design +5","changes":[{"task":"Design","extra_days":5}]}].
start_dateNoProject start date YYYY-MM-DD, e.g. 2026-11-02. Defaults to today. Convert relative dates ("next Monday") to a date first.
subdivisionNoState or region code for regional holidays, e.g. CA for California or BY for Bavaria.
project_nameNoProject title for the chart and files, e.g. "Website relaunch".
duration_unitNoDefault unit for every task duration: days (default) or weeks.
non_working_datesNoExtra days off such as a company shutdown, YYYY-MM-DD, e.g. ["2026-12-28", "2026-12-29"].

Output Schema

NameRequiredDescriptionDefault
baselineYes
warningsYes
scenariosYes
project_nameYes
latest_finishYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description reinforces this with "Does not change or save the plan" — meaningful because the tool accepts mutation-shaped inputs (extra_days, new durations). It also enumerates output content (baseline and per-scenario end dates, working vs calendar day delay, new critical path, tasks entering/leaving criticality, float absorption), which is partly redundant with the output schema but still adds framing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the use case and examples, then inputs, then outputs, then the exclusion. It is somewhat long and the return-value enumeration partly duplicates the output schema, which costs it the top score, but every sentence is on-topic.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain returns — yet it still does, plus it states the read-only contract, the parameter relationship to the sibling planner, and the routing rule. Nothing an agent needs to select and invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with detailed nested descriptions, so the baseline is 3. The description adds genuine semantic framing beyond the schema: tasks/calendar mirror plan_project_timeline, and each scenario's changes are one of three mutually exclusive shapes (extra_days, a new duration, or a new start-no-earlier-than date) — clarifying how the nested change object is intended to be used.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (compares timeline what-if scenarios against a baseline) and backs it with two concrete user-utterance examples ("if Design slips 5 days, when do we finish?"). It also explicitly contrasts itself with the sibling plan_project_timeline, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger condition (task slips, takes longer/shorter, starts later; critical-path questions) and an explicit exclusion with the alternative named: "Do not use for the first schedule of a project (use plan_project_timeline)." That is both when-to-use and when-not-to-use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources