{
  "name": "Moperator Email Agent",
  "description": "Email for AI — the inbox for your AI agents. Query emails by label, search by sender or subject, and get email statistics. Built for LLMs and autonomous systems.",
  "url": "https://api.moperator.work",
  "version": "2.0.0",
  "capabilities": [
    {
      "name": "check_inbox",
      "description": "Check your email inbox. Returns a list of recent emails with sender, subject, labels, and preview.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "number",
            "description": "Max emails to return (default: 20, max: 100)"
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter by label(s)"
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "total": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "read_email",
      "description": "Read the full content of a specific email by ID.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "email_id": {
            "type": "string",
            "description": "Email ID to read"
          }
        },
        "required": [
          "email_id"
        ]
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "object"
          }
        }
      }
    },
    {
      "name": "search_emails",
      "description": "Search emails by sender, subject, or label. Uses partial matching.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Sender email (partial match)"
          },
          "subject": {
            "type": "string",
            "description": "Subject line (partial match)"
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter by label(s)"
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "count": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "list_labels",
      "description": "List all available labels for organizing emails.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      }
    },
    {
      "name": "email_stats",
      "description": "Get email processing statistics - total count, emails per label, etc.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number"
          },
          "byLabel": {
            "type": "object"
          },
          "avgProcessingTimeMs": {
            "type": "number"
          }
        }
      }
    }
  ],
  "authentication": {
    "type": "bearer",
    "instructions": "Include your Moperator API key in the Authorization header: Bearer mop_xxx"
  }
}