Skip to main content
Glama

Polyfork low-poly 3D assets

Query kit terrain

get_terrain
Read-onlyIdempotent

AT WHAT HEIGHT DO I PLACE THIS, and where can I build. Many kits have a procedural TERRAIN program for their own ground (call with no id for which: the rest stand on floor tiles or flat turf, where y 0 is right). Ask with the KIT id to get the ground its composed place stands on, in place.group's coordinates, which is what buildKit builds and what place.groundAt(x, z) reads (setting: true for buildKit's wider setting ground); a terrain ASSET id answers for that program alone at its default knobs, a different patch of ground. Pass at with the x/z you want to place at and you get the ground height there; set position.y to it. flat_areas are the level building sites: square footprints whose ground barely varies, largest first, none overlapping, with the height to place at. Use it before laying out a town, a farm or a depot, instead of guessing a y and hoping. Pass profile to get the ground along a proposed road or wall: heights, the grade between points, and whether each point is under water, so you know where a bridge is needed. Every answer says its frame, so it can be used directly. Terrain from two different kits joins edge to edge on a shared 64m grid, so several kits can share one landscape.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_terrain"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNox,z;x,z;… — AT WHAT HEIGHT DO I PLACE THIS. Returns the ground height and slope under each point; set the object's position.y to the y you get back and it rests on the terrain. Use this for anything that is not going on one of the level sites. Up to 64 points.
idNoa KIT id (the ground its composed place stands on, as buildKit builds it) or a terrain asset id (that program alone). Omit to list every kit that has ground.
nearNox,z,radius: keep the scatter points inside that circle, for dressing one clearing rather than the whole block
spanNoblock size in 64m chunks, 1 to 4. Bigger blocks have more room and more sites.
flatsNohow many level sites to return (default 12, max 40)
erosionNo0 to 1. Weathers the landforms: valleys smooth out, crests stay sharp. Changes where the level sites are, so ask with the same value you intend to build with.
flattenNo0 to 1. Clears a level area in the MIDDLE of the block for a settlement, leaving the landscape around it. Raise it when the natural sites are too small for what you are placing.
profileNox0,z0,x1,z1[,steps] — the ground along a straight line, for a road, a wall or a bridge
scatterNon placement points the terrain picks itself, already on the ground and already filtered to slopes gentle enough to stand on, each with a random yaw. For rocks, trees and dressing.
settingNowith a kit id: the ground of buildKit({ setting: true }), twice the composed span, instead of the composed place's

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"terrain asset id. Omit to list every kit that has one."New value: +"a KIT id (the ground its composed place stands on, as buildKit builds it) or a terrain asset id (that program alone). Omit to list every kit that has ground."
    • addedInput schema / properties / near
      Added value: +{
      +  "description": "x,z,radius: keep the scatter points inside that circle, for dressing one clearing rather than the whole block",
      +  "type": "string"
      +}
    • addedInput schema / properties / setting
      Added value: +{
      +  "description": "with a kit id: the ground of buildKit({ setting: true }), twice the composed span, instead of the composed place's",
      +  "type": "boolean"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the bar is lower; the description still adds real context: every answer carries a `frame` so results are usable directly, terrain from different kits joins on a shared 64m grid, `flatten` moves the level sites, and `erosion` changes site placement so it must match the build value. It does not describe result payload shape beyond frame/heights, but no output schema exists and the key semantics are covered.

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 content is dense and useful but structured as long run-on sentences with stacked parentheticals, and the ALL-CAPS opening question is attention-grabbing rather than front-loading a clear purpose statement. Nearly every sentence carries information, but the packing makes it slower to scan than it needs to be.

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?

For a 10-parameter, read-only query tool with no output schema, the description covers the modes, the coordinate frame of answers, the cross-kit 64m grid behavior, and how to apply the returned y. Remaining gaps (exact response shape, point limits for `profile`) are minor and partly covered by the schema.

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 coverage is 100%, so a 3 is the floor; the description goes beyond it by explaining the practical consequence of parameters — set position.y to the returned height, `setting: true` gives buildKit's wider setting ground, `profile` returns grade and under-water flags per point. `near` and `scatter` are only implicitly touched in the prose, but the schema already documents them fully.

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 makes clear this tool answers questions about a kit's procedural terrain: ground height at points, level building sites, and profiles along a line. It separates the kit-id case (the ground the composed place stands on) from the raw terrain-asset-id case, which distinguishes it from get_kit/get_asset. The opening clause is a rhetorical question rather than a direct statement of purpose, which slightly delays orientation.

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?

It gives concrete when-to-use guidance: 'Use it before laying out a town, a farm or a depot, instead of guessing a y and hoping,' and it routes between modes — `at` for arbitrary points, `flat_areas` for level sites, `profile` for roads/walls/bridges. It also tells you to call with no id first to discover which kits have terrain. It stops short of naming specific sibling tools (e.g. get_kit vs this) as alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources