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

Instance Logs Tool

The instance_logs tool enables you to create and list logs associated with an instance. Use this tool whenever you perform significant actions that should be tracked, encounter errors, or need to review the history of actions performed by you or the user within an instance.

Parameters

ParameterTypeRequiredDescription
actionstringNoThe action to perform (create or list). Defaults to create.
instance_idstringNoThe ID of the instance processing the requirement (defaults to current instance).
user_idstringNoThe ID of the user (defaults to current user).
log_typestringYes*The type of log (e.g. system, user_action, agent_action) (Required when action is create).
levelstringYes*The severity level (info, warn, error) (Required when action is create).
messagestringYes*A brief message or description of the event (Required when action is create).
detailsobjectNoAdditional metadata in JSON format.
limitnumberNoMaximum number of logs to return when listing (default 50).
offsetnumberNoOffset for pagination when listing (default 0).

Usage Examples

Creating a Log

{ "name": "instance_logs", "arguments": { "action": "create", "log_type": "agent_action", "level": "info", "message": "Successfully analyzed the client requirements.", "details": { "confidence": 0.95, "features": ["auth", "database"] } } }

Listing Logs

{ "name": "instance_logs", "arguments": { "action": "list", "limit": 10 } }
Last updated on