Skip to main content
Glama
cityjson-mcp

cityjson-mcp

by Yarroudh

Translate CityJSON coordinates

cityjson_translate

Translate CityJSON coordinates by shifting them relative to a specified minimum or the model minimum when none is supplied.

Instructions

Translate CityJSON coordinates with cjio. With minxyz, coordinates are shifted relative to the supplied minimum; without it cjio uses the model minimum.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "cityjson_translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
minxyzNo
dataset_idYesFilename returned by cityjson_open, cityjson_import, or a transformation. Internal dataset handles also work for compatibility.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / dataset_id / description
      Previous value: -"Dataset handle returned by cityjson_import, cityjson_open, cityjson_import_text, or another transformation tool."New value: +"Filename returned by cityjson_open, cityjson_import, or a transformation. Internal dataset handles also work for compatibility."
  2. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses the two coordinate-shift modes, but says nothing about whether the dataset is mutated in place or a new dataset handle is returned, what the response looks like, whether repeated application compounds the shift, or what units/axis order are assumed.

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?

Two short sentences with the action front-loaded and no filler; the conditional minxyz behavior is packed into the single follow-on clause. Slightly compressed phrasing ('with minxyz ... without it') costs a little clarity but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless-annotation, no-output-schema mutation tool, the description leaves out the most decision-relevant facts: in-place vs returned dataset, effect on the dataset_id handle, and coordinate conventions. Given the complexity of geometry transformation, this is under-specified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: dataset_id is documented in the schema, while minxyz is not, and the description does compensate by explaining that minxyz defines the shift origin versus defaulting to the model minimum. It still does not specify the coordinate ordering, units, or CRS implications of the three-element array.

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?

States a specific verb and resource ('Translate CityJSON coordinates') and names the underlying engine (cjio), so an agent can tell it apart from siblings like cityjson_reproject or cityjson_clean_vertices. It stops short of explicitly contrasting itself with those siblings, so it is clear but not fully differentiated.

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 implies when to use it (coordinate shifting/minimum-normalization) and explains the two operating modes via minxyz. It gives no explicit when-not guidance and never mentions the nearby alternatives cityjson_reproject or cityjson_assign_crs, which an agent could easily confuse with a coordinate transform.

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