Skip to main content
Glama
cityjson-mcp

cityjson-mcp

by Yarroudh

Validate 3D geometry

cityjson_validate_geometry

Validates CityJSON 3D primitives with val3dity against ISO 19107 and CityJSON geometry rules, returning a detailed report plus invalid object IDs and error-code counts.

Instructions

Validate CityJSON 3D primitives with val3dity according to ISO 19107 concepts and CityJSON-specific geometric checks. Returns a detailed report plus a compact reportSummary containing every invalid object ID and error-code count.

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

Input Schema

NameRequiredDescriptionDefault
verboseNo
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.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden and does disclose the return shape: a detailed report plus a compact reportSummary enumerating invalid object IDs and per-error-code counts. It never states that the operation is non-mutating/read-only or what happens on an invalid dataset, which matters when annotations are absent.

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 sentences, zero filler, and the core action is front-loaded before the return-value sentence. Nothing is redundant, though the second sentence is a dense list that could be split for scannability.

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?

With no output schema, the description rightly spends its second sentence on return values, which covers the biggest gap. Still missing: the meaning of 'verbose', the read-only nature of validation, and any hint about runtime or limits on large datasets, which an agent needs before invoking it.

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 50%: dataset_id is documented in the schema as coming from cityjson_open/cityjson_import, and the description adds nothing to it. The 'verbose' parameter has no description anywhere yet plainly affects the reported output size, and the description misses the chance to explain it.

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?

The description names a specific verb (validate) and resource (CityJSON 3D primitives), and pins the engine and standard: val3dity, ISO 19107, CityJSON-specific geometric checks. That scope implicitly separates it from cityjson_validate and cityjson_validate_schema, but no sibling is ever named, so the differentiation is inferred rather than explicit.

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?

Usage is only implied by the phrase '3D primitives ... geometric checks' – an agent can guess this is the geometry-check complement to schema validation, but there is no statement of when to prefer it over cityjson_validate or cityjson_validate_schema, and no prerequisite (e.g. a loaded dataset) is spelled out.

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