create_risk
Record a risk on a project's risk register (a forward-looking "might happen" - for a problem that HAS happened, file an Issue via create_issue instead). ADDITIVE: creates one ProjectRisk row and never touches existing risks. analyze_project_risks never changes or removes a risk created here. severity: LOW/MEDIUM/HIGH/CRITICAL. category: SCHEDULE/RESOURCE/BUDGET/SCOPE/EXTERNAL. Optionally include a mitigation (the recommended response). Optionally make it a schedule event for the Monte Carlo schedule risk run: probability (0 to 1), impactDays (working days added to EACH affected task when it happens) and affectedTaskIds (tasks in the same project). Caller needs write access to the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | ||
| severity | Yes | ||
| projectId | Yes | The project whose risk register gets the entry. | |
| impactDays | No | Optional working days the risk adds to each affected task when it happens. | |
| mitigation | No | Optional recommended response / mitigation, up to 5000 chars. | |
| description | Yes | The risk statement (what might happen and why it matters), 1-5000 chars. | |
| probability | No | Optional chance the risk happens, 0 to 1 (0.3 is 30%). | |
| affectedTaskIds | No | Optional ids of tasks in this project that the risk would delay. |