Skip to main content
Glama

fill_parts_on_slot

Fill selected body-part silhouettes on a sprite layer using part names or IDs, with optional per-part color overrides.

Instructions

Fill body-part silhouettes onto design/layers/.png (MCP-native).

REPLACES ad-hoc Shell/PIL scripts that looped part_pixels and stamped colors. Server uses the character part map; base body is never modified.

  • Omit parts/part_ids → fill this layer's body_parts (e.g. torso for torso, lower_arm_far+hand_far for lower_arm_far).

  • parts: names like "torso", "head" (see get_part_ids).

  • part_ids: integer ids from get_part_ids.

  • color: hex / [r,g,b,a] for all selected parts.

  • part_colors: optional {part_name: color} overrides (e.g. darker far legs).

Flat local fill only — do NOT bake underside shading here; use plan_shading + paint_* after outfit paint. Then add details with fill_rect / draw_line / paint_pixels (belt, cross, nasal bar, plates). Overhang: paint outside silhouette with those tools. FORBIDDEN: Shell python/PIL scripts or external image generators.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
slotYes
colorNo
partsNo
scaleNo
plan_idNo
part_idsNo
output_dirNo
part_colorsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Since no annotations are provided, the description carries the full burden. It discloses that the base body is never modified, that it performs a 'flat local fill only' (no shading), and that it uses the character part map. It also forbids external image generators. These are non-obvious behavioral traits beyond the tool's basic function, making it highly transparent.

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 longer than average but every section adds value: it starts with the core purpose, then lists parameter semantics in bullet format, then gives usage guidance and restrictions. The structure is front-loaded and scannable. It could be slightly tighter, but the detail is justified given the tool's complexity.

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?

Despite 9 parameters and no annotations, the description covers the essential operational context: default behavior, parameter formats, sibling alternatives, shading caveats, and prohibited actions. An output schema is present, so return values are covered. An agent has enough information to invoke this tool correctly and safely in the wider pipeline.

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 description coverage is 0%, so the description must compensate. It explains the key parameters: parts (with naming examples), part_ids (as integer ids from get_part_ids), color (hex or RGBA array), and part_colors (object with overrides). It also explains Omit behavior. However, it leaves scale, plan_id, and output_dir undocumented, though these are likely secondary. The main parameters are covered well.

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 a clear verb-resource pair: 'Fill body-part silhouettes onto design/layers/<layer>.png'. It explicitly states the tool replaces Shell/PIL scripts and names the mechanism (character part map), making its purpose unmistakable and distinct from sibling tools like fill_rect or paint_pixels.

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?

The description provides explicit when-to-use guidance: it specifies that for shading one should 'use plan_shading + paint_* after outfit paint' and for adding details use 'fill_rect / draw_line / paint_pixels'. It also explains the default behavior when parts/part_ids are omitted and flags forbidden actions (Shell scripts). This gives clear direction against alternatives.

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