Mjara Docs
Tools Reference

Overview

Arif AI includes over 50 integrated tools organized into 13 categories. These tools allow the AI assistant to perform real actions on your ERP system — from creating documents to managing helpdesk tickets to importing data.

Tool Categories

CategoryToolsDescription
Setup2Company setup and blueprint execution
Onboarding1Interactive company and module setup wizard
Bulk Operations3Mass create, update, and delete documents
Data Import2CSV/Excel import and duplicate detection
Finance6Chart of accounts, taxes, payments, assets
CRM4Leads, customers, contacts, deals
Drive8File management, reading, writing, versioning
Helpdesk6Ticket management, triage, responses
Knowledge3Semantic search, indexing, policy Q&A
Documents3Print formats, email templates, letterheads
LMS4Courses, lessons, quizzes, batches
Automation3Workflows, notifications, scheduled tasks
System9Permissions, rollback, process orchestration

How Tools Work

When you ask Arif AI to perform an action, the AI:

  1. Identifies the appropriate tool from its registry
  2. Validates the parameters against the tool's JSON schema
  3. Checks your permissions at the DocType level
  4. Assesses the risk level and requests confirmation if needed
  5. Executes the tool and returns results to the conversation

Tool Interface

All tools extend the BaseTool abstract class:

from arif_ai.assistant_tools.base import BaseTool

class MyTool(BaseTool):
    name = "my_tool"
    description = "Does something useful"
    category = "general"
    requires_confirmation = False
    supports_rollback = False

    input_schema = {
        "type": "object",
        "properties": {
            "param1": {"type": "string", "description": "First parameter"}
        },
        "required": ["param1"]
    }

    def _execute(self, param1: str, **kwargs) -> dict:
        return {"success": True, "result": "..."}

Tool Registration

Tools are registered in hooks.py:

assistant_tools = [
    "arif_ai.assistant_tools.onboarding_orchestrator.OnboardingOrchestrator",
    "arif_ai.assistant_tools.bulk_create_documents.BulkCreateDocuments",
    "arif_ai.assistant_tools.smart_data_importer.SmartDataImporter",
    # ... more tools
]

Safety Features

All tools include built-in safety:

  • HITL Confirmation — Sensitive operations require user approval before execution
  • Rollback Support — Operations can be undone within a 7-day window
  • Permission Checks — Tools verify DocType-level permissions before execution
  • Execution Logging — All tool calls are tracked in the Arif Tool Log

On this page