Skip to main content
The Call Function tool enables Atlas AI agents to call deployed Cognite Functions to run custom Python code. Use this tool when you want your agent to perform calculations, process data, integrate with external systems, or automate custom tasks.
Beta: The integration tools are currently in beta testing and are subject to change.

Configuring the tool

When you add the Call Function tool to your agent in the Agent builder, you must complete the following fields:
  • Tool name: A name that identifies the tool’s purpose.
  • Tool instructions: Instructions that tell the agent when and how to use this tool.
  • Function name: The deployed Cognite function that the agent calls.
  • Max polling time in seconds: The maximum time the agent waits for the function to complete. The default is 540 seconds.
  • Schema: A JSON Schema that defines the structure of arguments that the agent passes to the function.
Each Call Function tool instance calls one function. To call multiple functions, add a separate Call Function tool to your agent for each function.

Defining the schema

The schema defines the arguments the function accepts. Your agent validates arguments against the schema before it calls the function.

Schema structure

The following table describes the JSON schema keywords that you can use to define function arguments.
KeywordDescriptionRequired
typeData type of the root object. Set to "object"Yes
propertiesObject defining each parameter, including its type and descriptionYes
requiredArray of property names that must be providedNo
descriptionHuman-readable text that helps the agent understand the parameterNo

Schema example

The following schema defines arguments for a function that retrieves Cognite Data Fusion (CDF) spaces. The items property accepts an array of objects that each contain a space identifier:
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "List of space-ids for the spaces to return.",
      "items": {
        "type": "object",
        "properties": {
          "space": {
            "type": "string",
            "description": "Ids for the spaces to perform operations on"
          }
        }
      }
    }
  }
}

Learn more

Last modified on February 11, 2026