Skip to main content
Glama

apply_autotile

Paint autotiles and compute matching edge variants from surrounding cells so water, roads, or cliffs blend seamlessly. Supports blob, path, cell, and rectangle input.

Instructions

Paint an autotile (slot 0..6 = tileset autotile_names index) and compute the correct edge variant per cell from 8-neighbour connectivity (seamless coastlines/paths/cliffs). Supply ONE of: blob (organic roundish shape — USE for ponds/lakes/forest patches); path (autotile-safe road/trail/river through waypoints, width >=2); cells (arbitrary [x,y] list); or region (rect — only for rectangular floors). All shapes are auto-sanitized to be autotile-safe (4-connected, no diagonal pinches or 1-cell holes) so they never render broken/pinched. The border ring of existing same-autotile cells is recomputed so it blends. Preview with render_map.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blobNoOrganic blob: ellipse (rx,ry) around (cx,cy) with wobbly edges. Best for ponds/lakes/forest patches.
pathNoAutotile-safe road/trail/river through waypoints (orthogonal, never diagonal). width >= 2 recommended.
cellsNoExplicit [x,y] cells (custom shapes; auto-sanitized)
layerYes0=ground, 1=detail, 2=overhead
mapIdYes
regionNoRectangle (only for rectangular things; use blob/cells for nature)
edgeModeNoMap-border connectivity (default same)
autotileSlotYesAutotile slot 0..6 (index into the tileset autotile_names)
Behavior4/5

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

With no annotations, the description carries full burden for behavioral disclosure. It reveals key behaviors: computes edge variants from 8-neighbour connectivity, auto-sanitizes shapes to be 4-connected with no diagonal pinches or 1-cell holes, and recomputes the border ring of existing same-autotile cells. It also directs to render_map for preview. This is substantial transparency, though it does not mention error handling or side effects on overlapping layers.

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 compact and front-loaded: it opens with the core action, then lists the four shape modes with guidance, and closes with sanitization and preview notes. Every sentence adds value; there is no filler. The structure uses clear formatting with code-styled parameter names, making it scannable.

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 (four mutually exclusive shape modes, edge handling) and lack of output schema, the description covers essential operating context: shape use cases, sanitization behavior, border ring recomputation, and preview. It lacks mention of what happens if no shape or multiple shapes are supplied, and does not describe the return value. These are minor gaps for a paint operation, so a 4 is appropriate.

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 description coverage is high (88%), with each shape parameter having a descriptive schema. The description adds value by explaining the relationship between shape modes and use cases, noting that slot 0..6 indexes into tileset autotile_names, and clarifying width recommendation. It does not duplicate schema details but reinforces and extends them.

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's action: 'Paint an autotile... and compute the correct edge variant per cell from 8-neighbour connectivity.' It distinguishes itself from sibling tools by emphasizing autotile-specific edge computation and seamless coastlines/paths/cliffs. The purpose is specific and the resource (autotile slot) is clearly identified.

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 explicit guidance on when to use each shape mode: 'USE for ponds/lakes/forest patches' for blob, 'only for rectangular floors' for region, and the recommendation 'width >=2' for paths. It clarifies the tool is for autotile-safe painting, implicitly distinguishing it from general tile fill tools. It does not explicitly name alternatives or exclusions, but the shape usage guidance is strong.

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/SerifeusStudio/rpgmaker-xp-mcp'

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