Skip to main content
Glama

Draw a character grid

texture_draw
DestructiveIdempotent

Draw small pixel-art images from rows of characters and a color palette; each character maps to scale-sized pixels, and characters missing from the palette are skipped.

Instructions

Draws a small picture from rows of characters, for example rows ["..ab..", ".abba."] with palette {"a": "#ff0000", "b": "#000000"}. Characters not in the palette are skipped. Each character covers scale x scale pixels.

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
rowsYes
scaleNo
paletteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description usefully adds the unmapped-character skip rule and the scale semantics, but it never says what the destructive write overwrites (existing pixels? a target texture?) or where the drawing is anchored.

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?

Three short sentences, front-loaded with the core concept followed by a concrete example, then two dense rules. No filler; every clause carries information.

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 destructive drawing tool with five parameters, nested palette object, and no output schema, the description omits the coordinate parameters, the drawing target, and any overwrite behavior. An agent still cannot reliably construct a call from this text plus the bare schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the parameter burden. It illustrates rows and palette by example and clarifies scale indirectly, but x and y are never mentioned at all — no origin, defaults, or coordinate meaning — leaving two of five parameters undocumented in both schema and prose.

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?

States a concrete verb (draws) and resource (a small picture from rows of characters) with a worked example, so the mechanism is unmistakable. It doesn't name or contrast with the obvious siblings (texture_set_pixels, texture_fill_rect), so an agent must infer which texture tool to pick from the name alone.

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?

There is no when-to-use guidance: nothing says when to prefer this over texture_set_pixels or texture_fill_rect, and nothing says what must exist first (an open project/model or a selected texture target). The reader is left to guess the preconditions entirely.

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