Skip to main content
Glama
PengLx
by PengLx

Preview drawing a tile shape

tiled_preview_shape
Read-only

Rasterize a deterministic geometric shape (line, rectangle, ellipse) into tile cells and return a mapEdit change set for preview.

Instructions

Rasterizes one deterministic geometric shape — a Bresenham line, a rectangle outline or fill, or a midpoint ellipse inscribed in its bounding rectangle — into exact tile cells and returns an ordinary mapEdit change set carrying the setTiles writes. Pure bounded computation: no randomness, no clipping (a shape that leaves the map fails closed), at most 10,000 cells, and a null tile erases along the shape. Every preview, revision-pin, and transaction rule applies unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
drawYes
tileYes
layerIdYes
mapPathYesCanonical project-relative POSIX path; absolute paths and .. are forbidden
expectedMapRevisionYesSHA-256 revision returned by a read or preview
expectedDependencyRevisionsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. The description adds valuable behavioral traits: determinism, no randomness, no clipping (fails closed), at most 10,000 cells, null tile erases, and that preview/revision-pin/transaction rules apply. This significantly informs the agent beyond the 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 two sentences, front-loaded with the core action in the first sentence and constraints in the second. Every phrase adds value with no redundancy.

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's complexity (nested draw schema, 6 parameters) and the presence of an output schema, the description covers essential behavioral constraints (determinism, cell limit, null tile) and integrates with the preview workflow. Minor gaps like how to apply the change set are addressed by sibling tools.

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 only 33%, placing the burden on the description. It adds meaning for the tile parameter (null erases) and explains the shape types, but does not detail the draw property's substructures, layerId, mapPath, or revision parameters. Some improvement over the bare schema but incomplete.

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 'rasterizes one deterministic geometric shape' into tile cells and returns a change set. It names specific shapes (Bresenham line, rectangle, ellipse), making the purpose highly specific and distinguishable from sibling preview tools like tiled_preview_edits or tiled_preview_generate.

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 explicit guidance on when to use this tool versus alternatives is provided. The description explains what the tool does but does not contrast it with other preview tools or state prerequisites. Given the large set of sibling preview tools, this omission reduces usability.

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/PengLx/TiledMCP'

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