Skip to main content
Glama

enhance_prompt

Rewrites prompts to achieve higher scores on target AI generation models, delivering a structured brief with analysis and priorities for crafting enhancements.

Instructions

Rewrite a prompt using AI to score higher on the target model.

Returns a rewrite brief — YOU (the LLM) write the enhanced prompt from it.

Dali provides creative intelligence: what's missing, the model's native language rules, structure template, priority fixes, and length target. You provide creative execution: actually writing the better prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesTarget generation model (veo3, seedance, kling, runway, wan, minimax, higgsfield, sora, flux, midjourney, ideogram, firefly, imagen)
promptYesThe prompt to enhance

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It transparently explains that the tool returns a rewrite brief and that the agent must perform the actual rewriting. It details the content of the brief. It does not mention any destructive behavior or side effects, which are not applicable here.

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 efficiently structured with a front-loaded action statement followed by key details about the output and agent's role. It is not overly long, though the second paragraph could be slightly more concise.

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

Completeness5/5

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

Given the tool's simplicity (2 params) and presence of an output schema, the description is complete. It explains the output format (rewrite brief with elements like missing, rules, template, fixes, length target) and the agent's responsibility, leaving no significant gaps.

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 coverage is 100%, so the baseline is 3. The description adds little beyond the schema: it mentions 'target model' and 'prompt to enhance', but the schema already provides descriptions for both parameters. No additional semantics.

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: to rewrite a prompt for higher scoring on a target model. It uses specific verbs ('rewrite', 'enhance') and resources ('prompt', 'target model'), and implicitly distinguishes from siblings like 'score_prompt' which only scores.

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

Usage Guidelines4/5

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

The description provides clear guidance on how to use the tool's output: the agent receives a rewrite brief and must write the enhanced prompt themselves. It explains the division of labor between Dali and the LLM. However, it does not explicitly state when to use this tool versus alternatives like 'score_and_enhance'.

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/Lulu-The-Narwhal/dali-mcp'

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