Skip to main content
The Query tool enables Atlas AI agents to discover and interact with data modeling instances across your entire data model. Agents can list, search, aggregate, or retrieve instances using a single, schema-aware tool that works across multiple data models and views. By default, the tool uses the data models and instance spaces for the location filter you select in the project, so you can switch location filters without updating your agent configuration.
Public preview: The Query tool is currently in public preview testing and is subject to change.

Configuring the tool

When you add the Query tool to your agent in the Agent builder, configure these settings. You must also configure data models and instance spaces.

Data models

The data models setting controls which data models the agent can query.

Instance spaces

Spaces organize data into separate, access-controlled partitions. The instance spaces setting controls which spaces the Query tool can read from.

Operations

This table describes the operations available in the Query tool.

Example queries

This table shows how different question types map to Query tool operations. Understanding this mapping helps you write skills and instructions that guide the agent to the right operation.

Filtering, aggregation, and sorting

The Query tool supports server-side filtering, aggregation, and sorting. Configuring your skills to use these capabilities keeps queries fast and results focused. Use aggregate_instances when a question asks for a count, total, or grouped summary. For example, use a server-side aggregation to answer “How many overdue work orders are there by site?” rather than listing all work orders and counting them. Skills can reinforce this by including a vocabulary mapping: when the user asks “how many,” use aggregate_instances. Use filters to narrow results before returning them. A question like “Show me all high-priority work orders from the last 30 days” should apply both a priority filter and a date filter in the query rather than retrieving all records and filtering afterward. To answer questions that span multiple views, such as finding the time series linked to an asset or the work orders associated with a piece of equipment, the agent uses multiple tool calls. The first call retrieves the primary record. Subsequent calls use IDs from that result to fetch related instances. Document this traversal pattern in a skill when it applies to a common question type, so the agent does not need to infer the correct sequence at runtime.

Combining tools

To complete tasks that include multiple data types, use the Query tool with other tools from the Agent tools library.
If you are using multiple Query knowledge graph tools, the Query tool can replace them. The Query tool works across multiple data models and views, so you can consolidate your setup, move any view-specific instructions into a skill, and use the evaluation feature to confirm behavior after reconfiguring.
Last modified on June 18, 2026