Skip to main content
Glama

render_file

Draw road edges from a GeoPackage, GeoJSON, or Shapefile into an interactive HTML map, with styling options like color-by speed and legend, saving the output path and a PNG preview for verification.

Instructions

Draw the road edges in a file (GeoPackage, GeoJSON, Shapefile, ...) as an interactive HTML map.

The file needs line geometry (any CRS) and a road-class column, "highway" by default
(another name: options={"highway_col": "..."}).
options: render_edges keywords, e.g. {"color_by": "speed", "cmap": "viridis", "legend": true}.
output_path: where to save the .html (default ~/roadstyle-maps/<file name>.html).
Returns the saved path, a summary and a PNG preview.

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": {
      "path": "<path>"
    },
    "name": "render_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
optionsNo
output_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the default output location and that the tool returns the saved path, a summary, and a PNG preview, which is helpful. It does not say whether an existing HTML file at output_path is overwritten, whether directories are created, or anything about permissions or cost for large files.

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?

The content is front-loaded with the core action in the first sentence, followed by prerequisites, options, and output in a sensible order. Minor waste in the phrasing 'another name: options={"highway_col": "..."}' and the uneven line breaks, but nothing that obscures the meaning.

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 three-parameter rendering tool with no output schema, the definition covers inputs, defaults, prerequisites, and return values well enough to call it correctly. The gaps are secondary behaviors such as file overwrite and valid option keys rather than anything blocking invocation.

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 does: 'path' is described via the required geometry and class column, 'options' is mapped to render_edges keywords with a concrete example ({"color_by": "speed", "cmap": "viridis", "legend": true}) plus the highway_col override, and 'output_path' gets a default pattern. It loses a point for not enumerating what other option keys are valid.

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?

The description gives a specific verb and resource — 'Draw the road edges in a file ... as an interactive HTML map' — and names supported formats, so the agent can tell this is a file-rendering tool rather than a place or snapshot tool. It does not explicitly contrast itself with the siblings render_place or snapshot, keeping it just short of a 5.

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?

It states the input precondition clearly (file needs line geometry in any CRS plus a road-class column defaulting to 'highway'), which is genuinely useful for choosing this tool. However, there is no statement of when to prefer this over render_place or snapshot, and no exclusions for unsuitable files.

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

Deploy Server

Other Tools