Skip to main content
Glama

terrain_edit

Edit a Bryce terrain and write a new copy while leaving the source unchanged. Optionally load a heightmap, then apply ordered operations like generation and hydraulic erosion.

Instructions

Edit a terrain exactly, writing a NEW copy of a Bryce file; the source is not changed. Optionally start from heightmap_path (any picture, white is high; 16-bit PNG keeps precision), then apply operations in order, e.g. [{"op":"generate","shape":"mountain","seed":3},{"op":"hydraulic_erosion"}]. See terrain_operations. The grid size stays that of terrain number index, so pick one with the detail you want (terrain_preview shows it). source_path can be one of Bryce's Presets/*.obp libraries or a saved .br3 scene. For terrains inside scenes you build, br3_edit's "terrain" operation is simpler.

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": {
      "source_path": "<source_path>",
      "output_name": "<output_name>"
    },
    "name": "terrain_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexNo
operationsNo
descriptionNo
output_nameYes
source_pathYes
terrain_nameNo
heightmap_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the operation is non-destructive (a new copy is written, source unchanged), that operations run in array order, and that the output grid resolution is inherited from the indexed terrain rather than settable. Gaps remain on where output_name is written and what the call returns, and there is no mention of failure modes or permissions.

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 most decision-relevant fact (new copy, source untouched) followed by input semantics and then sibling routing. The inline JSON example earns its space by pinning the operations format; the passage is dense but essentially waste-free, only slightly harder to scan as a single flowing block.

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?

For a 7-parameter mutation tool with no annotations and no output schema, the description covers inputs and non-destructiveness well but leaves the agent guessing about the write destination (what output_name controls, which directory, and whether a path is returned). Those are real omissions for a tool that creates a file.

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 description coverage is 0%, so the description must compensate, and it substantially does for the four most consequential parameters: heightmap_path (any image, white is high, 16-bit PNG preserves precision), index (it fixes grid size), source_path (accepted library/scene formats), and operations (ordered array with a worked example). output_name, description, and terrain_name receive no explanation, which keeps it below a 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?

States a specific verb and resource ('Edit a terrain exactly, writing a NEW copy of a Bryce file') plus the crucial scope fact that the source is unchanged. It also explicitly contrasts itself with two siblings (terrain_operations for the op vocabulary, br3_edit's 'terrain' operation for in-scene terrains), so an agent can discriminate without opening schemas.

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 concrete routing rules: use br3_edit's 'terrain' operation when the terrain lives in a scene you are building, use this tool when editing a Presets/*.obp library or saved .br3 scene. It also tells the agent to consult terrain_operations for the operation vocabulary and terrain_preview to choose an index based on the detail level desired.

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