Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cognite.com/llms.txt

Use this file to discover all available pages before exploring further.

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 the following settings.
SettingDescription
Tool nameA name that identifies the tool’s purpose.
Tool instructionsInstructions that tell the agent when to use this tool and how to choose data modeling views, filters, and limits.
You must also configure data models and instance spaces.

Data models

The data models setting controls which data models the agent can query.
SettingDescription
Defined by user’s locationThe tool uses the data models for your selected location filter. This is the default.
Configure manuallyYou provide a fixed list of data models. For each model, you can fill in the Views fields to limit discovery to specific views. If you leave Views empty, discovery includes every view in that data model.

Instance spaces

Spaces organize data into separate, access-controlled partitions. The instance spaces setting controls which spaces the Query tool can read from.
SettingDescription
Inherit scope based on user’s locationThe tool reads from the instance spaces for your selected location filter. This is the default.
Inherit scope based on user’s access rights in CDFThe tool reads from every space you can access in CDF.
Follow access scope defined manuallyYou specify exactly which spaces the tool can read from.

Operations

The following table describes the operations available in the Query tool.
OperationWhat it does
list_viewsDiscovers which data modeling views the agent can query.
get_view_schemaReturns the fields and relations a data modeling view contains.
get_filter_docsReturns help text for writing correct filters.
list_instancesRetrieves instances from one data modeling view.
search_instancesFinds instances in one data modeling view that match a text query.
aggregate_instancesCounts and summarizes data in one data modeling view without listing every instance.
retrieve_instancesFetches specific instances when the agent already knows the instance space and external ID.

Combining tools

To complete tasks that include multiple data types, use the Query tool with other tools from the Agent tools library.
ToolWhen to use
Query time series data pointsUse the Query tool to identify a time series, then pass its ID to this tool to retrieve data points.
Answer document questionsUse the Query tool to find and retrieve files, then use this tool to answer questions from their contents.
Summarize documentsUse the Query tool to retrieve specific files, then use this tool to generate a summary of their contents.
If you’re 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 your agent’s general instructions or a skill, and use the evaluation feature to confirm behavior after reconfiguring.

Further reading

Last modified on May 7, 2026