Skip to main content
Glama

Ändra terräng stegvis

edit_site_terrain
Destructive

Propose one step of terrain editing on a saved design (#574): put is an object {contours: [...], spotHeights: [...]} that adds or modifies records by id ({id, z, points} and {id, point: [x, y, z]}, metres, same system as get_design_summary site.terrain), remove deletes ids, source optionally relabels the whole terrain measured or schematic. surface replaces the whole 3D surface (compact grid, explicit mesh or shipped reference); surface:null removes it; omit surface to preserve it exactly. Every other contour and spot height stays exactly as saved; nothing is moved automatically. The plot and height reference are unchanged; change them with set_site_terrain. Same format checks and approval as set_site_terrain; removing or replacing elements is destructive and the user confirms it.

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>"
    },
    "name": "edit_site_terrain"
  }
}

Input Schema

NameRequiredDescriptionDefault
putNo
removeNoIds of contours or spot heights to delete.
sourceNomeasured: from a survey or map, never moved automatically. schematic: interpreted or designed terrain.
summaryNoOptional one-sentence description of the proposal, shown to the user.
surfaceNoReplace the whole 3D surface; null removes it. Omit to preserve the saved surface exactly.
designIdYesdesignId from list_designs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds the operationally critical semantics: 'omit surface to preserve it exactly' versus 'surface:null removes it', 'every other contour and spot height stays exactly as saved; nothing is moved automatically', and that removal/replacement requires user confirmation. These are non-obvious behaviors an agent cannot derive from annotations or schema.

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

Conciseness4/5

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

Front-loaded with the core action and the highest-risk semantics (preservation, destructive confirmation) come last but are still present. The single dense paragraph packs a lot in but reads as a run-on, which slightly hurts scannability for an agent parsing quickly.

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 6-parameter tool with deep nested objects and no output schema, the description covers mutation semantics, units, reference system, and confirmation requirements well. It does not state what a successful 'propose' returns or how the resulting proposal is tracked, which is a residual gap given the propose/approve workflow.

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 high (83%), so the baseline is 3; the description still adds value by explaining that 'put' adds or modifies by id, 'remove' deletes ids, and 'source' relabels the whole terrain as measured or schematic. It also pins units and the coordinate reference to get_design_summary site.terrain. The omit-vs-null distinction is repeated from the schema, capping it below 5.

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?

Opens with a specific verb and scope: 'Propose one step of terrain editing on a saved design', and immediately names what is NOT touched (plot and height reference) versus what set_site_terrain handles. An agent can tell this apart from set_site_terrain without opening either schema.

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?

Explicitly routes the agent: plot/height-reference changes belong to set_site_terrain, while this tool edits contours, spot heights and surface. It also states the approval/format-check regime shared with set_site_terrain. It gives no guidance on when to prefer it over the patch/section siblings, though that is partly out of scope for a single description.

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