Skip to main content
Glama

flood_fill

Recolor pixels matching a seed color in a pixel art document. Use contiguous mode to limit fill to connected areas only.

Instructions

Flood fill from a seed pixel. contiguous=false recolors every pixel that matches the seed color.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
clipNoSilently discard out-of-bounds pixels instead of rejecting (default false)
frameNoFrame index, 0-based (default: active frame)
indexYesPalette index
layerNoLayer id or name (default: active layer)
doc_idYesDocument id
renderNoInclude a render of the change (default true)
contiguousNoDefault true
ignore_symmetryNoSkip symmetry mirroring for this call (default false)
Behavior3/5

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

No annotations are provided, so the description must disclose behavioral traits. It explains the key difference between contiguous=true/false. However, it does not mention that the tool modifies the document in place, whether it respects undo, or any side effects like symmetry handling. It lacks comprehensive transparency for a mutation tool.

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: two sentences, no filler. It front-loads the core action ('Flood fill from a seed pixel') and immediately explains a critical behavioral toggle. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 10 parameters, 4 required, and no output schema, the description is inadequate. It does not explain return values (e.g., success indication, render), error conditions, or interaction with layers and frames. The user would need external knowledge to invoke it confidently.

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 80%, so the baseline is 3. The description adds meaningful context for the 'contiguous' parameter by explaining its effect ('recolors every pixel that matches the seed color'), which goes beyond the schema's 'Default true'. For other parameters, the description adds no new semantics, but the key parameter is clarified.

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 'Flood fill from a seed pixel' with a specific verb (flood fill) and resource (pixels). It also explains the effect of the 'contiguous' parameter, distinguishing the tool's basic behavior from siblings like 'replace_color' or 'set_pixels'. The purpose is unambiguous.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives such as 'replace_color' or 'set_pixels'. There is no mention of prerequisites, common patterns, or when not to use it. The description only states what it does, not when or why.

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/ehm-93/pixel-mcp'

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