{
  "authentication": {
    "description": "Form-based login at /login sets a Flask session cookie. Include the cookie on all authenticated API requests.",
    "loginUri": "https://arloplus.com/login",
    "registerUri": "https://arloplus.com/register",
    "type": "session_cookie"
  },
  "capabilities": {
    "resources": true,
    "tools": true
  },
  "resources": [
    {
      "description": "List and manage user chat sessions.",
      "mimeType": "application/json",
      "name": "Chat Sessions",
      "uri": "https://arloplus.com/api/sessions"
    },
    {
      "description": "List uploaded documents for a session.",
      "mimeType": "application/json",
      "name": "Documents",
      "uri": "https://arloplus.com/api/documents"
    },
    {
      "description": "Atom 1.0 feed of published blog articles.",
      "mimeType": "application/atom+xml",
      "name": "Blog Feed",
      "uri": "https://arloplus.com/blog/feed.xml"
    },
    {
      "description": "XML sitemap of all public pages.",
      "mimeType": "application/xml",
      "name": "Sitemap",
      "uri": "https://arloplus.com/sitemap.xml"
    }
  ],
  "serverInfo": {
    "description": "AI-powered RAG chatbot and legal research platform for Samoa and the Pacific. Provides chat, document upload, legal search, writing assistance, grammar checking, and citation management.",
    "name": "com.arloplus.api",
    "title": "ArloPlus API",
    "version": "2.12.97"
  },
  "tools": [
    {
      "description": "Send a message to the RAG chatbot and receive an AI-generated response.",
      "inputSchema": {
        "properties": {
          "message": {
            "description": "The user message to send.",
            "type": "string"
          },
          "session_id": {
            "description": "The chat session ID.",
            "type": "integer"
          },
          "web_search": {
            "description": "Enable web search augmentation.",
            "type": "boolean"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      },
      "name": "chat"
    },
    {
      "description": "Send a message and receive a streaming SSE response from the RAG chatbot.",
      "inputSchema": {
        "properties": {
          "message": {
            "type": "string"
          },
          "session_id": {
            "type": "integer"
          },
          "web_search": {
            "type": "boolean"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      },
      "name": "chat_stream"
    },
    {
      "description": "Check text for grammar, spelling, and style issues. Returns JSON corrections.",
      "inputSchema": {
        "properties": {
          "text": {
            "description": "Text to check (max 50000 characters).",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "name": "grammar_check"
    },
    {
      "description": "Get AI-powered writing feedback with mode selection (grammar, structure, argument, citations, improve, full_review).",
      "inputSchema": {
        "properties": {
          "mode": {
            "enum": [
              "full_review",
              "grammar",
              "structure",
              "argument",
              "citations",
              "improve"
            ],
            "type": "string"
          },
          "session_id": {
            "type": "integer"
          },
          "text": {
            "description": "Text to review (max 50000 characters).",
            "type": "string"
          }
        },
        "required": [
          "text",
          "session_id"
        ],
        "type": "object"
      },
      "name": "writer_feedback"
    },
    {
      "description": "Search Samoa legislation or case law using the legal research engine.",
      "inputSchema": {
        "properties": {
          "message": {
            "description": "Search query.",
            "type": "string"
          },
          "mode": {
            "enum": [
              "legislation",
              "caselaw"
            ],
            "type": "string"
          },
          "session_id": {
            "type": "integer"
          }
        },
        "required": [
          "message",
          "mode"
        ],
        "type": "object"
      },
      "name": "legal_search"
    },
    {
      "description": "Upload a document (PDF, DOCX, TXT, CSV, etc.) for processing and RAG indexing.",
      "inputSchema": {
        "properties": {
          "file": {
            "description": "Multipart file upload.",
            "format": "binary",
            "type": "string"
          },
          "session_id": {
            "type": "integer"
          }
        },
        "required": [
          "file",
          "session_id"
        ],
        "type": "object"
      },
      "name": "upload_document"
    },
    {
      "description": "List citations for a session. Supports export to APA, MLA, Chicago, Harvard, IEEE formats.",
      "inputSchema": {
        "properties": {
          "format": {
            "enum": [
              "text",
              "bibtex"
            ],
            "type": "string"
          },
          "session_id": {
            "type": "integer"
          },
          "style": {
            "enum": [
              "APA",
              "MLA",
              "Chicago",
              "Harvard",
              "IEEE"
            ],
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ],
        "type": "object"
      },
      "name": "list_citations"
    }
  ],
  "transport": {
    "endpoint": "https://arloplus.com/api",
    "type": "streamable-http"
  },
  "websiteUrl": "https://arloplus.com"
}