AI prompt builder
hopi_ai_prompt_builderBuild 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
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Who the AI should be, e.g. 'A UK consumer rights adviser' | |
| task | Yes | What the AI should do (for images: what the image should show) | |
| tone | No | Tone of voice | |
| avoid | No | Things the AI should avoid | |
| style | No | Image style (image tasks only) | |
| format | No | Output format | |
| length | No | Length: one sentence, one short paragraph, under 100/250/500 words, about 1,000 words, or as long as it needs | |
| target | No | Which AI to format the prompt for; default any (ignored for images) | |
| context | No | Background the AI needs: the situation, facts and figures | |
| example | No | A short example of what good output looks like | |
| audience | No | Who the result is for | |
| language | No | Programming language and tools (code tasks only) | |
| lighting | No | Lighting and mood (image tasks only) | |
| material | No | Text, data or code to work on (used for summarise, analyse and code) | |
| taskType | No | Kind of task; default write | |
| aspectRatio | No | Image aspect ratio (image tasks only) | |
| composition | No | Composition and camera, e.g. 'close-up, low angle' (image tasks only) | |
| askQuestions | No | Ask the AI to ask clarifying questions before it starts | |
| explainReasoning | No | Ask the AI to explain its main choices after answering |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | Yes | ||
| checks | Yes | ||
| prompt | Yes | ||
| target | Yes | ||
| missing | Yes | ||
| summary | Yes | ||
| taskType | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| vagueWords | Yes | ||
| tokensApprox | Yes |