Prompt Rewrite (no approval)
rewrite_promptEnrich a user prompt with context, structure, and quality criteria to create a candidate rewrite for review; it never approves or forwards the result.
Instructions
Re-emit the given prompt with richer context, structure, and quality criteria. This tool only produces a candidate rewrite; it does NOT approve the result. Use review_and_select_prompt for the gated, user-confirmed flow.
CALLING GUIDE (for the LLM):
ALWAYS pass a short
context(1-3 sentences) summarizing the conversation/session so far so the enrichment is grounded. Do not omit it.Choose
rewrite_levelto fit the task:lightfor quick one-shot answers,balanced(default) for most coding/research work,detailedwhen the user explicitly wants a fully-specified spec.Pass
languageonly when the user wants the rewritten prompt in a language different from the original. Do NOT switch the language on your own judgment — the server auto-detects the prompt language and preserves it by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The original prompt to rewrite. This is the user's latest message only. | |
| context | Yes | 1-3 sentences summarizing the conversation/session so far (what the user has asked, what files/topics are in play, what was decided). STRONGLY RECOMMENDED: pass this on every call so the rewrite is grounded in prior context. Omit only for brand-new sessions with no history. | |
| language | No | Output language, e.g. "english" or "vietnamese". ONLY pass this when the user explicitly asks for a different output language. If the user has not asked, omit it — the server auto-detects the prompt's language and preserves it. Do NOT pass "english" just to "improve clarity"; that switches the output language and is a drift. | |
| rewrite_level | No | How much enrichment to apply. "light" = minimal (keep close to original); "balanced" (default) = add missing structure/context/criteria; "detailed" = full spec with acceptance criteria. Pick based on task complexity. |