Skip to main content
Glama
cityjson-mcp

cityjson-mcp

by Yarroudh

Query CityObjects

cityjson_query

Query CityObjects by IDs, types, 2D bounding box, and attribute predicates such as eq, neq, gt, gte, lt, lte, contains, and in to filter CityJSON datasets.

Instructions

Query CityObjects natively by IDs, types, 2D bbox and attribute predicates. Attribute predicates support eq, neq, gt, gte, lt, lte, contains and in.

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_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo
bboxNo2D bbox [minX, minY, maxX, maxY] in the dataset CRS.
limitNo
typesNo
offsetNo
attributesNo
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

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and discloses very little. It never states that this is a read-only operation, how results are ordered or paginated, that results are capped (limit default 100, max 5000), or whether filters combine with AND semantics. 'Natively' is the only hint about execution mode and is left unexplained.

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 tight sentences, front-loaded with the capability and followed by the operator list an agent needs to build a predicate. No filler, though the second sentence could have been spent on behavioral detail rather than an operator enumeration alone.

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 seven-parameter, nested-object query tool with no annotations and no output schema, the description is thin. It omits prerequisites (dataset must be opened first), result shape, pagination/limit behavior, and predicate combination semantics, leaving real gaps an agent would hit on first invocation.

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 only 29% across seven parameters, so the description must compensate; it does so partially by naming ids, types, bbox and attributes, and by enumerating the supported attribute operators (eq, neq, gt, gte, lt, lte, contains, in), which the schema does not spell out. However, limit, offset, and how the attributes object maps keys to operators are undocumented in both places.

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 ('Query CityObjects') and enumerates the four filter dimensions (IDs, types, 2D bbox, attribute predicates), which clearly delimits what the tool can select. It does not name or contrast with close siblings such as cityjson_list_objects, cityjson_get_object, or cityjson_subset, so the agent must infer the boundary.

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 explicit when-to-use guidance, no statement of when-not-to-use, and no named alternatives. An agent cannot tell from the description whether this supersedes cityjson_list_objects or cityjson_subset, nor whether it requires that a dataset already be open.

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