Skip to main content
Glama

dem_interpret

Sends rendered terrain artifact images to a client LLM for context-specific natural language interpretation and feature analysis.

Instructions

Interpret a terrain artifact using the calling LLM via MCP sampling.

Sends a rendered PNG of any terrain artifact to the client LLM for natural language interpretation. The LLM receives the image and a context-specific prompt, then returns its analysis.

Requires an MCP client that supports the sampling/createMessage capability (e.g., Claude Desktop).

Available contexts: general, archaeological_survey, flood_risk, geological, military_history, urban_planning.

Args: artifact_ref: Reference to any stored terrain artifact context: Interpretation context (default "general") question: Optional specific question about the terrain output_mode: "json" or "text"

Returns: LLM interpretation with identified features

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": {
      "artifact_ref": "<artifact_ref>"
    },
    "name": "dem_interpret"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNogeneral
questionNo
output_modeNojson
artifact_refYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A4.2/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 the mechanism (a rendered PNG is sent to the client LLM with a context-specific prompt), the hard environment requirement, and the shape of the return. It stops short of disclosing cost/latency characteristics of a sampling round-trip or what happens on image render 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?

Front-loaded first sentence states the action and mechanism, then prerequisites, then a scannable Args/Returns block. Every line carries information; nothing is redundant padding even though it is longer than average.

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 tool that spends an LLM sampling call, the definition gives enough to invoke it: prerequisite, context vocabulary, output modes, and a Returns summary standing in for the absent output schema. The one material omission is the expected format of artifact_ref, which an agent must guess to make the required-parameter call.

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 0% and there are no enums in the schema, so the description is the only source of parameter meaning — and it delivers: it names all four parameters, lists the six valid context values, marks question as optional, and gives the two output_mode values. The gap is artifact_ref, whose accepted format (ID, path, or name) is never specified despite being the only required parameter.

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 ('Interpret a terrain artifact') and immediately names the mechanism ('via MCP sampling'), which distinguishes it from the computational siblings like dem_slope or dem_hillshade. An agent can see at a glance that this is the LLM-assisted interpretation tool, not a metric calculator.

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?

The description covers the key prerequisite (client must support sampling/createMessage, with Claude Desktop as an example) and enumerates the available contexts, which implies usage. However, it never says when to prefer this over the deterministic sibling tools (e.g., dem_classify_landforms or dem_detect_features) or what to do when sampling is unavailable, leaving the routing decision to inference.

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