Skip to main content
Glama

Föreslå lokal terrängdetalj

edit_site_terrain_patches
Destructive

Add, replace or remove explicit whole-cell detail patches using the baseRevision and surfaceId from a terrain section read. put supplies complete metre patches; remove names existing patch ids. Perimeter aliases share the base samples, top triangles exactly cover their rectangles and explicit upper/lower pairs plus wallTriangles form real vertical faces. An optional base window with z in metres is applied atomically; every existing patch whose closed sample rectangle it touches must also be explicitly put or removed. All other patches, base samples, contours and spot heights stay exact. A reference materializes a design-owned grid; meshes are never resampled. No change is saved until the owner approves the complete validated proposal.

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>",
      "baseRevision": "<baseRevision>",
      "surfaceId": "<surfaceId>"
    },
    "name": "edit_site_terrain_patches"
  }
}

Input Schema

NameRequiredDescriptionDefault
putNo
removeNo
windowNoZero-based sample column/row and sample counts, not cell counts. Heights are x first within each row.
summaryNo
designIdYesdesignId from list_designs.
surfaceIdYes
baseRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 destructiveHint=true, readOnly=false and idempotentHint=false, so the bar is lower, yet the description still adds substantive behavior: atomic window application, the touched-patch consistency requirement, invariants that survive (base samples, contours, spot heights stay exact), no resampling, and the approval gate before persistence. It omits what happens on a stale baseRevision or a validation failure.

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?

Purpose and required inputs are front-loaded in the first sentence, followed by constraints in a tight sequence with no filler. Despite being dense and jargon-heavy, every sentence carries a distinct invariant or rule the caller must obey.

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, nested, non-idempotent mutation with no output schema, it covers atomicity, invariants, geometry validity and the approval-before-save lifecycle. The remaining gap is concurrency semantics – what a stale baseRevision returns and what the accepted response looks like.

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?

With only 29% schema description coverage across 7 params, the description must compensate, and it does: put supplies complete metre patches, remove names existing patch ids, and window carries an optional z-in-metres base window applied atomically. It does not explain the summary field or clarify how revision conflicts are surfaced, leaving part of the gap to the nested schema text.

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?

States a concrete verb set (add, replace, remove) and a precise resource (explicit whole-cell detail patches) keyed to baseRevision/surfaceId, which separates it from whole-surface terrain editing and section reads. It never names the sibling it supersedes (e.g. edit_site_terrain) explicitly, so differentiation is implied rather than stated.

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?

Gives a real prerequisite – the baseRevision and surfaceId must come from a terrain section read – and explains the workflow gate that nothing is saved until the owner approves the validated proposal. It also states an important usage rule that every patch touched by the window must be explicitly put or removed. It stops short of naming alternatives or stating when to use edit_site_terrain or edit_site_terrain_section instead.

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