Skip to main content
Glama

pixel_draw_line

DestructiveIdempotent

Draw a straight line between two points on a pixel art canvas, with endpoints outside the canvas clipped. Supports color, thickness, transparency erasure, and returns the updated canvas plus optional preview image.

Instructions

Draw a straight line between two points on a canvas.

Endpoints may lie outside the canvas; the visible segment is drawn. Drawing 'transparent' erases. Returns JSON {"canvas", "line", "color"}; plus a rendered image 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?

Annotations indicate destructiveHint=true. The description adds useful behavioral details: endpoints may lie outside canvas, 'transparent' erases, and return value includes a rendered image when preview=true. These go beyond annotations.

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 three sentences: purpose, edge case/behavior, and return value. No wasted words, front-loaded with the core action.

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?

No output schema exists, but the description explains the return format (JSON with canvas, line, color, plus image on preview) and failure case. It covers the endpoint clipping behavior. Lacks details about modification semantics (e.g., does it update the file?), but overall adequate.

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 property descriptions exist (e.g., 'Start X'), but overall schema description coverage is 0%. The description adds meaning: endpoints can be outside, transparent erases, and preview returns image. It does not cover thickness or path explicitly, but provides key context.

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 explicitly states 'Draw a straight line between two points on a canvas,' which is a specific verb+resource. It distinguishes from siblings like pixel_draw_rect and pixel_draw_ellipse by focusing on lines.

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 description does not explicitly state when to use this tool versus alternatives. Usage is implied by the tool's purpose, but no when-not-to-use or alternative comparisons are provided.

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