Skip to main content
Glama
PengLx
by PengLx

Preview placing a template instance

tiled_preview_template
Read-only

Places a template instance on a map layer at given coordinates after validating the template path and pinning its revision, returning an edit change set.

Instructions

Places one JSON object template instance in Tiled's minimal serialized form — {id, template, x, y}, with every other member inherited from the template at load time. The template is read and validated through the same fail-closed profile as template expansion (tile and nested templates reject), its revision is pinned into the plan, and apply re-verifies both the pin and that the map-relative reference still resolves to the pinned path. Returns an ordinary mapEdit change set.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description adds behavioral details about validation, pinning, and re-verification. However, the use of 'places' may misleadingly suggest a write operation, given readOnlyHint=true. The description should more clearly emphasize its preview-only nature.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences long, adequately sized but not front-loaded with the most essential information (preview nature). Slightly verbose for an agent.

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?

Given 8 parameters and nested objects, the description covers validation and return type. However, it does not explicitly state that this is a read-only preview and does not modify, which is important for decision-making.

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?

The description adds context about the minimal serialized form {id, template, x, y}, helping with x and y parameters. However, 'id' and 'template' are not in the schema, causing potential confusion. Schema coverage is 50%, so additional semantic value is moderate.

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?

The description clearly states it places a template instance and returns a change set. It identifies the specific resource (template instance) and action (preview), but does not explicitly differentiate from sibling tools like tiled_preview_edits.

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?

No explicit when-to-use or alternatives are provided. The context of templates implies usage, but the description lacks guidance on when to choose this tool over others.

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