Skip to main content
Glama

refine_prompt

Transform raw prompts into clearer, more detailed versions with better structure to improve LLM results. Enhances AI interactions by adding context and requirements.

Instructions

This tool MUST be used whenever a user asks to refine, rewrite, improve, enhance, or optimize a prompt. It transforms raw prompts into more effective versions that are clearer, more detailed, and better structured to improve results from Large Language Models (LLMs). When users mention 'refine prompt' or similar phrases, use this tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe raw user prompt that needs rewriting.
languageNoOptional: The primary programming language if the prompt is code-related (e.g., typescript, python). Helps tailor coding prompts.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It describes the tool's function and transformation process but lacks details on behavioral traits such as rate limits, error handling, or output format. The description doesn't contradict annotations (none exist), but it provides only basic operational context without deeper behavioral insights.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose stated in the first sentence. Each sentence adds value: the first defines the tool's function, the second explains the transformation, and the third provides usage triggers. There's minimal redundancy, though it could be slightly more concise by combining some phrases without losing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description covers purpose and usage well but lacks details on behavioral aspects and output. It doesn't explain what the refined prompt looks like or any constraints, which would be helpful since no output schema exists. This makes it adequate but with gaps in completeness for an agent's full understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the input schema already documents both parameters thoroughly. The description doesn't add any additional meaning or context beyond what the schema provides (e.g., no examples, edge cases, or usage tips for parameters). This meets the baseline score of 3, as the schema handles parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('refine, rewrite, improve, enhance, or optimize a prompt') and identifies the resource ('prompt'). It explicitly distinguishes what the tool does ('transforms raw prompts into more effective versions') and how it achieves this ('clearer, more detailed, and better structured to improve results from LLMs'). No siblings exist, but the description is comprehensive and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidelines with clear triggers ('whenever a user asks to refine, rewrite, improve, enhance, or optimize a prompt') and specific phrases to watch for ('refine prompt' or similar phrases). It directly states 'MUST be used' for these cases, offering definitive when-to-use instructions. Since no sibling tools exist, no alternative guidance is needed, making this complete for the context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FelippeFarias/refine-prompt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server