Skip to main content
Glama
cityjson-mcp

cityjson-mcp

by Yarroudh

Export CityJSON

cityjson_export

Export an opened CityJSON dataset to jsonl, OBJ, STL, GLB, or b3dm for downstream 3D processing and visualization.

Instructions

Export an opened CityJSON dataset with cjio to jsonl, obj, stl, glb or b3dm.

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>",
      "format": "<format>",
      "destination": "<destination>"
    },
    "name": "cityjson_export"
  }
}

Input Schema

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

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

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses very little. It does not say that a file is written to disk at the destination path, whether existing files are overwritten, what 'sloppy' changes, or whether the in-memory dataset is modified or consumed. For a tool that produces files in five different formats these are meaningful gaps.

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?

A single compact sentence with no padding; the resource and the format set are front-loaded. It is terse to the point of under-specification, but that is a completeness problem rather than a verbosity one.

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?

Four parameters, three of them required, no annotations, and no output schema to describe what comes back. An agent must guess the meaning of 'destination' and 'sloppy' and cannot know how this differs from the save/download/db_export siblings. The definition is not sufficient for reliable invocation.

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 coverage is only 25%: only dataset_id has a schema description. The description lists the format values (already fully captured by the enum) but explains nothing about destination (a path? a directory? a remote target?) or sloppy (tolerance for invalid geometry?). With low coverage the description should compensate and does not.

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 (Export) and resource (an opened CityJSON dataset) and enumerates the supported output formats, which maps directly to the format enum. It does not differentiate itself from close siblings such as cityjson_save, cityjson_download, or cityjson_db_export, so an agent cannot tell from this text alone which export path to pick.

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 'an opened CityJSON dataset' implies a prerequisite (cityjson_open / cityjson_import must have run first), which is useful. But there is no explicit when-to-use vs. cityjson_save, cityjson_download, or cityjson_db_export, and no statement of when this tool is the wrong choice.

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