Skip to content

Creating AI tools

Tools are callable functions that extend what AI agents can do. Each tool combines an edge function (the code that runs) with a JSON schema (describing its inputs), allowing agents to call them during conversations.

A tool is an edge function deployed to the Quant CDN edge network, registered with a JSON schema so agents know how to call it and what parameters to provide. When an agent determines it needs to perform an action — such as fetching data, processing content, or interacting with an external service — it invokes the appropriate tool with the required parameters.

Each tool is defined by a set of fields that control its identity, behaviour, and execution.

FieldRequiredDescription
toolNameYesUnique identifier (alphanumeric, hyphens, underscores)
descriptionYesWhat the tool does (shown to agents)
edgeFunctionUrlYesHTTPS URL of the deployed edge function
inputSchemaYesJSON Schema object defining accepted parameters
categoryNoOrganisation category (e.g. data, content, ai-generated)
responseModeNodirect (raw output) or llm (AI-formatted response)
isAsyncNotrue for long-running operations (agent polls for result)
timeoutNoMaximum execution time in milliseconds

The responseMode field controls how the tool’s output is returned to the user.

  • direct — Returns the tool’s raw output directly to the user. Use this when the tool already produces human-readable content or structured data that the agent should pass through unchanged.
  • llm — Passes the tool’s output through the AI model for natural language formatting before returning to the user. Use this when the raw output needs summarisation, explanation, or conversational formatting.

For long-running operations, set isAsync: true. The agent will start the tool execution and then poll for the result rather than waiting synchronously. This is useful for tools that perform complex computations, call slow external APIs, or process large datasets.

Organise your tools into categories for easier management. Assign a category when creating a tool — for example, data for data-fetching tools or content for content manipulation tools. Filter by category on the AI Tools page to quickly find the tools you need.

Navigate to AI Tools in the dashboard sidebar to see all registered tools. The tools list shows each tool’s name, description, category, and deployment status. Use the category filter to narrow the list, or search by name to find a specific tool.