# generate_prd

根据结构化要素生成标准化 prd.md，并写入 src/prototypes/<slug>/。基于 deppon-prd-generator skill 模板，默认 DP-IT 标题。

Agent View of the PolicyLayer registry record for `generate_prd`. HTML page: https://policylayer.com/tools/deppon-deppon-prd-mcp/generate-prd

## Facts

- Tool: `generate_prd`
- Server: Deppon Prd (`@deppon/deppon-prd-mcp`) — https://policylayer.com/tools/deppon-deppon-prd-mcp.md
- Install: `npx -y @deppon/deppon-prd-mcp`
- Homepage: https://www.npmjs.com/package/@deppon/deppon-prd-mcp
- Risk category: Write (Medium risk)
- Registry record: grade C, identity unverified
- Server rate-limited: no
- Parameters: 12 (1 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `slug` | string | no | 目录 slug，默认由 pageName 推导 |
| `columns` | array | no |  |
| `filters` | array | no |  |
| `features` | array | no |  |
| `menuPath` | string | no |  |
| `pageName` | string | yes | 页面/模块名称，如「产品折扣列表」 |
| `pageType` | string | no | 页面类型，默认 list-crud |
| `batchDate` | string | no | DP-IT 批次日 YYYYMMDD |
| `background` | string | no | §1.1 背景描述 |
| `enableCrud` | boolean | no |  |
| `rowActions` | array | no |  |
| `permissions` | array | no |  |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_prd",
    "arguments": {
      "pageName": "<pageName>"
    }
  }
}
```

## Why generate_prd is rated Medium

This tool creates and writes files (prd.md documents) to a filesystem path. This is a Write operation as it modifies the system by creating new files in a defined location. Severity is medium because while reversible (files can be deleted), uncontrolled generation could fill directories, overwrite existing PRD documents, or clutter the project structure.

From the tool's own definition: "Tool description states '生成标准化 prd.md，并写入 src/prototypes/<slug>/' which translates to 'generates standardized prd.md and writes to src/prototypes/<slug>/'. The 'write' (写入) action indicates file creation/modification in a structured directory."

Risk signals: High parameter count (13 properties)

## Use case

AI agents use generate_prd to create or update resources in Deppon Prd, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Deppon Prd environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Deppon Prd:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "generate_prd": {
      "limits": [
        {
          "counter": "generate_prd_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Deppon Prd (5)

- `export_canvas_handoff` — Read — https://policylayer.com/tools/deppon-deppon-prd-mcp/export-canvas-handoff.md
- `get_prd_project` — Read — https://policylayer.com/tools/deppon-deppon-prd-mcp/get-prd-project.md
- `list_prd_projects` — Read — https://policylayer.com/tools/deppon-deppon-prd-mcp/list-prd-projects.md
- `generate_prototype` — Write — https://policylayer.com/tools/deppon-deppon-prd-mcp/generate-prototype.md
- `open_prd_studio` — Write — https://policylayer.com/tools/deppon-deppon-prd-mcp/open-prd-studio.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=deppon-deppon-prd-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/deppon-deppon-prd-mcp
