Skip to main content
Glama
LufiSprite Studio

LufiSprite Studio

by Lufi735

flood_fill

Fill a contiguous region from specified (x, y) coordinates with a hex color, or set color to null to erase that region.

Instructions

Flood fill a contiguous region starting at (x, y) with the given hex color (or null to erase).

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": {
      "x": "<x>",
      "y": "<y>",
      "color": "<color>"
    },
    "name": "flood_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
colorYes
layerIndexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses that a null color erases the region, but says nothing about which layer is affected, what happens at canvas boundaries, whether the operation is undoable, or what is returned — significant gaps 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.

Conciseness4/5

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

A single front-loaded sentence with no wasted words; the coordinate pair and color semantics are stated immediately. The terseness borders on under-specification, but nothing is redundant.

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?

For a simple drawing mutation this covers the essential operation and the null-erase behavior. However, with no annotations, no output schema, and an undocumented layerIndex parameter, an agent still lacks enough information to invoke it fully confidently.

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 0% with four parameters, so the description must compensate. It explains x, y as the region's starting point and documents color's dual meaning (hex value or null to erase), but layerIndex is entirely unexplained in both schema and description, leaving a real gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and operation ("Flood fill a contiguous region") plus coordinates and the fill value, and adds that null erases. An agent can understand the core operation, though the description never distinguishes it from sibling drawing tools like draw_shape or draw_pixels.

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?

There is no explicit when-to-use or when-not-to-use guidance and no alternatives named among siblings such as draw_pixels, draw_shape, or clear_layer. The only usage hint is that passing null erases, which is a parameter behavior rather than a routing guideline.

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