Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DMI_EXENoPath to DmiScout.exe when DMI is not installed in the default folder (%LOCALAPPDATA%\Programs\DMI).
DMI_MCP_CALL_BUDGET_SNoCall time limit in seconds; calls that take longer return a running job and a job_id (default 50 seconds).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for DMI (Discrete Modeler), a point-cloud and oblique-photogrammetry engine installed on this Windows computer.

  1. Call dmi_caps first. ban_code must be 0. If a result has license, the product is not activated: ask the user for an activation code, call dmi_activate, then retry.

  2. Look before processing: dmi_probe for one file, dmi_precheck for several.

  3. dmi_buildings is the main tool: LAS/LAZ, a 3D Tiles folder or a saved .DMI in; building outlines and LOD models out. Ask for every format you need in one call; re-running from a .DMI extracts the buildings again.

  4. Other functions: dmi_functions lists them, dmi_run executes one. Each function needs suitable input; if the result is empty, check the data before suspecting the engine.

  5. Long tasks return status="running" with a job_id after about 50 s. Call dmi_wait(job_id) until status="done". Never start the same task again. Judge success from ok and the results list, not from log text. Use absolute Windows paths, and write to a new output folder: files with the same name are overwritten.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
dmi_capsA

Engine status: version, whether the full algorithms are available (ban_code must be 0), GPU count and license state. Call this first. Explains how to install DMI if it is missing.

dmi_activateA

Activate DMI on this computer with a code supplied by the user. This is the only tool that uses the network: the local engine sends the code, a machine fingerprint and the product version to dmi42.com. Use it when a result reports a license problem, then retry the original task.

dmi_probeA

Read a LAS/LAZ/TIF file without changing anything and report point counts, layers, format and bounding box.

dmi_precheckA

Assess one or more point clouds before processing: size and memory fit, density, elevation gaps, time segments, classes, noise, and flight-strip alignment per file pair. The sources are not modified; a precheck.csv report is written next to the first file. Lines with status warn/bad describe the data, they are not errors.

dmi_noise_removeB

Remove low noise points and write a filtered LAS (path in results: out=) into an output folder next to the source. The source file is not changed. Only low noise is removed by default, which keeps power lines and tree tops. Optional params: low_noise_ctr, low_noise_cnt, high_noise_ctr, high_noise_cnt, noise_itr, nrpxsz, nrwnd.

dmi_powerlineC

Extract power-line vectors from a point cloud that contains conductors.

dmi_buildingsA

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.

dmi_functionsA

List the engine functions dmi_run can execute (terrain model, contours, bare earth, hill analysis, classification and more) with the sub or func value each needs and its prerequisites in flags.

dmi_runB

Load a LAS/LAZ/TIF file and run one function from dmi_functions: pass sub when dispatch is "sub", func=id when dispatch is "named". sub is case-sensitive. params are the engine's key=value settings.

dmi_waitB

Continue waiting for a job that returned status="running". Returns the final result, or "running" again.

dmi_jobsA

List running and recently finished jobs of this server process.

dmi_cancelB

Stop a job's engine process. Files it was writing are incomplete and must be discarded.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 12 tools

Disambiguation4/5

Most tools target clearly distinct actions (status, activation, probe, precheck, noise removal, power lines, buildings, jobs, run, wait, cancel). The main overlaps are dmi_probe vs dmi_precheck (both non-destructive inspection) and the dedicated dmi_buildings/dmi_noise_remove wrappers vs the generic dmi_run, but the descriptions make the intended split clear enough (single-file quick read vs multi-file assessment; dedicated shortcuts vs engine functions).

Naming Consistency4/5

All names use a uniform dmi_ prefix with snake_case, so the set reads as one family. Minor deviations: a few are noun/abbreviation forms (dmi_caps, dmi_jobs, dmi_buildings, dmi_functions) while others are imperative verbs (dmi_run, dmi_cancel), but the convention is predictable overall.

Tool Count5/5

Twelve tools is well within a comfortable range for a point-cloud engine that needs license handling, inspection, domain-specific processors, a generic function runner, and async job control. Each tool appears to earn its place with no redundant filler.

Completeness4/5

The lifecycle is largely covered: status/licensing, read-only inspection, precheck, domain processing, a generic function dispatcher, and job list/wait/cancel. Minor gaps exist—there is no way to fetch a finished job's result by id after the fact (only dmi_wait continuation), and no license deactivate/cleanup operation—but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues