Prompt Refiner MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Prompt Refiner MCPRefine this prompt for clarity and constraints: 'Write a blog post about AI'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Prompt Refiner MCP
Built openly by TechQuanta Community. Contributions are welcome through the repository's issues and pull requests.
An independent FastMCP server for Prompt Refiner's one-prompt plus optional controls contract. It refines prompt intent, structure, constraints, and output instructions before a prompt reaches an LLM. It never calls an AI provider, reads local files, or runs generated prompts.
Run
python -m venv .venv
.venv\Scripts\activate
python -m pip install -e .
prompt-builder-mcpMCP client configuration:
{"mcpServers":{"prompt-builder":{"command":"prompt-builder-mcp"}}}Tools: get_schema, validate_brief, and build_prompt_variants.
Before connecting a client, inspect the server locally:
prompt-builder-mcp --list-tools
prompt-builder-mcp --schemaRelated MCP server: PromptArchitect MCP
Horizon Deploy
Use the repository form with these values:
Field | Value |
Server name |
|
Entrypoint |
|
Requirements |
|
Transport | Streamable HTTP |
The root server.py adds the src/ package path, binds to HOST (default
0.0.0.0) and PORT (default 8000), and serves the MCP endpoint at
/mcp. It is intended for hosted deployment and does not replace the local
stdio entry point.
For local HTTP testing:
python server.pyFor a local stdio client:
prompt-builder-mcpAvailable Tools
3 toolsbuild_prompt_variantsC
Build focused, detailed, and structured prompt variants without calling an LLM.
| Name | Required | Description | Default |
|---|---|---|---|
| brief | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that no LLM call happens, which manages cost and latency expectations, but it does not describe side effects, output shape, error behavior, or how the brief is processed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence with no filler, and it front-loads the core action and the important no-LLM distinction. However, it is so short that it misses operational details, though that is more a completeness concern than a conciseness flaw.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The output schema exists and can document return values, but the input semantics are severely under-specified øg and no annotations compensate. The description does not say what belongs in 'brief', what a 'prompt variant' concretely looks like, or when this tool is preferable to its siblings.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% and the single parameter 'brief' has no property descriptions, only additionalProperties: true. The description never mentions 'brief' or explains what structure should be passed, so an agent has almost no guidance for constructing a valid input.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: 'Build focused, detailed, and structured prompt variants.' The phrase 'without calling an LLM' further clarifies its role and separates it from siblings get_schema and validate_brief.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided about when to use this tool versus get_schema or validate_brief. The 'without calling an LLM' clause implies a context but does not state preconditions, exclusions, or alternatives explicitly.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_schemaA
Return the JSON schema for a deterministic prompt brief.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It clearly indicates a read operation ('Return') and does not imply any side effects. However, it does not explicitly state that it is non-destructive or requires any special context, though for a simple get this is likely sufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-formed sentence with no filler. It is front-loaded with the action and object, making it immediately scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is extremely simple (no parameters, no nested objects, has an output schema). The description fully explains what it does, and the output schema itself documents the return structure. Nothing essential is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so the schema covers 100% of parameter semantics vacuously. The description adds no parameter information, but none is needed. Per calibration, a baseline of 4 is appropriate for zero-parameter tools.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a clear verb 'Return' and a specific resource 'JSON schema for a deterministic prompt brief'. It is immediately distinct from sibling tools like validate_brief and build_prompt_variants, which focus on validation and generation rather than retrieval of a schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given on when to use this tool versus the siblings. Since the tool has zero parameters and a narrow purpose, an agent might still benefit from a note that this is for retrieving the schema before validating or building variants, but none is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
validate_briefC
Validate a prompt brief and report its completeness score.
| Name | Required | Description | Default |
|---|---|---|---|
| brief | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of disclosing behavior. It only states that it validates and reports a score, but gives no details about the validation criteria, whether the operation is read-only, potential side effects, or the nature of the output beyond a score. This is a significant gap for a tool that processes arbitrary object input.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, compact sentence that is easy to parse and front-loads the core purpose. There is no extraneous wording, and it is appropriately sized for a simple tool, though it sacrifices depth for brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has a nested object parameter and an output schema, the description is too sparse to be complete. It does not explain the semantics of a prompt brief, the meaning of the completeness score, or how the output schema relates to the validation. An agent would need additional context to use it confidently.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema defines a single parameter 'brief' as an object with additionalProperties true, but provides no description. The tool description does not clarify what a 'prompt brief' is, what structure is expected, or what properties are relevant. With 0% schema description coverage, the description fails to compensate, leaving the agent with no guidance on how to construct valid input.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (validate a prompt brief) and the result (report a completeness score). It is specific about the verb and resource, and although it does not explicitly differentiate from sibling tools, the purpose is distinct from get_schema (retrieving schema) and build_prompt_variants (generating variants), so an agent can infer its role.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus the siblings or in what workflow context it should be invoked. There is no mention of prerequisites, when validation is appropriate, or what happens if the brief is incomplete. The agent is left to infer usage from the purpose.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v0.2.0- First observed
build_prompt_variants - First observed
get_schema - First observed
validate_brief
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: retrieving the schema, validating a brief, and generating prompt variants. There is no meaningful overlap or ambiguity between them.
All tool names follow a consistent verb_noun snake_case pattern: get_schema, validate_brief, build_prompt_variants. The naming is predictable and uniform.
Three tools is a reasonable, focused count for a narrow domain like prompt refining. Each tool serves a distinct step in the workflow without unnecessary bloat.
The toolset covers the full core workflow: understanding the schema, validating input, and producing the deliverable. No obvious missing operations are needed for the stated purpose.
Maintenance
Related MCP Connectors
- PromptOTOAuthcom.promptot
Manage, version, and publish LLM prompts with blocks, variables, and evaluations.
PQS scores any prompt before the model runs. 8 dimensions. 5 frameworks. Pre-flight, not post-hoc.
Generate contextual prompts and reusable agent skills, evaluate prompts with the 16-dimension Prompt Score, and manage saved work in PromptDrive. Twelve MCP tools also provide authorized access to private Memory for source-grounded answers. Connect over Streamable HTTP using OAuth 2.1 and PKCE. Generation consumes account quota and automatically saves successful results; Memory access follows account permissions and plan limits.
Your prompt library inside your AI: 1,000+ pro templates, frameworks, vocab & pipelines.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnhances and cleans raw prompts using AI to make them more clear, actionable, and effective. Provides quality assessment, suggestions, and supports both general and code-specific optimization modes.1MIT
- FlicenseAqualityCmaintenanceRefines and improves AI prompts using workspace-aware context from your project's tech stack, structure, and dependencies. Includes tools to analyze prompt quality and generate well-structured prompts from raw ideas.4209 npm5-
- AlicenseNot gradedqualityCmaintenanceRefines and optimizes prompts for LLMs through adaptive questioning and intelligent clarification workflows. Supports multiple AI providers (Google, OpenAI, Anthropic, Groq, Qwen) with interactive prompt enhancement and targeted modifications.17MIT
- AlicenseBqualityDmaintenanceAutomatically analyzes and optimizes AI prompts by calculating clarity scores, detecting risks, asking clarifying questions, and adding domain-specific requirements to improve AI interaction quality.1MIT