s-universal-prompt-gate-mcp
v0.2.0MCP server that gates prompts: rewrites, shows original/rewritten/update/cancel, and returns only the approved prompt.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rewrite_prompt Prompt Rewrite (no approval)
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): - Pass a short `context` (1-3 sentences) summarizing the conversation/session so far so the enrichment is grounded. Omit it only for brand-new sessions with no history. - Choose `rewrite_level` to fit the task: `light` for quick one-shot answers, `balanced` (default) for most coding/research work, `detailed` when the user explicitly wants a fully-…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The original prompt to rewrite. This is the user's latest message only. |
context | string | 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 gr… |
language | string | Output language of the rewritten prompt, e.g. "vietnamese", "english", "japanese". ALWAYS pass the language the user wrote their prompt in, so the rewrite preserves it. If the user explicitly asks for… |
rewrite_level | string | 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… |
review_and_select_prompt Prompt Gate (user-confirmed)
Generates a rewritten version of the prompt, then asks the user to choose: use original, use rewritten, request changes (update), or cancel. Returns only the approved prompt. Cancellation is a distinct outcome and never exposes an approved prompt. Before the rewrite, the USER chooses the enrichment level (`rewrite_level`: light / balanced / detailed) via an interactive picker — the agent must not choose it. If the client does not support MCP elicitation, the tool returns a distinct "pending_level_selection" result with the level menu in plain text; ask the user, then re-call with the SAME i…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The original prompt to review. This is the user's latest message only. |
context | string | 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 gr… |
feedback | string | ONLY with selection="update": the changes the user asked for, in their own words (e.g. "make it shorter", "add acceptance criteria for X", "keep the tone casual"). The tool applies them in the next re… |
language | string | Output language of the rewritten prompt, e.g. "vietnamese", "english", "japanese". ALWAYS pass the language the user wrote their prompt in, so the rewrite preserves it. If the user explicitly asks for… |
review_id | string | REQUIRED on every re-call that passes `selection`: the review_id returned in structuredContent of the previous "pending_user_selection" result. The server verifies the re-call against the stored revie… |
rewrite_level | string | The enrichment level used for the rewrite. The USER chooses it via an interactive picker (or via the "pending_level_selection" text menu when the client has no elicitation), so do NOT pass it on the f… |
rewritten_prompt | string | The exact rewritten text the user saw. Pass it with `selection`="rewritten" (this is what gets approved — the user approves exactly what they read) and with `selection`="update" (the previous rewrit… |
selection | string | ONLY for a re-call after a pending_user_selection flow: the user's explicit choice after the server could not show an interactive picker. On the first call (rewrite) this must be omitted. Values: "ori… |
get_client_capabilities Client Capabilities
Reports which interaction features are available for the current MCP client/session: elicitation support, structured elicitation, transport, integration mode, and whether a mandatory prompt gate is enforceable. Capabilities are derived from verified protocol negotiation, not from the agent name.