Skip to main content
Glama
cityjson-mcp

cityjson-mcp

by Yarroudh

Merge CityJSON datasets

cityjson_merge

Merge two or more opened CityJSON datasets into one CityJSON file and return the new filename for combined models.

Instructions

Merge two or more opened CityJSON files with cjio. Returns a new filename.

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_ids": "<dataset_ids>"
    },
    "name": "cityjson_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataset_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / dataset_ids / items / 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/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does reveal two useful traits — inputs must already be opened and the result is a new filename (inputs presumably untouched) — but says nothing about ordering effects, CRS/metadata conflicts between datasets, or what happens on incompatible inputs.

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, zero filler, with the action front-loaded and the return value appended last. It is efficient but borders on under-specified rather than optimally structured.

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

Completeness3/5

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

For a one-parameter tool with no output schema, telling the agent the return value is a filename is valuable and largely sufficient structurally. The gaps are behavioral — conflict handling and input-mutation semantics — which matter for a merge operation but are not addressed.

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

Parameters2/5

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

Schema description coverage is reported as 0% at the property level, and the description never mentions the single parameter 'dataset_ids' or its semantics such as ordering or minimum count. The only help comes from the nested items description in the schema itself, not from the description.

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 ('Merge two or more opened CityJSON files') plus the engine (cjio), which is unambiguous and no other sibling performs merging. It doesn't name a contrasting sibling, but none exists, so an agent can still place it correctly in the toolset.

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 phrase 'opened CityJSON files' implies the prerequisite that inputs must come from cityjson_open/import first, which is real usage guidance. However, there is no statement of when to merge versus e.g. cityjson_subset or cityjson_db_import, and no exclusions or failure conditions.

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