Skip to main content
Glama

build_prompt

Generate Stable Diffusion prompts from character names by analyzing Gelbooru tag frequency data to create accurate image generation strings.

Instructions

Given a character name, returns a ready-to-use image-generation prompt string like 'misty (pokemon), green eyes, orange hair, side ponytail, ...'. Internally calls get_character_tags with caching, then assembles the prompt with tags ordered by frequency (eye → hair → other).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
character_nameYesThe Gelbooru tag for the character, e.g. 'misty_(pokemon)'. Use underscores as Gelbooru does.
max_imagesNoPosts to analyse (default 300). Cached after first fetch.
include_otherNoWhether to include non-eye/hair tags (clothing, accessories, etc.) in the prompt. Default true.
Behavior4/5

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

With no annotations provided, the description carries the full burden and discloses key behavioral traits: it describes the internal process (calls get_character_tags with caching), output assembly (tags ordered by frequency), and caching behavior ('cached after first fetch'). It lacks details on error handling or performance, but covers core operations well.

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

Conciseness5/5

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

The description is appropriately sized and front-loaded, starting with the core purpose and following with implementation details. Every sentence adds value: the first states the output, the second explains the internal process and tag ordering. No wasted words.

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 the tool's moderate complexity (3 parameters, no output schema, no annotations), the description is mostly complete. It explains the tool's purpose, behavior, and output format. However, it lacks details on error cases or the exact format of the returned prompt string, leaving some gaps for an agent.

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 schema already documents all parameters thoroughly. The description adds minimal value beyond the schema, only implying that character_name uses Gelbooru tags and mentioning caching for max_images. Baseline 3 is appropriate as the schema does the heavy lifting.

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 ('returns a ready-to-use image-generation prompt string') and resources ('given a character name'). It distinguishes from sibling tools by mentioning internal calls to get_character_tags and specifying the output format, which is unique among the listed siblings.

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 context for when to use this tool ('given a character name') and implies usage for image-generation prompts. However, it does not explicitly state when not to use it or name alternatives among siblings, such as when raw tag data from get_character_tags might be preferred.

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/citronlegacy/gelbooru-mcp'

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