MCP server that analyzes your codebase and refines coding prompts before your AI agent acts on them
Promptly has 2 tools with clear naming (verb_noun pattern) and detailed descriptions. refine_prompt includes comprehensive guidance on WHEN/SKIP FOR and monorepo handling. However, schema completeness is mixed: refine_prompt has full Zod schemas with descriptions, but get_refinement_rules lacks input parameter descriptions. Output schemas are not documented, LLMs cannot predict return structure. Error handling is absent; no recovery guidance or categorization. Parameter descriptions are strong (target_files, context_files explain monorepo routing), but missing output documentation and error cases significantly limit production readiness.
Returns Promptly's rules. Only call if the user asks how Promptly works.
Analyzes the codebase and rewrites a coding prompt with project context baked in. Detects intent (create/fix/refactor/explain/configure/test) and tailors the rewrite accordingly. WHEN TO CALL: Any prompt to write, fix, refactor, explain, or configure code. SKIP FOR: General chat, math, non-coding questions. In monorepos, pass target_files (paths the user mentioned or files the prompt is about) so Promptly narrows analysis to the right sub-package. Pass context_files for files you have open but weren't explicitly named — they give relevance scoring a real anchor. Returns a rewritten prompt. Execute it instead of the original.
Output schemas not documented. LLMs cannot predict return structure (refined prompt text, metadata, etc.). Agents cannot plan downstream actions or extract fields reliably.
No error handling or recovery guidance. If codebase analysis fails, git command times out, or project_path is invalid, LLM receives no actionable error message or retry strategy.
get_refinement_rules input parameter 'agent' lacks description. LLM cannot determine when to pass 'claude_code' vs 'cursor' vs 'generic' or what each choice affects.
refine_prompt accepts project_path as string with no validation guidance. No mention of absolute vs relative paths, symlink handling, or what happens if path doesn't exist.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
No idempotency guarantee documented. If refine_prompt is called twice with identical inputs, does it return identical output? Agents retry on ambiguous failures, non-idempotent tools risk duplicate refinements.