Skip to main content
Glama
cityjson-mcp

cityjson-mcp

by Yarroudh

Get CityObject

cityjson_get_object

Fetch a complete CityObject by dataset and object ID, with a real-world bounding box computed from its referenced vertices.

Instructions

Return one complete CityObject and a computed real-world bounding box derived from referenced vertices.

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>",
      "object_id": "<object_id>"
    },
    "name": "cityjson_get_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
object_idYes
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
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely useful behavior: the bounding box is computed in real-world coordinates from referenced vertices rather than stored. It says nothing about error behavior for an unknown object_id, whether the object must belong to an already-opened dataset, or whether geometry/children/parents are included in 'complete'.

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?

A single front-loaded sentence with no filler; the primary return value leads and the secondary computed value follows. Nothing in it is redundant.

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 simple two-parameter read tool with no annotations and no output schema, the description covers what is returned but leaves the object_id contract and failure modes unexplained. Adequate as a minimum, but an agent could still call it with a malformed id and be surprised.

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 50%: dataset_id is described in the schema (including where handles come from), but object_id has only a minLength constraint and no description. The description does not compensate at all — it never clarifies that the identifier is a CityJSON object id or what form it takes.

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 ('Return one complete CityObject') with an explicit scope of exactly one object, which implicitly contrasts with the listing/query siblings. It also names a second output (a computed real-world bounding box), giving a precise picture of what comes back. It stops short of naming a sibling such as cityjson_list_objects or cityjson_query as the alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no alternative tool is named. An agent must infer from the name alone that this is the single-object fetch versus list/query, and nothing states prerequisites such as whether the dataset must first be opened.

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