Skip to main content
Glama

pixel_create_canvas

Create a new pixel art canvas saved as a PNG file with specified width, height, background color, and optional preview. Automatically creates parent directories; does not overwrite existing files unless overwrite is set to true.

Instructions

Create a new pixel art canvas saved as a PNG file.

The canvas is true-size (one canvas pixel = one image pixel); keep sprites small (e.g. 16x16, 32x32, 64x64) and upscale later with pixel_export_png. Parent directories are created automatically. Refuses to replace an existing file unless overwrite=true.

Returns: JSON {"canvas", "width", "height", "background"}; plus a rendered image of the canvas when preview=true. On failure returns "Error: ...".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes
Behavior4/5

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

The description discloses key behaviors: true-size canvas, automatic parent directory creation, refusal to replace without overwrite=true, and return format (JSON plus optional preview image). Annotations are sparse, so the description adds valuable transparency beyond them.

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 concise with no redundant sentences. It is well-structured: purpose, size advice, behavioral notes, and return info, all front-loaded for quick comprehension.

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

Completeness4/5

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

Given the tool has 6 parameters and no output schema, the description covers essential aspects: purpose, size recommendations, automatic directory creation, overwrite behavior, preview option, and return format. It lacks details on error types and background initialization, but overall is fairly complete.

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?

Despite 0% schema description coverage, the description mentions overwrite and preview parameters explicitly. However, it does not explain path, width, height, or background parameters, relying on the schema's own descriptions. This partial coverage limits the added value.

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 'Create a new pixel art canvas saved as a PNG file,' which is a specific verb+resource pair. It distinguishes itself from siblings like pixel_draw_pixels and pixel_export_png by focusing on canvas creation.

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

Usage Guidelines4/5

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

The description provides guidance on canvas size ('keep sprites small') and suggests using pixel_export_png for upscaling later. It also clarifies that overwriting requires overwrite=true, giving clear context for when to use this tool over alternatives.

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/light-vp/pixelart-mcp'

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