Skip to main content
Glama

apply_gradient_rect

Applies a linear gradient fill to a rectangular area on a specific layer in an Aseprite file, with adjustable start and end colors and horizontal or vertical orientation.

Instructions

Apply a linear gradient fill to a rectangle.

Args: filename (str): The path to the Aseprite file. layer_name (str): The name of the layer to draw on. frame_index (int): The index of the frame to draw on. x (int): The x coordinate of the rectangle to draw on. y (int): The y coordinate of the rectangle to draw on. width (int): The width of the rectangle to draw on. height (int): The height of the rectangle to draw on. color_start (str): The start color of the gradient. color_end (str): The end color of the gradient. horizontal (bool, optional): Whether to draw the gradient horizontally. Defaults to True. create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
widthYes
heightYes
filenameYes
color_endYes
horizontalNo
layer_nameYes
color_startYes
frame_indexYes
create_if_missingNo
Behavior2/5

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

No annotations provided, so description carries full burden. It explains the effect (apply gradient) but does not disclose whether it overwrites existing pixels, blends, or requires specific layer types. Missing details on side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The description includes a full parameter listing in docstring format, which is helpful but somewhat verbose. A more succinct opening sentence would improve front-loading.

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?

Both schema and output schema are lacking descriptions. The description covers all parameters but misses details like coordinate system, color format, and whether the fill replaces or blends. Additional context on expected behavior is needed.

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?

With 0% schema coverage, description adds meaning by listing all parameters and their roles. It explains start/end colors, horizontal orientation, and optional defaults. However, it does not specify color format (e.g., hex, rgba).

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 the tool applies a linear gradient fill to a rectangle, using specific verb 'apply' and resource 'gradient fill to a rectangle'. It distinguishes itself from siblings like draw_rectangle (outline) and fill_area (solid fill) by specifying gradient.

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. Among siblings there are other fill tools, but the description does not provide criteria for choosing this one.

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/NosytLabs/aseprite-mcp'

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