Skip to main content
Glama

save-pdd

Persist the generated PDD JSON by validating its product meta, saving versioned JSON and Markdown files to assets/pdd, optionally rendering HTML, and updating the phase context.

Instructions

Persist the PDD JSON that Claude assembled via 'generate-pdd'.

This tool:

  1. Validates the PDD JSON has a meta block with productName + version.

  2. Saves three files to assets/pdd/: pdd--v.json — machine-readable PDD pdd--v.md — Notion-compatible markdown pdd--latest.md — copy of latest version (overwritten on every save)

  3. Optionally renders an HTML file to plans/ directory.

  4. Updates pddVersion in context/phase2-context.json.

Call this immediately after Claude generates the PDD JSON from 'generate-pdd'.

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>",
      "pddJson": "<pddJson>"
    },
    "name": "save-pdd"
  }
}

Input Schema

NameRequiredDescriptionDefault
epicIdNoOptional epic ID to save a scoped PDD for
pddJsonYesThe full PDD JSON string that Claude generated
productSlugYesThe product slug
renderHtmlFlagNoSet true to also save an HTML version to plans/. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.1

TDQS

A4.1/5.0
Behavior4/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 most of it well: it discloses validation of a meta block (productName + version), the exact files written, that pdd-<slug>-latest.md is overwritten on every save, and that context/phase2-context.json is mutated. It does not say what happens when validation fails or whether partial writes are left behind, which is the remaining gap for a multi-file write.

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 a numbered breakdown of the four effects, then the invocation rule. The file list is genuinely informative rather than padding. Minor redundancy between the header sentence and the closing 'Call this immediately after' line, but nothing is wasted.

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 four-parameter write tool with no annotations and no output schema, the description covers side effects, destinations, overwrite behaviour and ordering. The omissions are failure modes and any return value or confirmation of what was written, which matter for a tool that touches three locations.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all four parameters, establishing a baseline of 3. The description adds meaning for renderHtmlFlag by describing the HTML render to plans/, but never mentions epicId or what a scoped PDD means, so it adds only marginal value over the schema.

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 (persist) and resource (the PDD JSON assembled by 'generate-pdd'), then enumerates exactly what persistence means: three files in assets/pdd/ plus an optional HTML render and a context file update. The pairing with 'generate-pdd' makes the division of labour between the two tools unambiguous.

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?

Gives an explicit trigger and ordering: 'Call this immediately after Claude generates the PDD JSON from generate-pdd.' That names the predecessor and the moment to invoke. It stops short of stating exclusions, e.g. that save-artifact or save-presentation-file should not be used for PDDs, so it is clear context rather than full routing guidance.

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