Skip to main content
Glama

anime-diffusion-mcp

MCP server for anime image generation with Animagine XL 4.0. Gives AI agents four tools: validate and optimize Danbooru-style prompts, list local models, and generate images (text-to-image or image-to-image) with custom checkpoints and LoRAs.

Requirements

  • Python 3.11+

  • NVIDIA GPU with ~7 GB VRAM recommended (CPU works, but is very slow)

  • ~7 GB of disk for the base model (downloaded from HuggingFace on first generation)

Related MCP server: FastMCP

Installation

git clone https://github.com/gabrielalmir/anime-diffusion-mcp.git
cd anime-diffusion-mcp
python -m venv .venv
# Windows: .venv\Scripts\activate  |  Linux/macOS: source .venv/bin/activate
pip install -e .

For CUDA, install the matching PyTorch build first (see https://pytorch.org/get-started/locally/), then pip install -e ..

MCP client configuration

Add the server to your MCP client (Claude Desktop, Claude Code, Cursor, ...). See .mcp.json.example:

{
  "mcpServers": {
    "anime-diffusion": {
      "command": "anime-diffusion-mcp",
      "env": { "CUDA_VISIBLE_DEVICES": "0" }
    }
  }
}

If the client doesn't inherit your virtualenv, point command at the venv script, e.g. C:/path/to/.venv/Scripts/anime-diffusion-mcp.exe.

The server runs over stdio and uses the current working directory for checkpoints/, loras/ and outputs/, so launch it from the project folder (or set cwd in the client config).

Tools

Tool

Purpose

validate_prompt(prompt, width, height, negative_prompt)

Check a prompt against Animagine XL rules: quality tags present and last, 8+ tags, character/series consistency, resolution risk. Returns valid, issues, suggestions.

optimize_prompt(description | prompt)

Reorder tags into canonical order (subject → character → series → appearance → composition → environment → style → quality) and fill missing essentials. Returns optimized_prompt, actions, warnings.

list_models()

Discover checkpoints in checkpoints/ and LoRAs in loras/.

generate_image(prompt, ...)

Generate an image. Pass image_path for img2img. Supports checkpoint, loras + lora_scales, width/height, steps, guidance_scale, seed, render_type.

Typical agent flow: optimize_promptvalidate_promptgenerate_image.

generate_image example

{
  "prompt": "1girl, solo, hatsune miku, vocaloid, long hair, twintails, smile, upper body, city night, neon lights, masterpiece, best quality, very aesthetic, absurdres",
  "width": 832,
  "height": 1216,
  "steps": 28,
  "guidance_scale": 5.0,
  "seed": 42
}

Add "image_path": "C:/path/to/source.png", "strength": 0.5 for image-to-image (output size follows the source). Add "loras": ["my_style.safetensors"], "lora_scales": [0.8] to apply LoRAs — they are applied per call; a call without loras runs on the bare checkpoint.

Set "render_type": "gpu" to abort instead of silently falling back to a slow CPU render when CUDA isn't available.

Models

  • Base model: cagliostrolab/animagine-xl-4.0, fetched from HuggingFace (cached in ~/.cache/huggingface).

  • Custom checkpoints: drop SDXL .safetensors files into checkpoints/ and reference them by filename.

  • LoRAs: drop .safetensors files into loras/. Multiple LoRAs can be combined with independent scales.

Outputs

Images are written to outputs/YYYY-MM-DD/anime_HHMMSS.png with a sidecar .json containing prompt, negative prompt, seed, size, steps, guidance, checkpoint, LoRAs and render type — enough to reproduce the image.

Prompt rules (short version)

Animagine XL 4.0 expects Danbooru-style comma-separated tags:

  1. End with quality tags: masterpiece, best quality, very aesthetic, absurdres.

  2. Start with subject count (1girl, 1boy, 2girls, ...).

  3. Character tags should be followed by their series tag.

  4. Aim for 8+ tags; order: subject → character → series → appearance → composition → environment → style → quality.

  5. Use the default negative prompt unless you have a reason not to.

validate_prompt and optimize_prompt enforce these for you.

Development

pip install -e .
python -c "from anime_diffusion_mcp.server import mcp; print(mcp.name)"

Package layout:

src/anime_diffusion_mcp/
├── server.py        # FastMCP tools
├── prompt/          # tokenizer, classifier, validator, optimizer
├── diffusion/       # ImagePipeline (Diffusers wrapper, checkpoint/LoRA handling)
└── contracts/       # Pydantic schemas and error codes

License

MIT — see LICENSE.

Model by Cagliostro Research Lab. Built with FastMCP and Diffusers.

Available Tools

8 tools
explain_promptA

Explain what each tag in a prompt does.

Breaks down the prompt into individual tags with:

  • Category classification (quality, composition, character, etc.)

  • Explanation of what each tag affects

  • Canonically ordered version of the prompt

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYesThe prompt to explain

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.1/5.0
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. It transparently discloses the tool's behavior: breaking the prompt into tags, classifying them, explaining their effects, and producing a canonical ordering. This gives the agent a clear picture of what happens, though it doesn't explicitly state that it's a safe, read-only operation.

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 concise and well-structured: a one-sentence purpose statement followed by a tight bullet list of output components. Every line adds value without redundancy or excess length.

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 low complexity (one parameter, no annotations, output schema exists), the description covers all necessary aspects: the input prompt, the breakdown process, and the key output elements (classification, explanation, canonical order). The presence of an output schema relieves the description from specifying return format, so this is complete.

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?

The single parameter 'prompt' is fully described in the schema with 'The prompt to explain' (100% coverage). The description adds context about how the prompt is processed (broken into tags) but does not add new format or constraint details beyond the schema, so baseline 3 applies.

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 uses a specific verb ('Explain') and identifies the resource ('each tag in a prompt'), then elaborates with concrete deliverables (category classification, explanation, canonical ordering). This clearly distinguishes it from siblings like validate_prompt and optimize_prompt.

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

Usage Guidelines3/5

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

The description implies usage for understanding prompt tags but does not explicitly state when to use this tool versus alternatives like validate_prompt or optimize_prompt. No exclusions or alternative recommendations are provided.

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

generate_imageA

Generate an image with Animagine XL 4.0.

Uses the Diffusers pipeline with the lpw_stable_diffusion_xl custom pipeline. Images are saved to outputs/YYYY-MM-DD/ with accompanying metadata JSON.

Supports custom checkpoints and LoRA mixing for style control.

Recommended workflow:

  1. list_models → see available checkpoints and LoRAs

  2. validate_prompt → check for issues

  3. optimize_prompt → improve structure

  4. generate_image → create the image

ParametersJSON Schema
NameRequiredDescriptionDefault
seedNoRandom seed for reproducibility (random if not set)
lorasNoList of LoRA filenames to apply (in order). Examples: ["custom_lora.safetensors"] (user's local LoRAs)
stepsNoInference steps (default 28, use 4-8 with LCM LoRA)
widthNoImage width (default 832, portrait)
heightNoImage height (default 1216, portrait)
promptYesThe positive prompt (pre-validated recommended)
checkpointNoCheckpoint filename or 'default' for HuggingFace model. Examples: "custom_checkpoint.safetensors" (user's local checkpoint)
lora_scalesNoScale/strength per LoRA (0.0-2.0, defaults to 1.0 for each). Example: [0.8, 0.5] for two LoRAs
render_typeNoOptional render type specification ('gpu' or 'cpu'). If specified and doesn't match detected device, renders are aborted to prevent slow processing.
guidance_scaleNoCFG scale (default 5.0, use 1.5 with LCM LoRA)
negative_promptNoOptional; defaults to standard negative prompt

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It reveals that images are saved to outputs/YYYY-MM-DD/ with metadata JSON and that it uses a custom Diffusers pipeline, which are useful side effects. It does not describe failure modes or rate limits, but these are partially addressed by the schema (e.g., render_type).

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 front-loaded with a clear purpose, followed by relevant technical details and a valuable workflow. Each sentence contributes meaning, though the middle section about the pipeline and file output could be slightly tighter without losing key information.

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 complexity of an 11-parameter image generation tool, the description covers the model, pipeline, file output, and recommended workflow, making it quite thorough. The presence of an output schema handles return values. Minor gaps remain around explicit error handling and resource costs, but overall it is complete enough 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 baseline 3 is appropriate. The description adds context about custom checkpoints and LoRA mixing, but these already map directly to schema parameters. It does not enrich parameter meaning beyond what the schema already provides.

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 opens with 'Generate an image with Animagine XL 4.0', which is a specific verb and resource, clearly distinguishing this tool from siblings like generate_image_from_image. It also states the model and pipeline used, making the tool's main function unambiguous.

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 a recommended workflow with explicit steps (list_models → validate_prompt → optimize_prompt → generate_image), giving clear guidance on when to invoke this tool. However, it does not explicitly state when not to use it or mention alternative tools for similar tasks.

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

generate_image_from_imageA

Generate an image using img2img (image-to-image) transformation.

Takes an existing image and transforms it based on the prompt while preserving structure according to the strength parameter.

Use cases:

  • Style transfer (apply anime/comic/realistic style to photo)

  • Image refinement (improve details, fix artifacts)

  • Pose/composition preservation (keep layout, change style)

  • Character consistency (transform existing character art)

ParametersJSON Schema
NameRequiredDescriptionDefault
seedNoRandom seed for reproducibility (random if not set)
lorasNoList of LoRA filenames to apply (in order)
stepsNoInference steps (default 28, use 4-8 with LCM LoRA)
promptYesThe positive prompt describing desired output
strengthNoDenoising strength (0.0-1.0). Controls how much to change. - 0.0-0.3: Minor refinements, preserve most details - 0.3-0.5: Moderate changes, good for style transfer - 0.5-0.7: Significant changes, keeps composition - 0.7-1.0: Major transformation, only basic structure preserved
checkpointNoCheckpoint filename or 'default' for HuggingFace model
image_pathYesAbsolute path to source image to transform
lora_scalesNoScale/strength per LoRA (0.0-2.0, defaults to 1.0)
render_typeNoOptional render type specification ('gpu' or 'cpu'). If specified and doesn't match detected device, renders are aborted to prevent slow processing.
guidance_scaleNoCFG scale (default 5.0)
negative_promptNoOptional; defaults to standard negative prompt

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It explains the core transformation behavior and the role of the strength parameter in preserving structure. However, it does not mention side effects, resource requirements, or how the original image is handled. It provides moderate transparency without contradictions.

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 concise and well-structured. It opens with a clear definition, follows with a mechanistic explanation, and then lists use cases in bullet form. Every sentence adds value, and the key purpose is front-loaded.

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?

The description is complete enough for a complex tool with an output schema (return values not needed). It covers purpose, transformation behavior, and use cases. Missing details like explicit alternative guidance or prerequisites are minor gaps, but the provided context is substantial.

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 all parameters have descriptions. The tool description adds some context about strength preserving structure, but it does not add meaningful semantics beyond the schema. It does not explain the interplay of parameters like loras with strength or steps, so it stays at the baseline.

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 function: 'Generate an image using img2img (image-to-image) transformation.' It specifies the resource (an existing image) and the transformation based on prompt and strength. This distinguishes it from the sibling tool generate_image (which is presumably text-to-image).

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 a clear context for use with four explicit use cases (style transfer, image refinement, pose/composition preservation, character consistency). However, it does not explicitly state when not to use this tool or name alternatives, though the distinction from generate_image is implied by 'takes an existing image.'

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

list_modelsA

List available checkpoints and LoRAs for image generation.

Returns all available models with metadata:

  • checkpoints: Base models (Animagine XL)

  • loras: Style modifiers and speed optimizations

Use this to discover what models are available before generation.

Returns: Dictionary with checkpoints, loras, default_checkpoint, and currently_loaded

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It explains the return format: 'Dictionary with checkpoints, loras, default_checkpoint, and currently_loaded' and provides examples of content types. It also implies a read-only operation, though it does not explicitly state side-effect-free behavior.

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 well-structured with a clear opening, bullet list, usage tip, and return summary. It is slightly redundant between the first sentence and the 'Use this to discover' line, but overall it is efficiently composed.

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?

For a simple no-parameter listing tool, the description covers the purpose, usage context, and output shape. An output schema exists, so the description does not need to detail return values further; it is complete within the scope of the tool.

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

Parameters4/5

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

The tool has zero parameters and the schema is fully covered (100%), so the description has no parameters to explain. The baseline for 0 params is 4, and the description adds no unnecessary parameter info.

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 'List available checkpoints and LoRAs for image generation', which is a specific verb+resource. It distinguishes the tool from siblings like load_checkpoint or generate_image by focusing on discovery rather than loading or generating.

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?

It gives explicit usage context: 'Use this to discover what models are available before generation.' This tells the agent when to invoke this tool (prior to generation) and implies it is complementary to loading/generating siblings, though it does not explicitly exclude alternatives.

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

load_checkpointA

Pre-load a checkpoint into GPU memory.

Loading a checkpoint in advance speeds up subsequent generation calls. Use list_models() to see available checkpoints.

ParametersJSON Schema
NameRequiredDescriptionDefault
checkpointNoFilename from checkpoints/ folder (e.g., "custom_checkpoint.safetensors"). Use 'default' or None for Animagine XL 4.0 from HuggingFace.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description must disclose behavioral traits itself. It mentions the side effect of loading into GPU memory and the benefit of speed, but doesn't cover failure modes, memory implications, or whether it replaces an existing checkpoint. This is acceptable but not comprehensive.

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?

Two short sentences with the action stated up front. No filler or redundant information. Every sentence contributes value: the first states the purpose, the second explains the benefit and gives a practical hint.

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?

For a tool with a single optional parameter and an output schema present, the description is nearly complete. It covers what the tool does, why to use it, and how to find valid inputs. It doesn't mention that pre-loading might be optional or that generation may auto-load, but this is a minor gap given the tool's simplicity.

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?

The input schema provides 100% coverage of the parameter, including default value and examples. The description adds no additional parameter semantics beyond what the schema already documents. The pointer to list_models() is helpful but not required.

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 action: 'Pre-load a checkpoint into GPU memory.' This is a specific verb+resource combination that distinguishes it from siblings like list_models or generate_image. No other sibling tool performs checkpoint loading, so there is no ambiguity about its purpose.

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?

It explicitly says loading in advance speeds up generation calls, which implies it should be used before generate_image. It also directs users to list_models() to discover valid checkpoints, providing practical usage guidance. It doesn't mention when not to use it, but for a simple pre-loading tool, this context is sufficient.

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

optimize_promptA

Optimize a prompt for Animagine XL.

Provide either a natural language description or an existing prompt. The optimizer will:

  • Reorder tags by canonical category order

  • Move quality tags to the end

  • Add missing essential categories (composition, environment, quality)

ParametersJSON Schema
NameRequiredDescriptionDefault
promptNoExisting tag-based prompt to optimize
descriptionNoNatural language description to convert to tags

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.4/5.0
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 explicitly discloses the optimizer's behavior (reordering tags, moving quality tags, adding missing categories). It doesn't cover edge cases like both inputs being provided, but the primary transformations are transparent.

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 efficiently structured: a one-line purpose, a one-line input instruction, and a concise bullet list of actions. Every element earns its place, and the purpose is front-loaded.

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?

With an output schema present and only two optional parameters, the description covers the essential context: input modes and processing steps. It omits potential conflict behavior (e.g., if both inputs are provided), but this is a minor gap given the tool's simplicity.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds value by clarifying that 'prompt' and 'description' are alternative inputs ('Provide either...') and by explaining how each feeds into the optimization process. This goes beyond the schema's simple field 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?

The description clearly states a specific action ('Optimize a prompt') and the target model ('Animagine XL'), then lists concrete transformation steps. This differentiates it from siblings like validate_prompt and explain_prompt by specifying exactly what optimization entails.

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 gives clear input options ('Provide either a natural language description or an existing prompt') and implies the use case of improving prompt structure. It doesn't explicitly mention when not to use it or alternatives, but the context is clear enough.

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

unload_lorasA

Unload all LoRA weights from the current pipeline.

Useful to reset to base checkpoint style without reloading the full model. This is faster than reloading the checkpoint.

Returns: Status with success, unloaded_count, and message

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
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. It discloses the scope ('all LoRA weights'), the purpose (reset to base style), a performance characteristic (faster than reload), and the return payload (success, unloaded_count, message). It could further elaborate on edge cases (e.g., behavior when no LoRA is loaded), but otherwise provides solid behavioral disclosure.

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 extremely concise, using only three short paragraphs. The primary action is front-loaded in the first sentence, followed by use-case justification and a brief return specification. Every sentence earns its place, with no fluff or redundancy.

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?

This is a simple, zero-parameter tool, and the description covers all essential aspects: purpose, when to use, performance advantage, and return values. The presence of an output schema handles the return structure, so the description's summary is sufficient for an agent to select and invoke the tool correctly.

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

Parameters4/5

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

There are zero parameters, so the description need not explain any. Per the rubric, 0 params yields a baseline of 4, and the description adds no conflicting info. The schema coverage is 100% vacuously, so no additional parameter clarification is needed.

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 action with a specific verb ('Unload') and resource ('all LoRA weights from the current pipeline'). It unambiguously distinguishes itself from siblings like load_checkpoint and generate_image by focusing on removing LoRA weights.

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?

Explicitly explains when to use it ('reset to base checkpoint style') and why it's preferable to an alternative ('faster than reloading the checkpoint'). Though it doesn't name the specific sibling tool, the comparison to reloading is concrete and actionable, giving strong contextual guidance.

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

validate_promptA

Validate a prompt against Animagine XL rules.

Checks for:

  • Required quality tags (masterpiece, best quality, etc.)

  • Proper tag ordering (quality tags at end)

  • Minimum tag count (8+ recommended)

  • Character/series consistency

  • Resolution compatibility

ParametersJSON Schema
NameRequiredDescriptionDefault
widthNoTarget image width (default 832)
heightNoTarget image height (default 1216)
promptYesThe prompt to validate
negative_promptNoOptional negative prompt to check

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the full burden. It lists the checks performed, which gives some behavioral insight, but does not disclose whether the tool is read-only, what it returns (e.g., pass/fail, issues list), or any side effects. The presence of an output schema is noted but its content is not described. More detail on output behavior would improve transparency.

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 concise and well-structured: a single opening sentence with the verb and resource, followed by a bulleted list of checks. Every line adds value, and the content is front-loaded with the core purpose immediately.

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 has 4 parameters and an output schema, the description covers the main validation checks but lacks guidance on when to use it relative to siblings and does not describe expected output behavior (though output schema exists). No annotations add further gaps. It is adequate but not rich enough for complete agent decision-making.

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 baseline is 3. The description adds context about prompt validation rules, which complements the prompt parameter, and mentions resolution compatibility, which relates to width/height. However, it does not add detailed semantics beyond the schema for negative_prompt or width/height.

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: 'Validate a prompt against Animagine XL rules.' It lists specific checks (quality tags, ordering, tag count, consistency, resolution), making the scope precise. This distinguishes it from sibling tools like optimize_prompt (which improves) and explain_prompt (which explains).

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

Usage Guidelines3/5

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

The description implies usage by listing validation checks, but it does not explicitly say when to use this tool versus alternatives. For instance, it does not mention using this before generation or that optimize_prompt is for adjustments. No explicit when/when-not guidance is provided, only implied context.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 8 tool updatesv0.1.0
    • First observedexplain_prompt
    • First observedgenerate_image
    • First observedgenerate_image_from_image
    • First observedlist_models
    • First observedload_checkpoint
    • First observedoptimize_prompt
    • First observedunload_loras
    • First observedvalidate_prompt

TDQS

A4.2/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a distinct operation: prompt validation, optimization, explanation, model listing, checkpoint loading, LoRA unloading, text-to-image, and image-to-image. No two tools overlap in purpose, and the descriptions make the boundaries clear.

Naming Consistency5/5

All tools use a consistent verb_noun pattern in snake_case (validate_prompt, list_models, generate_image). The only slightly longer name is generate_image_from_image, but it follows the same convention clearly.

Tool Count5/5

Eight tools cover the core workflow of prompt preparation, model management, and generation. This is a well-scoped number that avoids unnecessary redundancy.

Completeness4/5

The server covers the main image generation workflow, including prompt handling and model configuration. Minor gaps exist, such as no explicit checkpoint unload tool, but list_models includes currently loaded state and unload_loras provides a reset path.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    A FastMCP server implementation that facilitates resource-based access to AI model inference, focusing on image generation through the Replicate API, with features like real-time updates, webhook integration, and secure API key management.
    18
    16
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    FastMCP is a comprehensive MCP server allowing secure and standardized data and functionality exposure to LLM applications, offering resources, tools, and prompt management for efficient LLM interactions.
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    This MCP server provides research-backed prompt optimization tools and professional domain templates designed to improve AI performance through strategies like Tree of Thoughts and Medprompt. It enables users to analyze, auto-optimize, and refine prompts using advanced reasoning patterns and safety-critical alignment techniques.
    25
    MIT