Skip to main content
Glama

p6_list_wbs

Read-onlyIdempotent

Lists a Primavera P6 project's WBS hierarchy in P6 order with paginated nodes and optional rollups for activity counts, float, dates, and units.

Instructions

WBS tree in P6 order (each node before its children), one page; also root (the start node; unplaced = activities outside the tree). Row: ids, depth (project node 0), wbs_code as P6 shows it ('PRJ.5.1'), names, children, and with rollups=True its whole subtree: activity counts by status, open (LOE and WBS summary left out), min_tf_d and negative_float of open activities, start and finish (actual, else early), budget_units and actual_units (labor plus nonlabor), units_pct (P6 Units % Complete) and bl_planned_pct (baseline planned units at the data date / baseline budget units x 100, matched by Activity ID, linear between planned dates as p6_progress_curve; None without a baseline, data date or units). baseline= a Project ID (default the project baseline; the result names it). parent= starts at that WBS code, full or relative ('5.1'); max_depth counts levels below it.

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_list_wbs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per page (max 200).
offsetNoRows to skip (next_offset of the previous page).
parentNo
projectYesProject ID (p6_list_projects).
rollupsNo
baselineNoProject ID (p6_list_projects).
max_depthNoLevels below the start node (0 = the node only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv4.2.0
    • removedInput schema / properties / baseline / anyOf
      Removed value: -[
      -  {
      -    "description": "Project ID as shown in P6 (p6_list_projects).",
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / baseline / default
      Removed value: -null
    • addedInput schema / properties / baseline / description
      Added value: +"Project ID (p6_list_projects)."
    • addedInput schema / properties / baseline / minLength
      Added value: +1
    • addedInput schema / properties / baseline / type
      Added value: +"string"
    • removedInput schema / properties / max_depth / anyOf
      Removed value: -[
      -  {
      -    "description": "Levels below the start node (0 = the node only).",
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / max_depth / default
      Removed value: -null
    • addedInput schema / properties / max_depth / description
      Added value: +"Levels below the start node (0 = the node only)."
    • addedInput schema / properties / max_depth / minimum
      Added value: +0
    • addedInput schema / properties / max_depth / type
      Added value: +"integer"
    • 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)."
    • removedInput schema / properties / parent / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / parent / default
      Removed value: -null
    • addedInput schema / properties / parent / type
      Added value: +"string"
    • changedInput schema / properties / project / description
      Previous value: -"Project ID as shown in P6 (p6_list_projects)."New value: +"Project ID (p6_list_projects)."
  2. Changed8 schema fields changedv3.5.0
    • removedInput schema / properties / baseline / title
      Removed value: -"Baseline"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / max_depth / title
      Removed value: -"Max Depth"
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / properties / parent / title
      Removed value: -"Parent"
    • removedInput schema / properties / project / title
      Removed value: -"Project"
    • removedInput schema / properties / rollups / title
      Removed value: -"Rollups"
    • removedInput schema / title
      Removed value: -"p6_list_wbsArguments"
  3. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / baseline
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Project ID as shown in P6 (p6_list_projects).",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Baseline"
      +}
  4. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses meaningful behavior: single-page pagination, exclusion of LOE and WBS summary from open counts, baseline matching by Activity ID with linear interpolation, and the conditions under which bl_planned_pct is None. This is substantial operational context, though the dense jargon (min_tf_d, negative_float) assumes domain fluency rather than explaining it.

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?

The purpose is front-loaded, but the remainder is a dense run-on block mixing row-field enumeration with parameter notes, making it hard to parse at a glance. Most content earns its place, yet the lack of structure and heavy abbreviation costs readability.

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 complex rollup tool with no output schema, the description adequately documents the returned row fields, pagination, defaults, and None conditions, so an agent knows what to expect. Minor gaps remain around ordering within pages and how 'unplaced' root rows are shaped, but overall it is complete enough to call correctly.

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 71%, and the description adds real meaning beyond it: parent accepts full or relative codes ('5.1'), max_depth counts levels below it, baseline defaults to the project baseline and is named in the result, and rollups pulls the whole subtree with specified exclusions. Only project/limit/offset rely purely on schema descriptions.

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 opening sentence states a specific verb+resource ('WBS tree in P6 order'), and clarifies traversal order (each node before its children) and scope (one page, root/unplaced). It is clearly a hierarchical WBS listing, distinguishable in kind from p6_query_activities or p6_list_projects, though it never names a sibling to route against explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: the tool is for reading the WBS tree, with parameter-level cues (rollups=True to get subtree aggregates, parent to start at a WBS code). There is no explicit 'use this when X, instead use Y' guidance or stated prerequisites/preconditions, so an agent must infer the selection context.

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