Two helpers make generation more reliable.

Enhance a prompt

POST /prompts/enhance expands a rough idea into a detailed prompt.

Clarify a prompt

POST /prompts/clarify returns targeted questions to answer before generating, when a prompt is ambiguous.
Enhance or clarify first, then pass the improved prompt to POST /diagrams.