Email Organizer
agent.json
{
"id": "agentrove.email-organizer",
"name": "Email Organizer",
"version": "0.1.2",
"license": "MIT",
"summary": "Parses local .eml / mbox text (headers, MIME, quoted-printable, base64, encoded-word subjects), triages messages with transparent rules and reasons, and proposes filter rules as data. Never sends or changes mail.",
"description": "Offline email triage. You paste or pipe the raw text of .eml files or an mbox export; the agent parses it, applies your VIP and keyword rules plus newsletter and reply-needed heuristics, and explains every decision. Filter suggestions are returned as data for you to review and create yourself in your mail client.",
"tools": [
{
"name": "parse_messages",
"description": "Parse RFC 5322 .eml text or mbox text into structured messages (decoded subject, addresses, ISO date, text body, attachment metadata). Attachment contents are never returned.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"required": [
"raw"
],
"additionalProperties": false,
"properties": {
"raw": {
"type": [
"string",
"array"
],
"description": "Raw .eml text, mbox text, or an array of raw .eml texts.",
"maxLength": 25000000,
"maxItems": 1000,
"items": {
"type": "string",
"maxLength": 10000000
}
},
"format": {
"type": "string",
"enum": [
"auto",
"eml",
"mbox"
],
"description": "Defaults to auto (mbox when the text starts with a 'From ' envelope line)."
},
"max_messages": {
"type": "integer",
"minimum": 1,
"maximum": 5000,
"description": "Default 1000."
},
"max_body_chars": {
"type": "integer",
"minimum": 100,
"maximum": 200000,
"description": "Per-message body cap. Default 20000."
}
}
},
"output_schema": {
"type": "object",
"required": [
"messages",
"count",
"warnings"
],
"properties": {
"count": {
"type": "integer",
"minimum": 0
},
"truncated": {
"type": "boolean"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"from",
"to",
"subject",
"date",
"body_text"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"message_id": {
"type": [
"string",
"null"
]
},
"from": {
"type": "string"
},
"from_address": {
"type": [
"string",
"null"
]
},
"from_name": {
"type": "string"
},
"to": {
"type": "array",
"items": {
"type": "string"
}
},
"cc": {
"type": "array",
"items": {
"type": "string"
}
},
"reply_to": {
"type": "array",
"items": {
"type": "string"
}
},
"subject": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"date_raw": {
"type": [
"string",
"null"
]
},
"body_text": {
"type": "string"
},
"body_source": {
"type": "string",
"enum": [
"text/plain",
"text/html",
"none"
]
},
"list_unsubscribe": {
"type": [
"string",
"null"
]
},
"list_id": {
"type": [
"string",
"null"
]
},
"precedence": {
"type": [
"string",
"null"
]
},
"auto_submitted": {
"type": [
"string",
"null"
]
},
"in_reply_to": {
"type": [
"string",
"null"
]
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": [
"filename",
"content_type",
"size_bytes"
],
"properties": {
"filename": {
"type": "string"
},
"content_type": {
"type": "string"
},
"size_bytes": {
"type": "integer",
"minimum": 0
}
}
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
{
"name": "triage",
"description": "Categorise and prioritise parsed messages using your VIP senders and keyword rules, newsletter detection (List-Unsubscribe / List-Id) and reply-needed heuristics (direct questions, request phrases, dated deadlines). Every decision lists its reasons.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"required": [
"messages"
],
"additionalProperties": false,
"properties": {
"messages": {
"type": "array",
"maxItems": 5000,
"description": "email_messages, e.g. the output of parse_messages.",
"items": {
"type": "object",
"required": [
"id",
"from",
"subject",
"body_text"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"from": {
"type": "string"
},
"from_address": {
"type": [
"string",
"null"
]
},
"to": {
"type": [
"array",
"string"
],
"items": {
"type": "string"
}
},
"cc": {
"type": [
"array",
"string"
],
"items": {
"type": "string"
}
},
"subject": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"body_text": {
"type": "string"
},
"list_unsubscribe": {
"type": [
"string",
"null"
]
},
"list_id": {
"type": [
"string",
"null"
]
},
"precedence": {
"type": [
"string",
"null"
]
},
"auto_submitted": {
"type": [
"string",
"null"
]
}
}
}
},
"rules": {
"type": "object",
"additionalProperties": false,
"properties": {
"vip_senders": {
"type": "array",
"maxItems": 500,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 320
},
"description": "Exact addresses (alice@example.com), @domain or bare domain."
},
"my_addresses": {
"type": "array",
"maxItems": 50,
"items": {
"type": "string",
"minLength": 3,
"maxLength": 320
}
},
"keyword_rules": {
"type": "array",
"maxItems": 200,
"items": {
"type": "object",
"required": [
"keywords"
],
"additionalProperties": false,
"properties": {
"keywords": {
"type": "array",
"minItems": 1,
"maxItems": 50,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"field": {
"type": "string",
"enum": [
"subject",
"body",
"any"
]
},
"category": {
"type": "string",
"pattern": "^[a-z0-9_-]{1,40}$"
},
"priority": {
"type": "string",
"enum": [
"high",
"normal",
"low"
]
}
}
}
},
"urgent_within_days": {
"type": "integer",
"minimum": 0,
"maximum": 30
},
"newsletter_detection": {
"type": "boolean"
}
}
},
"now": {
"type": "string",
"format": "date-time",
"description": "Reference time for deadline urgency. Defaults to the current time."
}
}
},
"output_schema": {
"type": "object",
"required": [
"messages",
"summary"
],
"properties": {
"generated_at": {
"type": "string"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"category",
"priority",
"reasons"
],
"properties": {
"id": {
"type": "string"
},
"category": {
"type": "string"
},
"priority": {
"type": "string",
"enum": [
"high",
"normal",
"low"
]
},
"reply_needed": {
"type": "boolean"
},
"deadlines": {
"type": "array",
"items": {
"type": "object",
"required": [
"text",
"date"
],
"properties": {
"text": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
}
}
}
},
"reasons": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
}
}
}
},
"summary": {
"type": "object",
"required": [
"total",
"by_category",
"by_priority",
"reply_needed"
],
"properties": {
"total": {
"type": "integer"
},
"by_category": {
"type": "object"
},
"by_priority": {
"type": "object"
},
"reply_needed": {
"type": "integer"
},
"order": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
{
"name": "suggest_filters",
"description": "Propose mail filter rules (as data) for recurring newsletters, automated notifications, subject tags and VIP senders. Nothing is applied: review and create the filters yourself in your mail client.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"required": [
"messages"
],
"additionalProperties": false,
"properties": {
"messages": {
"type": "array",
"maxItems": 5000,
"items": {
"type": "object",
"required": [
"id",
"from",
"subject"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"from": {
"type": "string"
},
"from_address": {
"type": [
"string",
"null"
]
},
"subject": {
"type": "string"
},
"list_unsubscribe": {
"type": [
"string",
"null"
]
},
"list_id": {
"type": [
"string",
"null"
]
},
"precedence": {
"type": [
"string",
"null"
]
},
"auto_submitted": {
"type": [
"string",
"null"
]
}
}
}
},
"triage": {
"type": "object",
"description": "Optional email_triage output; enables VIP filter suggestions.",
"properties": {
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"category"
],
"properties": {
"id": {
"type": "string"
},
"category": {
"type": "string"
}
}
}
}
}
},
"min_group_size": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Messages needed before a group earns a filter. Default 2."
}
}
},
"output_schema": {
"type": "object",
"required": [
"filters",
"applied",
"note"
],
"properties": {
"applied": {
"type": "boolean",
"enum": [
false
]
},
"note": {
"type": "string"
},
"filters": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"kind",
"description",
"criteria",
"actions",
"matches",
"rationale"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"newsletter",
"notification",
"subject_tag",
"vip"
]
},
"description": {
"type": "string"
},
"criteria": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"from_domain": {
"type": "string"
},
"list_id": {
"type": "string"
},
"subject_contains": {
"type": "string"
},
"has_list_unsubscribe": {
"type": "boolean"
}
}
},
"actions": {
"type": "object",
"required": [
"label"
],
"properties": {
"label": {
"type": "string"
},
"skip_inbox": {
"type": "boolean"
},
"star": {
"type": "boolean"
}
}
},
"matches": {
"type": "array",
"items": {
"type": "string"
}
},
"rationale": {
"type": "string"
}
}
}
}
}
}
}
],
"permissions": {
"filesystem": "none",
"network": [],
"credentials": []
},
"io": {
"inputs": [
{
"name": "raw",
"type": "text"
},
{
"name": "messages",
"type": "email_messages"
}
],
"outputs": [
{
"name": "messages",
"type": "email_messages"
},
{
"name": "triage",
"type": "email_triage"
}
]
},
"runtimes": [
{
"id": "node",
"version": ">=20",
"tested": true
},
{
"id": "claude-code",
"tested": false,
"notes": "MCP stdio server; not yet verified in Claude Code by AgentRove"
}
],
"external_costs": "None. Runs entirely offline on text you supply; no network access, no API keys, no paid services."
}