Skip to main content
Glama

Extract buildings and LOD models

dmi_buildings
Destructive

Extract building outlines and LOD1.3/LOD2 3D models from LAS/LAZ/TIF point clouds, 3D Tiles or DMI projects, exporting them as SHP, KML, KMZ, GLB, STL or DXF files.

Instructions

Extract buildings and model them.

source: LAS/LAZ/TIF point cloud, a 3D Tiles folder (contains tileset.json) or a saved .DMI project. out_dir: output folder (created if needed; same-named files are overwritten). outline_formats: roof/waist/foot outlines, any of SHP, KML, KMZ (comma list). KML/KMZ need utm_zone. model / model_formats: 3D models, any of GLB, STL, DXF, SHP, KML, KMZ (comma list). lod: "1.3" flat-roof blocks with stepped heights, "2" roof shapes as well. per_building: one model file per building instead of one merged file. grid_step_m, min_height_m, min_size_m: grid step (0.3-0.5 m), lowest building height and smallest building size; for point clouds the defaults are 0.5, 2 and 4. save_project: optional path of a .DMI project to keep.

Runtime grows with area: about half a minute for 1 million points, up to an hour for a large block. Read the bldg, bldgout, bmall and bmexport entries of summary: rings= outlines, baked= modelled buildings, file= output path.

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": "<source>",
      "out_dir": "<out_dir>"
    },
    "name": "dmi_buildings"
  }
}

Input Schema

NameRequiredDescriptionDefault
lodNo1.3
modelNo
sourceYes
out_dirYes
utm_zoneNo
timeout_sNo
min_size_mNo
grid_step_mNo
min_height_mNo
model_paramsNo
per_buildingNo
save_projectNo
model_formatsNoGLB
outline_formatsNoSHP
extraction_paramsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent; the description usefully explains why, stating that same-named files in out_dir are overwritten and that out_dir is created if needed. It also discloses runtime scaling (about 30s per million points, up to an hour for a large block) and a cross-parameter prerequisite (KML/KMZ require utm_zone), all beyond what annotations provide. Missing are permission/auth requirements and any note on partial-failure behavior.

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?

The purpose sentence is front-loaded, followed by a tight parameter-keyed list where each line adds new information and no sentence is filler. The closing runtime and summary-key notes are placed last, where an agent can scan them before committing to a long-running call.

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 15-parameter, destructive, long-running extraction tool the description covers inputs, output formats, cost and overwrite semantics; an output schema exists, so the added note about the bldg/bldgout/bmall/bmexport summary keys is a bonus rather than a requirement. The gaps are the unlabeled advanced escape hatches (model_params, extraction_params) and timeout_s, which an agent cannot reason about from the definition alone.

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 0% schema coverage the description must carry the parameter burden, and it defines 10 of 15: source, out_dir, outline_formats values, model/model_formats values, lod values with meanings, per_building, the three threshold parameters with point-cloud defaults, and save_project. Undocumented are timeout_s, model_params and extraction_params, and utm_zone is only referenced conditionally rather than explained (zone number vs EPSG).

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?

"Extract buildings and model them" states a specific verb and resource, and the parameter notes confirm the scope is building extraction plus LOD modelling from point clouds, 3D Tiles or a project file. It is clearly distinct from siblings like dmi_noise_remove and dmi_powerline, though the description never names an alternative explicitly.

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

Usage Guidelines2/5

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

The description documents inputs and options but gives no when-to-use or when-not-to-use guidance, and no routing toward or away from siblings such as dmi_run or dmi_wait. The accepted source types (LAS/LAZ/TIF, 3D Tiles folder with tileset.json, .DMI project) are precondition facts rather than usage advice.

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