Skip to main content
Glama

Diogenes Context Compression, Code Patching & Deterministic Solver MCP

Critical Path Method (CPM) DAG & Resource Constraint Scheduler

schedule_critical_path_tasks
Read-onlyIdempotent

Solves a task dependency DAG via the Critical Path Method (CPM) to compute ES/EF/LS/LF, Total Float/Slack, optimal makespan, and the Critical Path. Use when scheduling dependent engineering milestones or workflow steps to find the minimum project duration and zero-slack bottleneck path; for detecting circular code imports and file blast radius without task durations, use audit_module_dependency_cycles instead. Read-only edge call (32 KB, 60 RPM): accepts 'tasks_json' ('time_unit' defaults to 'minutes'), supports '?demo=true' or L402 (80 sats), and returns HTTP 400 if invalid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
time_unitNoDuration unit label attached to the schedule; defaults to 'hours' when omitted.
tasks_jsonYesJSON string or array of tasks '[{"id":"t1","duration":3,"dependencies":[]}]' to schedule.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
total_tasksYesNumber of DAG tasks scheduled.
critical_pathYesOrdered task IDs with zero slack that determine the overall project duration.
task_scheduleYesPer-task earliest_start, earliest_finish, latest_start, latest_finish, and total_float_slack.
optimal_makespan_durationYesMinimum total duration required to complete all tasks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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, so the safety profile is covered; the description goes further with operational context: 32 KB payload cap, 60 RPM rate limit, ?demo=true, L402 pricing (80 sats), and HTTP 400 on invalid input. It does not state whether the payment path or demo mode changes results, a minor gap.

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 core purpose, then usage routing, then operational constraints in a single dense sentence. It is information-packed and every clause earns its place, though the trailing parenthetical cramming rate limit, payload size, payment, and error codes is a bit dense.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the description covers purpose, routing, cost/auth, and limits. The one gap is the contradictory default for 'time_unit', which leaves an agent unsure of the effective default when the field is omitted.

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

Parameters2/5

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

Schema coverage is 100%, so the baseline would be 3, but the description actively misleads: it says 'time_unit' defaults to 'minutes' while the schema states it 'defaults to hours when omitted.' That is a direct conflict on the default value, which is exactly the kind of detail an agent would rely on when omitting the parameter.

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 (solves) plus resource (task dependency DAG) and enumerates the concrete outputs (ES/EF/LS/LF, float, makespan, critical path). It explicitly names the sibling it is not (audit_module_dependency_cycles), so an agent can separate the two without opening schemas.

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 when-to-use trigger ('scheduling dependent engineering milestones or workflow steps to find the minimum project duration and zero-slack bottleneck path') and an explicit when-not with the named alternative for durationless import/blast-radius analysis. Nothing is left to inference.

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