Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
MCP ServerToolsInstancePOST

Instance Tool

Manage AI assistant instances (CRU operations: create, read, update). Use “create” to start a new instance for a specific activity. Use “read” to get details of the current instance or list instances for the site. Use “update” to automatically rename the instance based on context (if it has a generic name or the objective changed) or update other properties.

IMPORTANT: You MUST call this tool with action “update” if the instance has a generic name (“Assistant Session”, “New Instance”, etc.) or if the conversation objective has changed significantly.

Input Schema

ParameterTypeDescription
actionstringThe action to perform. Enum: “create”, “read”, “update”.
site_idstringSite UUID (required for create and read, optional for update).
instance_idstringInstance UUID (optional, defaults to current instance).
activitystringRequired for create: The main activity or purpose of the new instance.
namestringOptional for update: Explicitly set a new name for the instance.
contextstringOptional for update: Context about what the user is trying to accomplish for smart renaming.
statusstringOptional for update: Set status.
limitnumberOptional for read: Limit number of results.
offsetnumberOptional for read: Offset for pagination.

REST Endpoint

POST /api/agents/tools/instance
POST /api/agents/tools/instance Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "action": "create", "site_id": "YOUR_SITE_ID", "activity": "Marketing Campaign Setup" }

Response (Create):

{ "success": true, "instance": { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "Marketing Campaign Setup", "status": "running" }, "authentication": { "success": true } }

Response (Update Rename):

{ "success": true, "renamed": true, "old_name": "Assistant Session", "new_name": "SaaS Lead Gen Campaign - US", "similarity": 0.2 }
Last updated on