optimize_promptAnalyze a raw prompt, detect ambiguities, compile an optimized version, score quality, and estimate cost across providers. Returns a PreviewPack for r
refine_promptRefine a prompt by answering blocking questions or providing manual edits. Re-runs analysis and returns updated PreviewPack.
approve_promptApprove the compiled prompt. Returns the final optimized prompt ready for use.
estimate_costEstimate token count and cost across providers for any prompt text. No session needed.
compress_contextCompress context (code, docs) by removing irrelevant sections. Returns pruned context with token savings.
check_promptQuick pass/fail check of a prompt. Returns score, top issues, and a suggestion. No compilation, no session.
configure_optimizerConfigure optimizer behavior: mode, threshold, strictness, default target, ephemeral mode, session limits. Supports config locking with passphrase pro
get_usageGet current usage count, limits, remaining quota, and tier information.
prompt_statsGet aggregated optimization statistics: total count, average score, top task types, estimated savings.
set_licenseActivate a Pro or Power license key. Validates the Ed25519 signature offline and unlocks the corresponding tier.
license_statusCheck current license status, tier, and expiry. Returns purchase link if no license is active.
classify_taskClassify a prompt by task type, reasoning complexity, risk level, and suggested profile. Free — no metering.
route_modelRoute to the optimal model based on task complexity, risk, budget, and latency preferences. Returns recommendation with decision_path audit trail. Fre
pre_flightFull pre-flight analysis: classify task, assess risk, route model, score quality. Returns complete decision bundle. Metered — counts as 1 optimization
prune_toolsScore and rank MCP tools by relevance to a task intent. Optionally prune low-relevance tools to save context tokens.
list_sessionsList all optimization sessions with metadata (no raw prompts). Free tool, not metered.
export_sessionExport full session details including raw prompt. Free tool, not metered.
delete_sessionDelete a single optimization session by ID. Returns deleted status. Free tool, not metered.
We re-grade npm:claude-prompt-optimizer-mcp on a schedule and alert your Slack/webhook the moment its tools change or its grade drops — rug-pull insurance for the connection.
Add the wmcp.sh trust oracle as an MCP server and call grade_mcp_server / check_mcp_drift in your agent's pre-connection gate:
https://wmcp.sh/mcp/trust
readOnly vs observed behavior) layer on via the wmcp.sh proxy.