Skip to main content

Overview

KaireonAI exposes 172 tools via the Model Context Protocol (MCP) — 162 primitive tools registered across src/mcp/tools/*.ts plus 10 composable Agent Playbooks registered from src/lib/mcp/playbooks/. Together they let AI agents in Claude Code, Cursor, VS Code Copilot, and other MCP-compatible IDEs fully manage your decisioning platform — including the V2 composable pipeline with 16 node types, 4 ranking algorithms, channel overrides, and sub-flow invocation. KaireonAI offers two MCP integrations:
  1. Documentation MCP — Lets any AI client search your KaireonAI docs for answers, powered by Mintlify.
  2. Platform MCP — Exposes 172 platform tools (162 primitives + 10 playbooks) so AI assistants can manage your KaireonAI instance directly.
Four tool categories:
  • CRUD Tools — Create, read, update, delete every entity (schemas, offers, decision flows, pipelines, etc.)
  • Decisioning Tools — Run recommendations, record outcomes, query traces
  • Intelligence Tools — Analyze performance, explain decisions, simulate changes, detect drift
  • Agent Playbooks — Higher-level composable workflows (playbook_*) that chain 5-10 primitive tools into a single named operation. See Agent Playbooks for the full list.
MCP is an open protocol that standardizes how AI applications connect to external data sources and tools. Any MCP-compatible client — Claude Code, Cursor, VS Code, ChatGPT, and others — can connect to these servers.

Documentation MCP (Mintlify)

Mintlify automatically generates an MCP server from your published documentation. When an AI client connects, it can search your docs directly instead of relying on generic web searches — meaning answers are always accurate and up to date. Your documentation MCP server is hosted at:

Connecting to AI Clients

Run this command in your terminal:
Once added, Claude Code can search KaireonAI docs when answering your questions.

Rate Limits

The Documentation MCP is available on all Mintlify plans, including free. No additional setup is needed — Mintlify generates and hosts the server automatically when your docs are deployed.

Platform MCP Setup

Environment Variables

Quick Setup

Set environment variables in your Claude Code config or shell profile:

Hosted Endpoint (no local process)

The same tool surface is also reachable over HTTP at POST /api/v1/mcp — a stateless JSON-RPC 2.0 endpoint (no SSE) so remote agents can call the tools without running the local stdio server. It implements initialize, ping, tools/list, and tools/call, authenticated with the standard X-API-Key + X-Tenant-Id headers (the key must have the editor or admin role). The authenticated tenant is forced into every call, and mutating playbook applies are routed through the governed approval flow instead of writing directly.
The hosted MCP endpoint is a control-plane surface — its tools can invoke management endpoints. The API key must be minted with the control-plane scope (admin only; see API Keys). A default data-plane-only key gets 403 on /api/v1/mcp. Treat it as a management credential — keep it internal and never embed it in client apps. The in-app AI assistant is unaffected (it uses a browser session, not an API key).

MCP Resources

The server also exposes one MCP resource:

Tool Reference

All 162 primitive tools organized by category. The 10 playbook_* tools are documented separately at Agent Playbooks. Parameters marked with ? are optional.

Data — Read (5 tools)

Data — Write (12 tools)

Data — Utility (1 tool)

Studio — Read (8 tools)

Studio — Write

Studio — Draft Rules (1 tool)

Studio — Mutations (16 tools)

Update/delete tools accept the entity’s UUID or name as identifier — the API’s resolveEntityId helper resolves either. For entities that also carry a key field (decisionFlow, guardrail, outcomeType), the key works too.

Decisioning Gates — Read (1 tool)

Algorithm — Read (3 tools)

Algorithm — Write (6 tools)

Model Management (6 tools)

Ranking Profiles (4 tools — entirely new)

Multi-objective scoring strategies — weighted blends over revenue, margin, propensity, engagement, diversity, recency that the ranking engine uses to compute composite PRIE scores.

Behavioral Metrics — Read (2 tools)

Behavioral Metrics — Write (5 tools)

Dashboard & Reporting (2 tools)

Decisioning (2 tools)

Decision Traces (2 tools)

Customer Data (2 tools)

Journeys (5 tools)

Interactions & History (1 tool)

Segments (5 tools)

Approval Workflow (3 tools)

Tenant Settings (2 tools)

Pipeline Runs (2 tools)

Audit Logs (1 tool)

Docs Search (1 tool)

AI Content Generation (2 tools)

CMS Content Management (7 tools)

CMS Sync (1 tool)

Intelligence & Analytics (12 tools)

These tools provide deep analysis, simulation, and explainability for your decisioning platform. Every invocation of these tools updates the kaireon_ai_intelligence_calls_total Counter and kaireon_ai_intelligence_duration_seconds Histogram. See Metrics Reference for alert guidance.

Model Intelligence (3 tools)

V2 Pipeline (9 tools)

The V2 composable pipeline introduces a 3-phase, 13-node-type architecture for decision flows.

V2 Decision-Flow Transforms (5 tools)

Transforms attach to an enrich or compute node inside a V2 decision flow and run per-candidate at decision time — orthogonal to the Pipeline IR transforms used by the Flow data plane. The 11 in-memory transform types listed below operate on the in-flight candidate record and feed into the next node’s input. The five MCP tools below cover listing, adding, removing, and inspecting these per-node transforms. The 11 node transform types (type field): The three write tools (addEnrichTransform, addComputeTransform, removeNodeTransform) issue an HTTP PUT /api/v1/decision-flows to persist the change. In production they require MCP_ALLOW_WRITES=true; without the override the server rejects the call with MCP write operation blocked before any HTTP request leaves the process. The two read tools (listFlowTransformTypes, listNodeTransforms) execute in any mode.

V2 Pipeline Node Types

The V2 pipeline organizes nodes into three sequential phases:

Phase 1 — Narrow

Filter and enrich the candidate pool.

Phase 2 — Score & Rank

Score candidates and select the best ones.

Phase 3 — Output

Compute personalized values and format the response.

Scoring Methods

Channel overrides allow per-channel scoring configuration. Each override specifies a channelId and an alternative method/model/formula. Falls back to the default if no override matches. Champion/Challenger enables A/B testing of scoring models. The champion gets majority traffic; challengers get the rest based on weight split.

Ranking Methods


Supported Connector Types

The createConnector tool supports the following connector types:

Contact Policy Rule Types

The createContactPolicy tool supports these rule types:

Example Workflows

Create an Offer and Get Recommendations

Analyze Decision Performance

Build a V2 Pipeline from Scratch


Tool Count Summary

Counted per source area to match the live registration count exposed by the running MCP server: