Skip to main content
Glama

AI prompt builder

hopi_ai_prompt_builder
Read-onlyIdempotent

Build a well-structured prompt to paste into an AI chatbot or image generator. Give the task plus any of: the role the AI should take, background, audience, tone, format, length, things to avoid, an example of good output, and material to work on (for summarise, analyse and code tasks). taskType image switches to style, lighting, composition and aspect ratio instead. target formats the prompt for 'chatgpt' (Markdown headings, the task repeated after long material, as OpenAI's guidance suggests), 'claude' (XML tags with long material first and the task last, as Anthropic recommends), 'gemini' (Markdown with the question after the context, as Google recommends) or 'any'. Returns the prompt, a checklist of which parts are present, vague words found, and the word count with a rough token estimate (characters divided by 4). Nothing is sent to any AI. Source: https://hopi.co.uk/ai-prompt-builder/

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task": "<task>"
    },
    "name": "hopi_ai_prompt_builder"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoWho the AI should be, e.g. 'A UK consumer rights adviser'
taskYesWhat the AI should do (for images: what the image should show)
toneNoTone of voice
avoidNoThings the AI should avoid
styleNoImage style (image tasks only)
formatNoOutput format
lengthNoLength: one sentence, one short paragraph, under 100/250/500 words, about 1,000 words, or as long as it needs
targetNoWhich AI to format the prompt for; default any (ignored for images)
contextNoBackground the AI needs: the situation, facts and figures
exampleNoA short example of what good output looks like
audienceNoWho the result is for
languageNoProgramming language and tools (code tasks only)
lightingNoLighting and mood (image tasks only)
materialNoText, data or code to work on (used for summarise, analyse and code)
taskTypeNoKind of task; default write
aspectRatioNoImage aspect ratio (image tasks only)
compositionNoComposition and camera, e.g. 'close-up, low angle' (image tasks only)
askQuestionsNoAsk the AI to ask clarifying questions before it starts
explainReasoningNoAsk the AI to explain its main choices after answering

Output Schema

NameRequiredDescriptionDefault
wordsYes
checksYes
promptYes
targetYes
missingYes
summaryYes
taskTypeYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
vagueWordsYes
tokensApproxYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, not open-world), yet the description still adds real behavioral detail: 'Nothing is sent to any AI', and the return contents (the prompt, a presence checklist, vague words found, word count with tokens estimated at characters/4). It also discloses the per-target formatting rules, which an agent could not infer from any structured field.

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?

Front-loaded with the purpose and two modes, and no sentence is filler. It is, however, a single dense paragraph carrying a lot of enumerations that would scan better as a list, and the source URL trailing the text adds little for an agent.

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

Completeness4/5

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

Given an output schema exists, return values needn't be explained, yet the description still summarizes them well, and the taxonomy of prompt parts plus the target-specific formatting rules make the tool fully usable. Minor gaps: the askQuestions, explainReasoning and language parameters are never mentioned in the description, and their effect on the generated prompt is left to the schema.

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 does add value by grouping parameters into text-task vs. image-task sets and spelling out what 'target' actually changes (Markdown headings plus task repeated for chatgpt, XML tags with material first for claude, question after context for gemini), which is genuinely beyond the schema's one-line enum descriptions.

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?

States a concrete verb and artifact: 'Build a well-structured prompt to paste into an AI chatbot or image generator.' No sibling in the tool list does anything similar, and the description immediately names the two modes (text task vs. image task), so an agent can identify it unambiguously.

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?

Gives clear invocation context ('Give the task plus any of: role, background, audience, tone, format, length, avoid, example, material') and an explicit conditional branch: 'taskType image switches to style, lighting, composition and aspect ratio instead.' What's missing is any when-not-to-use guidance, but with no near-alternative in the catalogue there is little to route against.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources