score_prompt
Score a prompt for a generation target (0–100) and, if it's weak, return the rewrite brief — in ONE call.
Reads intent with a fast heuristic keyword analyzer, scores the prompt, then: • score ≥ 70 (A/B) → returns the scorecard and tells you to proceed. • score < 70 (C/D/F) → returns the scorecard PLUS a rewrite brief so you can fix it without a second call. Write the enhanced prompt from the brief, then call track_enhancement(original, enhanced, generator).
Returns a ScoreCard (overall, grade A–F, per-dimension breakdown, what's missing, anti-patterns, verdict) plus needs_enhancement, and enhancement_brief when weak.
category (optional): the ad vertical (e.g. "wellness", "beauty") — when set and conversion priors exist, the brief upgrades to a conversion-justified rewrite.
Supported generators: veo3, higgsfield, midjourney, flux, kling, sora, imagen…
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| category | No | ||
| generator | Yes |