Skip to main content
Glama

p6_critical_path

Read-onlyIdempotent

Lists near-critical and critical activities of a Primavera P6 project by total float or longest path, with counts, thresholds, and schedule state for last F9.

Instructions

Critical activities of the last F9, one page; also definition, mode_used, threshold_d (the project's total float threshold in project calendar days; explain=True adds threshold_h), counts, schedule_state, note. mode: project (default: the project setting, total float <= its threshold or longest path), total_float (that threshold) or longest_path (P6's driving path flag). float_threshold_days forces total float <= that; min_float_days keeps total float > that (neither with longest_path): min_float_days=0 with float_threshold_days=10 lists the near critical activities. LOE and WBS summary are left out (even when P6 flags them), completed ones unless include_completed=True. Order: total float then start, or float path order. counts (open activities, every page): open, total_float, longest_path, negative_float, excluded_summary (LOE and WBS summary meeting the definition, not listed). fields= as in p6_query_activities.

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": {
      "project": "<project>"
    },
    "name": "p6_critical_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoproject
limitNoRows per page (max 200).
detailNobrief (default): rows without null values; full: every key.brief
fieldsNoFields to return (task_code always first); default all.
offsetNoRows to skip (next_offset of the previous page).
explainNoTrue: also return the fixed texts in words (see the description).
projectYesProject ID (p6_list_projects).
min_float_daysNo
include_completedNo
float_threshold_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv4.2.0
    • changedInput schema / properties / detail / default
      Previous value: -"full"New value: +"brief"
    • changedInput schema / properties / detail / description
      Previous value: -"brief: rows without their null values; full (default): every key."New value: +"brief (default): rows without null values; full: every key."
    • addedInput schema / properties / explain
      Added value: +{
      +  "default": false,
      +  "description": "True: also return the fixed texts in words (see the description).",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / fields / anyOf
      Removed value: -[
      -  {
      -    "description": "Fields to return (task_code always first); default all.",
      -    "items": {
      -      "enum": [
      -        "task_code",
      -        "task_name",
      -        "status_code",
      -        "task_type",
      -        "wbs_name",
      -        "early_start_date",
      -        "early_end_date",
      -        "late_start_date",
      -        "late_end_date",
      -        "act_start_date",
      -        "act_end_date",
      -        "target_start_date",
      -        "target_end_date",
      -        "cstr_type",
      -        "cstr_label",
      -        "cstr_date",
      -        "phys_complete_pct",
      -        "driving_path_flag",
      -        "orig_dur_d",
      -        "rem_dur_d",
      -        "total_float_d",
      -        "free_float_d",
      -        "float_path",
      -        "float_path_order"
      -      ],
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / fields / default
      Removed value: -null
    • addedInput schema / properties / fields / description
      Added value: +"Fields to return (task_code always first); default all."
    • addedInput schema / properties / fields / items
      Added value: +{
      +  "enum": [
      +    "task_code",
      +    "task_name",
      +    "status_code",
      +    "task_type",
      +    "wbs_name",
      +    "early_start_date",
      +    "early_end_date",
      +    "late_start_date",
      +    "late_end_date",
      +    "act_start_date",
      +    "act_end_date",
      +    "target_start_date",
      +    "target_end_date",
      +    "cstr_type",
      +    "cstr_label",
      +    "cstr_date",
      +    "phys_complete_pct",
      +    "driving_path_flag",
      +    "orig_dur_d",
      +    "rem_dur_d",
      +    "total_float_d",
      +    "free_float_d",
      +    "float_path",
      +    "float_path_order"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / fields / type
      Added value: +"array"
    • removedInput schema / properties / float_threshold_days / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / float_threshold_days / default
      Removed value: -null
    • addedInput schema / properties / float_threshold_days / type
      Added value: +"number"
    • removedInput schema / properties / min_float_days / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / min_float_days / default
      Removed value: -null
    • addedInput schema / properties / min_float_days / type
      Added value: +"number"
    • changedInput schema / properties / offset / description
      Previous value: -"Rows to skip: pass next_offset from the previous page."New value: +"Rows to skip (next_offset of the previous page)."
    • changedInput schema / properties / project / description
      Previous value: -"Project ID as shown in P6 (p6_list_projects)."New value: +"Project ID (p6_list_projects)."
  2. Changed10 schema fields changedv3.5.0
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "full",
      +  "description": "brief: rows without their null values; full (default): every key.",
      +  "enum": [
      +    "full",
      +    "brief"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / fields / title
      Removed value: -"Fields"
    • removedInput schema / properties / float_threshold_days / title
      Removed value: -"Float Threshold Days"
    • removedInput schema / properties / include_completed / title
      Removed value: -"Include Completed"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / min_float_days / title
      Removed value: -"Min Float Days"
    • removedInput schema / properties / mode / title
      Removed value: -"Mode"
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / properties / project / title
      Removed value: -"Project"
    • removedInput schema / title
      Removed value: -"p6_critical_pathArguments"
  3. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / min_float_days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Min Float Days"
      +}
  4. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive, so the value-add here is substantive: explicit exclusion rules (LOE and WBS summary omitted even when P6 flags them), completed activities omitted unless include_completed=True, ordering rules (total float then start, or float path order), and pagination via limit/offset. It also explains that counts are computed over open activities and repeated on every page, including excluded_summary. It stops short of stating output row shape or failure modes, which is why this is a 4 rather than a 5.

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

Conciseness3/5

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

Information-dense but poorly structured: a single run-on block with semicolons and parentheticals, and it opens by listing return keys rather than leading with what the tool does. The mode explanation is front-loaded relative to the return-value inventory, and the parenthetical about explain/threshold_h is hard to parse on first read.

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?

For a 10-parameter read tool with no output schema, the description covers the essentials: return envelope fields, count semantics, ordering, exclusions, and the interaction between the two float thresholds. Remaining gaps are minor (undefined 'F9' jargon, no stated behavior for an invalid mode/threshold combination), and the fields= deferral to a sibling is a reasonable choice.

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?

With 60% schema coverage, the description meaningfully compensates: mode, float_threshold_days, min_float_days, include_completed and explain are all given semantics and constraints that the schema alone does not convey. It also cross-references fields= to p6_query_activities instead of duplicating the enum. limit/offset/detail are left entirely to the schema, which is acceptable since those are documented there.

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

Purpose4/5

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

The description names the resource precisely (critical activities per the last F9 schedule calculation) and enumerates the returned envelope (definition, mode_used, threshold_d, counts, schedule_state, note). It never contrasts itself with the close siblings p6_float_analysis or p6_query_activities, and the jargon 'last F9' is left undefined for a non-Primavera reader.

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

Usage Guidelines4/5

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

Mode selection is spelled out with defaults and semantics: project (project setting), total_float, longest_path (P6 driving-path flag), plus the interaction rules 'float_threshold_days forces total float <= that' and 'min_float_days keeps total float > that (neither with longest_path)'. A concrete worked example (min_float_days=0 with float_threshold_days=10 for near-critical) is provided. There is no guidance on when to prefer this over p6_float_analysis or a filtered p6_query_activities.

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