Skip to main content
Glama

fill_rect

Fills a rectangular area with one color in Pixelorama; omit position and size to fill the entire canvas.

Instructions

Fill a rectangle with one color. Leave out the position and size to fill the whole canvas.

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": {
      "color": "<color>"
    },
    "name": "fill_rect"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
colorYesColor as #rgb, #rrggbb, #rrggbbaa, a name like "red", or "transparent"
frameNoFrame index, from 0. Defaults to the current frame
layerNoLayer index, 0 is the bottom layer. Defaults to the current layer
widthNo
heightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the whole-canvas default when geometry is omitted. It does not say whether the fill overwrites existing pixels, how it interacts with the layer/frame parameters, or what happens on invalid geometry relative to canvas bounds — significant omissions 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?

Two short sentences, zero filler, with the core operation stated first and the notable default behavior second. 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?

For a seven-parameter destructive paint operation with no annotations and no output schema, the description is too thin: it omits overwrite semantics, layer/frame interaction, canvas-bound clipping, and return behavior. Only the full-canvas default case is covered.

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 only 43%, and the description compensates for the biggest gap by explaining that x, y, width, and height are optional and default to the full canvas — meaning the four undocumented geometry parameters. It still adds nothing about frame and layer beyond what the schema already documents.

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?

"Fill a rectangle with one color" gives a specific verb (fill) and resource (rectangle) plus the paint primitive, so an agent knows this is a solid-color rectangle paint operation. It does not explicitly differentiate itself from pixel-level drawing (draw_pixels), which keeps it below a 5.

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 second sentence supplies a concrete usage rule: omit position and size to fill the whole canvas. That is real conditional guidance, but there is no statement of when to prefer this over draw_pixels or other painting tools, and no prerequisites or exclusions.

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