Skip to main content
Glama
Cuvara

game-art-mcp

by Cuvara

art.canvas.draw_line

Draw a straight line on a pixel-art canvas using start and end coordinates with a hex color. Solves precise line drawing with the Bresenham algorithm for consistent 2D RPG art.

Instructions

Draw a line between two points using Bresenham algorithm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x0YesStart X coordinate
x1YesEnd X coordinate
y0YesStart Y coordinate
y1YesEnd Y coordinate
colorYesLine color as hex string
session_idYesCanvas session ID
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the Bresenham algorithm, which hints at integer rasterization, but does not disclose state mutation, coordinate bounds, behavior with invalid points, or whether drawing overrides existing pixels. For a mutation tool, this is a notable gap.

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 a single, concise sentence that front-loads the action and avoids irrelevant detail. Every word contributes to understanding what the tool does.

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?

The tool is fairly simple and the schema fully documents its six parameters. However, with no annotations or output schema, and no mention of behavioral constraints like coordinate handling or session assumptions, the description is only minimally complete for correct invocation.

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 100%, so the parameter descriptions already document each coordinate, color, and session ID. The description adds no extra parameter semantics beyond the algorithm hint; this aligns with the baseline score for a well-covered schema.

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 operation: drawing a line between two points on a canvas, and identifies the algorithm (Bresenham). This distinguishes it from sibling tools like art.canvas.draw_circle, art.canvas.draw_rect, and art.canvas.set_pixel without requiring schema inspection.

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 intended use is implicit: use this when a line needs to be drawn. However, the description gives no explicit guidance about when to choose this over alternative drawing tools or any exclusions or prerequisites such as session initialization.

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/Cuvara/game-art-mcp'

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