Skip to main content
Glama

Föreslå terräng

set_site_terrain
Destructive

Propose the WHOLE terrain of a saved design's plot in the agreed format (#574), as one site proposal the user approves like propose_changes. Metres in the saved local-site coordinate system: the same x/y origin as placement and boundary, x east, y north; do not subtract the plot minimum coordinates; z relative to the chosen local zero, or in the absolute system (e.g. RH 2000) of elevationReference. boundary is optional and closed (repeat the first corner last). contours are polylines [[x, y], ...] with one z per line (repeat the first point to close a ring); spotHeights are {id, point: [x, y, z]}; they mix freely. source is measured (survey or map: never moved, simplified or regenerated) or schematic (terrain you interpret or design on the user's request). Every element has an id. Only the format is checked: closed polygons, everything inside the plot, no duplicate ids, curves or spot heights. surface accepts a compact regular grid {grid:{origin:[x,y],spacing:[dx,dy],nx,ny,z:[...]}} with nx * ny supplied row-major heights, or an explicit mesh {vertices:[[x,y,z],...],triangles:[[i,j,k],...]} with zero-based indices and counterclockwise x/y winding, or the immutable shipped surface {reference:"serpentine-v2"}. The older serpentine-v1 reference keeps its original mesh. Grids use independent positive x/y spacing and a fixed SW–NE diagonal in each cell; their entire rectangular footprint stays inside the plot. No heights are inferred, smoothed or resampled. Supply any change to the shape of road benches, slopes or pond basins directly in the surface. Visual landscape features are proposed separately with shed.site.landscape.set. It replaces all contours, spot heights and the surface (omitting surface removes the old one); a plan that removes retained terrain, replaces surface layout or replaces an own plot’s retained corner identities or ring topology is destructive and the user confirms it. Moving retained corners alone is not destructive unless it removes terrain. Read and edit grid sections with get_site_terrain_sections/get_site_terrain_section and edit_site_terrain_section; read legacy meshes in bounded blocks. A full get_design_summary includeSurface:true read is optional and remains budgeted. Normal summaries omit inline geometry (surfaceOmitted:true); do not resend an incomplete summary as a whole replacement. Use edit_site_terrain to preserve the saved surface while changing other elements.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "designId": "<designId>",
      "terrain": "<terrain>"
    },
    "name": "set_site_terrain"
  }
}

Input Schema

NameRequiredDescriptionDefault
summaryNoOptional one-sentence description of the proposal, shown to the user.
terrainYes
designIdYesdesignId from list_designs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say destructive=true; the description goes far beyond by defining what counts as destructive (removing retained terrain, replacing surface layout, replacing an own plot's retained corner identities or ring topology) and by carving out the non-destructive case of moving retained corners alone. It also discloses that omitting surface deletes the old surface, that only the format is validated rather than the terrain itself, and that no heights are inferred, smoothed or resampled.

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?

Front-loading is good — purpose and coordinates first, format details after — and almost every sentence carries real information for a tool this complex. But it is delivered as one unbroken block of long compound sentences, so the surface-format, destructiveness and sibling-routing content is hard to locate mid-task; bullets or short labelled clauses would have made the same content far cheaper to read.

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 destructive, deeply nested whole-replacement write with no output schema, the definition covers coordinates, formats, validation limits, destructive cases and alternatives, which is nearly everything an agent needs to call it correctly. The gap is the outcome: it never says what a successful call returns (proposal id, status, what to poll) or how the approval flow resolves, leaving the agent to infer that from propose_changes.

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

Parameters5/5

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

Schema coverage is 67%, so the description has to carry weight and it does: it fixes the local-site coordinate system (same x/y origin as placement and boundary, x east, y north, do not subtract the plot minimum), explains z relative to local zero vs the elevationReference system, and states that boundary is optional and closed and that contours carry one z per line. It also adds semantics not present in the schema, such as the v1 reference keeping its original mesh and measured terrain never being simplified or regenerated.

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?

States a specific verb and resource ('Propose the WHOLE terrain of a saved design's plot') and immediately distinguishes it from the incremental sibling by saying to use edit_site_terrain to keep the saved surface. The 'as one site proposal the user approves like propose_changes' clause tells the agent this is a proposal-shaped write, not a direct mutation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use this to propose whole terrain, use edit_site_terrain to preserve the surface, read grid sections with get_site_terrain_sections/get_site_terrain_section, and propose visual features separately with shed.site.landscape.set. It also warns against resending an incomplete summary as a whole replacement, which is exactly the failure mode of a whole-terrain proposal.

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