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

Instance Plan

Manage instance plans. IMPORTANT: Instance plans are strict execution paths for YOU (the agent), composed of tool calls, processes, reviews, discussions, or user inputs to ensure task success. They are NOT general plans for the user. Use action=“create” to define a new execution path (use when the plan is different from the previous one). Use action=“list” to get current plans; use action=“update” to add new steps or reopen an existing plan (same objective, just new steps). Use action=“execute_step” to execute and record the result of each step individually. Always finish execution with a summary.

Input Schema

ParameterTypeDescription
actionstringAction to perform on instance plans. Enum: create, list, update, execute_step
instance_idstringInstance UUID (required for create/list if not running in instance context)
plan_idstringPlan UUID (required for update, and execute_step)
step_idstringStep UUID (required for execute_step)
step_outputstringOutput of the executed step (required for execute_step)
step_statusstringStatus of the executed step (required for execute_step). Enum: pending, in_progress, completed, failed
titlestringPlan title
descriptionstringPlan description
plan_typestringType of plan. Must be one of: objective, task. Default: objective. Enum: objective, task
statusstringPlan status. For create, use “pending” or leave empty for default. Enum: pending, in_progress, completed, failed, cancelled, paused
stepsarrayArray of plan steps with detailed properties.
site_idstringSite UUID
user_idstringUser UUID
agent_idstringAgent UUID
limitnumberLimit results
offsetnumberOffset results

REST Endpoint

Actions map to sub-routes: create/create, list/get, update/update.

POST /api/agents/tools/instance_plan/create POST /api/agents/tools/instance_plan/get POST /api/agents/tools/instance_plan/update
POST /api/agents/tools/instance_plan/create Authorization: Bearer YOUR_API_KEY Content-Type: application/json { "site_id": "YOUR_SITE_ID", "instance_id": "INSTANCE_UUID", "title": "Lead qualification flow", "plan_type": "objective", "steps": [ { "title": "Fetch lead data", "type": "tool_call" }, { "title": "Qualify lead", "type": "process" } ] }

Response:

{ "success": true, "plan": { "id": "...", "title": "Lead qualification flow" } }
Last updated on