Manuscript Offprint

arXiv:2608.30696

Domain-Grounded Tool Orchestration for LLM-Guided Scientific Analysis

Jeff Lee, Sebastien Jourdain, Cory Quammen, Patrick O'Leary, Berk Geveci

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Scientific analysis workflows encode deep domain knowledge through sequences of tightly coupled operations where correctness depends on tool selection, execution order, and parameterization. A CFD engineer investigating flow separation must extract wall shear stress, identify zero-crossings in skin friction, and confirm with boundary-layer profiles: a chain that requires both domain expertise and proficiency with visualization tools. Current approaches to LLM-assisted scientific visualization generate scripts that encode this knowledge implicitly, and often incorrectly, producing code that executes but yields wrong results. We present an architecture that separates intent interpretation (LLM) from execution (deterministic domain tools) from explanation (LLM), connected by the Model Context Protocol (MCP) and grounded by domain ontologies that constrain planning to valid analysis chains. We instantiate the architecture in two domains on the same ParaView server infrastructure: computational fluid dynamics post-processing and topological data analysis via the Topology ToolKit (TTK). Adding the second domain required only an ontology and tool wrappers around existing filters, with no change to the architecture, protocol, or deployment. By construction the design removes whole classes of failure that affect script generation (such as API hallucination and missing pipeline stages) and narrows the strategic errors that remain. An ablation across both domains locates the ontology's empirical effect: it does not change which tools the planner selects, which is already reliable, but corrects how the model interprets results, raising interpretation accuracy from 0.41 to 0.91, and only when the relevant fact is retrieved in scoped rather than bulk form. ParaView's client-server model carries analysis to production-scale datasets through a thin browser client.

1 Introduction

Scientific toolkits for data analysis and visualization are remarkably capable. ParaView [1] provides hundreds of filters for processing simulation data. The Topology ToolKit (TTK) [21] offers persistence diagrams, Morse-Smale complexes, contour trees, and critical point extraction. 3D Slicer [8] contains hundreds of modules for medical image analysis. The computational capability exists. The gap is not in the tools but in their accessibility: given a scientific question, which tools should be applied, in what order, with what parameters, and what do the results mean?

Large language models (LLMs) offer a natural interface for bridging this gap. A user can state an engineering question (“is there flow separation on the upper surface?”) and an LLM can, in principle, translate that into the appropriate sequence of analysis operations. However, current approaches to LLM-assisted scientific visualization conflate two fundamentally different tasks: deciding what to analyze (an intent interpretation problem where LLMs excel) and how to execute the analysis (a procedural domain knowledge problem where deterministic tools are superior).

The dominant paradigm, LLM-generated script generation, asks the model to produce executable code that directly invokes visualization APIs. Recent work by Zhao et al. [25] demonstrates that even with retrieval-augmented generation (RAG), this approach suffers from API hallucination, missing pipeline stages, and wrong-strategy errors. Their error taxonomy reveals that the hardest failures are not syntactic but strategic: the LLM chooses the wrong analysis approach entirely, producing code that executes but answers the wrong question. These are domain knowledge failures, not code quality failures, and they cannot be resolved by better code generation.

We propose an architecture that assigns each task to the component best suited for it. The LLM interprets user intent and explains results, tasks that require natural language understanding and synthesis. Deterministic domain tools execute the analysis, tasks that require validated, reproducible procedures. The Model Context Protocol (MCP) [3] provides a standardized interface between them. A domain ontology constrains the LLM's planning to physically or topologically valid analysis chains, preventing the wrong-strategy errors that persist in script generation approaches.

We demonstrate that this pattern generalizes across scientific domains by implementing it for two distinct applications on the same ParaView server infrastructure: computational fluid dynamics (CFD) post-processing and topological data analysis via TTK. Both domains exhibit the same structural challenge: powerful tools that require expert knowledge to configure, chain, and interpret. Both benefit from the same architectural solution. Adding the second domain required only an ontology file and MCP tool wrappers around existing TTK filters; no changes to the architecture, protocol, deployment, or user interface.

Our contributions are:

  1. A Plan–Execute–Interpret architecture with domain ontology and MCP tool layer that separates intent interpretation from execution from explanation.

  2. CFD instantiation with four use cases: validated analysis from natural language, iterative multi-step investigation, cross-quantity synthesis, and in-situ monitoring and control of a live Catalyst simulation.

  3. TTK instantiation with three use cases: topological feature identification, structural decomposition, and comparative topology across timesteps.

  4. Evidence that both domains compose on the same server instance, and that the marginal cost of adding a domain is an ontology and tool wrappers.

  5. A domain-independent in-situ capability: the control and monitoring loop demonstrated on a live CFD run (connect, pause/resume, step, breakpoint, extract) applies to any Catalyst-instrumented HPC solver, with only the monitored field names being domain-specific; a closed observe-reason-control loop that one-shot script generation cannot provide.

  6. An account of why tool orchestration removes whole classes of failure (API hallucination and missing pipeline stages) by construction, and narrows the strategic errors that remain via the ontology.

  7. Scalable deployment via ParaView's client-server architecture with a thin browser client.

References (23)