Skip to main content
Glama

Improve prompt (active style)

enrich_prompt

Rewrite a short prompt into a fully-styled MagicPixel prompt using the brief of the account's active style (same as in-app Improve prompt). Does not spend AI generation credits; subject to daily enrich quota. Prefer get_style_profile / update_style_profile first when no style is active or its brief is empty. When generating more than one asset (Quantity / Quality), pass count so the rewrite is a diverse family brief instead of one locked design. Pass size so a 32px-or-smaller sprite gets a short, minimal rewrite.

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": {
      "prompt": "<prompt>"
    },
    "name": "enrich_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"generate" expands a new-asset request (default); "edit" sharpens an edit instruction.
sizeNoSprite size in art pixels (the generate_pixel_art size). Pass it: at 32 or smaller the rewrite is kept short and minimal, the way a tiny retro sprite needs.
countNoHow many assets generate_pixel_art will produce from this prompt. Pass the Quantity/Quality count (>1) so enrichment writes a family brief instead of locking one silhouette. Omit or 1 for a single asset.
promptYesShort user request to expand (e.g. "red knight shield"). Same cap as the in-app prompt box: longer text is trimmed to the first 1000 characters and the reply says so.
textureNotrue when the prompt names a tiling material for generate_pixel_art texture: true.
variationNoPass a higher number to request a visibly different rewrite of the same prompt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / subject_category
      Removed value: -{
      -  "description": "Optional subject hint for the enricher (character|item|building|ui|custom|texture).",
      -  "enum": [
      -    "character",
      -    "item",
      -    "building",
      -    "ui",
      -    "custom",
      -    "texture"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / texture
      Added value: +{
      +  "description": "true when the prompt names a tiling material for generate_pixel_art texture: true.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: no AI generation credits are consumed, but a daily enrich quota applies, and the tool depends on an active style brief. The annotations (readOnlyHint=false, destructiveHint=false, idempotent=false) already cover the mutation/repeatability profile; the only gap is not saying what the rewrite reply contains or how quota exhaustion surfaces.

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 core action and cost/quota facts, then conditional guidance in descending priority. Four dense sentences with modest repetition of schema-level size/count guidance, but no filler or hedging.

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 quota-limited, style-dependent rewrite tool with six params and no output schema, this covers cost, prerequisites, and the two non-obvious parameters (count, size). Only minor gaps remain, such as the shape of the returned brief and failure behavior at the quota limit.

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 mode, size, count, prompt, texture and variation are already documented in the schema. The description restates the count and size guidance almost verbatim from the schema rather than adding new semantics, so the 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?

States a specific verb and resource ('Rewrite a short prompt into a fully-styled MagicPixel prompt') and anchors it to the in-app equivalent. It also distinguishes itself from style-management siblings by naming get_style_profile and update_style_profile as prerequisites rather than substitutes.

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?

Explicit conditional routing: use the style-profile tools first when no style is active or its brief is empty, and pass count when producing more than one asset. It also gives a concrete rule of thumb for size ('32px-or-smaller sprite gets a short, minimal rewrite'), leaving little to inference.

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