<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">ISPRS-Annals</journal-id>
<journal-title-group>
<journal-title>ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences</journal-title>
<abbrev-journal-title abbrev-type="publisher">ISPRS-Annals</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">ISPRS Ann. Photogramm. Remote Sens. Spatial Inf. Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2194-9050</issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/isprs-annals-XII-4-W1-2026-211-2026</article-id>
<title-group>
<article-title>Enabling AI Agents for Semantic 3D City Models through Automated Domain Context Generation</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kanna</surname>
<given-names>Khaoula</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kolbe</surname>
<given-names>Thomas H.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Chair of Geoinformatics, Technical University of Munich, 80333 Munich, Germany</addr-line>
</aff>
<pub-date pub-type="epub">
<day>28</day>
<month>09</month>
<year>2026</year>
</pub-date>
<volume>XII-4/W1-2026</volume>
<fpage>211</fpage>
<lpage>218</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2026 Khaoula Kanna</copyright-statement>
<copyright-year>2026</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://isprs-annals.copernicus.org/articles/XII-4-W1-2026/211/2026/isprs-annals-XII-4-W1-2026-211-2026.html">This article is available from https://isprs-annals.copernicus.org/articles/XII-4-W1-2026/211/2026/isprs-annals-XII-4-W1-2026-211-2026.html</self-uri>
<self-uri xlink:href="https://isprs-annals.copernicus.org/articles/XII-4-W1-2026/211/2026/isprs-annals-XII-4-W1-2026-211-2026.pdf">The full text article is available as a PDF file from https://isprs-annals.copernicus.org/articles/XII-4-W1-2026/211/2026/isprs-annals-XII-4-W1-2026-211-2026.pdf</self-uri>
<abstract>
<p>Semantic 3D city models offer rich urban information yet remain largely inaccessible to non-expert users due to their complex schemas, deep class hierarchies, and heterogeneous data structures. Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language understanding and code generation. But applying them to domain-specific databases requires contextual knowledge that far exceeds what can be manually written and maintained. This paper presents a framework that automatically generates domain context from CityGML data stored in 3DCityDB instances. The framework decomposes domain knowledge into static components (database schema, query patterns, spatial capabilities) and dynamic components (available object classes, properties and generic attribute classifications). These components are assembled into a structured context representation served via the Model Context Protocol (MCP), forming a shared knowledge layer that most AI agents can consume. We evaluate the framework against five CityGML datasets from different countries where attribute values are given in different languages, levels of detail, and thematic modules. Results demonstrate that the system enables an LLM-based agent to correctly formulate complex SQL queries (including 3D spatial operations, multi-level feature relationships, and nested property access). Beyond querying, the generated context supports the creation of additional domain-specific agents for tasks such as semantic enrichment, data quality assessment, and urban scenario analysis, making the MCP Server a reusable domain knowledge interface for semantic 3D city models.</p>
</abstract>
<counts><page-count count="8"/></counts>
</article-meta>
</front>
<body/>
<back>
</back>
</article>