Contents
PlatformStableVersion v1

AI Tools API

List and run the Nucleo tools of one module for an AI client acting on behalf of a user.

Every Nucleo module (Brain, Catalog, Commerce, Intelligence) exposes the same two endpoints: GET /api/v1/ai-tools returns the tools the signed-in person may use in a company, and POST /api/v1/ai-tools/{name} runs one of them and returns an MCP CallToolResult.

This is the contract the Nucleo MCP connector (https://mcp.nucleoplatform.com) uses behind the scenes. Most integrations should simply connect an MCP client to the connector (see the MCP connector API). Call these endpoints directly only if you build your own agent runtime and need tool definitions and results without MCP.

Authentication: an OAuth access token from Nucleo issued to a self-registered client (it carries the scope nucleo.ai_tools). These endpoints accept only such tokens, and such tokens are accepted only here (plus userinfo and the company context). Every call runs inside one company (X-Nucleo-Company, the company's public id) with the person's own permissions. Delete tools are not exposed, except Brain's delete_deal (a soft delete, restorable by an admin, of a deal created by mistake) and Catalog's forget_memory; the few writes that cannot be undone automatically (merges, forgetting a memory, removing a deal, destructive website CMS tools) carry destructiveHint: true.

Files an AI client produced (a PDF quote, a slide deck, a spreadsheet) are never passed as tool arguments: Brain takes them in three steps, with a signed upload URL in between — see Uploads.

Authentication

  • nucleoOAuthOAuth 2.0 · authorizationCode

    Register your client with POST https://auth.nucleoplatform.com/oauth/register (RFC 7591), then run the authorization code flow with PKCE. Tokens of self-registered clients always include nucleo.ai_tools. Tokens of Nucleo's own apps are refused here.

    authorize: https://auth.nucleoplatform.com/oauth/authorize
    token: https://auth.nucleoplatform.com/oauth/token
    scopes: openid, profile, email, offline_access, nucleo.ai_tools
Base URL
https://{host}The module's API host. Tools of each module live on its own host.
Who calls it
AI assistants, Partners
Endpoints
5
OpenAPI 3.1 specification
ai-tools.yaml
{host} — api-brain = Brain (CRM, inbox, knowledge, documents, CMS), api-catalog = Catalog (PIM, DAM), api-commerce = Commerce (customer care, POS, orders), api-intelligence = Intelligence (sales analytics). The same list, per company, is returned by GET /api/mcp/context (api_base_url). (examples use api-commerce.nucleoplatform.com; full URL https://api-commerce.nucleoplatform.com)

Resources

Each resource has its own page with every endpoint, parameter and example.

Context

Served by Nucleo Core (auth.nucleoplatform.com): which companies the person can work in, which modules each company exposes to AI clients and their API hosts, and the active company.

Tools

Served by each module. Tool names have no module prefix here (search_orders); the MCP connector adds one (commerce_search_orders). The full catalogue per module is in the MCP connector API (x-nucleo-tools).

Uploads

Brain only. How an AI client attaches a file it produced to a deal or a task: