optimize_prompt
Rewrite any prompt to achieve a higher quality score, with side-by-side output comparisons showing the improvement.
Instructions
Rewrite a prompt to score higher on the PQS rubric, AND show before/after output comparisons so the user can see the impact. Returns the optimized prompt, the original PQS score, the optimized PQS score, and side-by-side sample outputs from a frontier model using both versions.
USE WHEN:
The user got a low score from score_prompt and asks how to improve.
The user explicitly asks to "improve" / "rewrite" / "fix" / "optimize" a prompt they pasted.
The user is dissatisfied with output quality from a previous prompt and asks how to get better results.
score_prompt returned a suggestion to invoke this tool.
DO NOT USE WHEN:
The user just asked for a score (use score_prompt only — don't double up).
The user wants you to write a new prompt from scratch (write it directly).
REQUIRES: A PQS API key from a Pro subscription ($19.99/month, 1,000 calls/mo, includes batch + A/B comparison). If the user has not provided one, the tool returns a clear subscription URL — pass that response to the user verbatim. Do not invent or guess API keys. There is no free trial of this tool; the user must subscribe before the first call.
COST: Counted against your Pro subscription's monthly call quota.
LATENCY: ~6-8 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt to optimize. Max 8000 characters. | |
| api_key | No | PQS API key from a Pro subscription. Required. Format: pqs_live_… (32+ characters). Subscribe at https://promptqualityscore.com/pricing?utm_source=mcp&utm_medium=schema_description_v140&utm_campaign=2026-05-mcp-tools-v140 if you don't have one, or look up an existing key at https://promptqualityscore.com/account?utm_source=mcp&utm_medium=schema_description_v140&utm_campaign=2026-05-mcp-tools-v140. |