Skip to main content
Glama

generate-pdd

Assembles a Product Definition Document from saved Phase 1 and Phase 2 robot outputs, returning a payload for composing and saving the final PDD JSON.

Instructions

Assemble a Product Definition Document (PDD) for a product that has completed Phase 2.

HOW IT WORKS:

  1. This tool loads every robot output saved to disk (Phase 1 + Phase 2) via save-robot-output.

  2. It returns a structured assemblyPayload with all those outputs, plus metadata.

  3. Claude uses that payload to compose the final PDD JSON according to the schema provided.

  4. After Claude generates the PDD JSON, call 'save-pdd' with the full JSON to persist it.

WHEN TO CALL:

  • After all required Phase 2 robots have run and their outputs saved via 'save-robot-output'.

  • Can be called with partial output (not all robots need to have run) — missing sections will be marked as incomplete in the PDD status tracker.

WORKFLOW:

  1. Call generate-pdd → receive assemblyPayload

  2. Claude assembles PDD JSON using the payload (role + mandate + schema all included)

  3. Call save-pdd with the JSON Claude produced

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": {
      "productSlug": "<productSlug>"
    },
    "name": "generate-pdd"
  }
}

Input Schema

NameRequiredDescriptionDefault
epicIdNoOptional epic ID to generate a scoped PDD for
pddVersionNoExplicit version override, e.g. '1.2.0'. Defaults to auto-incrementing the patch version.
productSlugYesThe product slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.1

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does well on mechanics: it discloses that it loads every robot output from disk, returns a structured assemblyPayload plus metadata, marks missing sections as incomplete, and implies it does not persist (persistence requires a separate save-pdd call). It does not state side effects explicitly (e.g. whether reading outputs is purely non-mutating), nor error behavior if the product has not completed Phase 2.

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 one-line purpose, then cleanly separated HOW IT WORKS / WHEN TO CALL / WORKFLOW blocks, which suits a multi-step orchestration tool. However, the WORKFLOW section largely restates steps 3-4 of HOW IT WORKS, so a chunk of text does not earn its place.

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

Completeness3/5

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

For a coordination tool with no output schema, the description adequately explains the return shape (assemblyPayload with robot outputs and metadata) and the hand-off to save-pdd. Gaps remain: no statement of what happens if the product is not in Phase 2, no indication of payload size or truncation behavior when many robot outputs exist, and no explicit confirmation that the call is non-mutating.

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%, so productSlug, epicId and pddVersion are already documented, including the epic-scoping intent and the auto-increment default. The description reinforces the epic-scoped/partial-output notion ('Can be called with partial output') and mentions that role, mandate and schema are included in the payload, but adds little parameter-specific syntax beyond the schema. Baseline 3 is exceeded slightly because the partial-output note clarifies what the call tolerates.

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?

States a specific verb and resource ('Assemble a Product Definition Document (PDD)') and scopes it to products that have completed Phase 2. It also implicitly distinguishes itself from the sibling 'save-pdd' by noting that persistence is a separate step. Minor tension: the tool does not itself assemble the PDD, it returns an assemblyPayload for Claude to compose, which the numbered steps clarify but the opening sentence slightly overstates.

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?

An explicit WHEN TO CALL section names the precondition (all required Phase 2 robots run and saved via 'save-robot-output') and explicitly permits partial output, stating how missing sections are handled. The WORKFLOW block names the exact alternative/next step ('save-pdd') and when to invoke it, leaving nothing to inference.

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