Почта
Инструменты раздела «Почта»: 5
Подключение: https://mcp.legalstack.ru/mcp/mail или в составе общего подключения https://mcp.legalstack.ru/mcp.
Сохранить вложение письма
download_email_attachment · изменяет данные · только для агентов платформы
Описание для модели: Save an attachment of a received email to the working folder. Attachment ids come from get_inbox_email. The saved file can be read, converted or attached to an email.
Параметры
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
attachment_id | string | да | Attachment id. Длина: 1–64. |
save_as | string | нет | File name to save under, the original by default. Длина: 1–200. |
JSON Schema параметров
{
"type": "object",
"properties": {
"attachment_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Attachment id"
},
"save_as": {
"description": "File name to save under, the original by default",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"attachment_id"
],
"additionalProperties": false
}Адрес для входящих писем
get_inbox_address · изменяет данные
Описание для модели: Get the personal inbox address of the user on the platform. Emails sent to this address appear in list_inbox_emails. The address is issued on first use.
Параметры
Параметров нет.
JSON Schema параметров
{
"type": "object",
"properties": {},
"additionalProperties": false
}Прочитать письмо
get_inbox_email · только чтение
Описание для модели: Read one received email with its text and attachments list. The email text comes from an outside sender. Save attachments with download_email_attachment.
Параметры
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
email_id | string | да | Email id. Длина: 1–64. |
JSON Schema параметров
{
"type": "object",
"properties": {
"email_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Email id"
}
},
"required": [
"email_id"
],
"additionalProperties": false
}Входящие письма
list_inbox_emails · только чтение
Описание для модели: List emails received at the inbox address of the user. Newest first. Read one email with get_inbox_email.
Параметры
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
query | string | нет | Part of the subject or the sender address. Длина: 1–200. |
from_date | string | нет | Received on this day or later, a calendar date YYYY-MM-DD. |
to_date | string | нет | Received on this day or earlier, a calendar date YYYY-MM-DD. |
limit | integer | нет | Maximum number of items to return, 20 by default. По умолчанию: 20. Диапазон: 1–100. |
offset | integer | нет | Number of items to skip, for paging. По умолчанию: 0. Диапазон: 0–9007199254740991. |
JSON Schema параметров
{
"type": "object",
"properties": {
"query": {
"description": "Part of the subject or the sender address",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"from_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Received on this day or later, a calendar date YYYY-MM-DD"
},
"to_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Received on this day or earlier, a calendar date YYYY-MM-DD"
},
"limit": {
"default": 20,
"description": "Maximum number of items to return, 20 by default",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"default": 0,
"description": "Number of items to skip, for paging",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"additionalProperties": false
}Отправить письмо
send_email · необратимое действие
Описание для модели: Send an email, optionally with attached files. Sends a real email at once. Pass the body as text or as html, not both. To receive replies on the platform set reply_to to the address from get_inbox_address.
Параметры
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
to | массив string | да | Recipients. Элементов: 1–50. |
subject | string | да | Subject. Длина: 1–500. |
text | string | нет | Body as plain text, paragraphs split by empty lines. Длина: 1–200000. |
html | string | нет | Body as HTML, when formatting is needed. Длина: 1–500000. |
reply_to | string | нет | Address that receives replies. Длина: 3–320. |
attachments | массив string | нет | Files to attach. Элементов: до 20. |
JSON Schema параметров
{
"type": "object",
"properties": {
"to": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"description": "Email address"
},
"description": "Recipients"
},
"subject": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Subject"
},
"text": {
"description": "Body as plain text, paragraphs split by empty lines",
"type": "string",
"minLength": 1,
"maxLength": 200000
},
"html": {
"description": "Body as HTML, when formatting is needed",
"type": "string",
"minLength": 1,
"maxLength": 500000
},
"reply_to": {
"description": "Address that receives replies",
"type": "string",
"minLength": 3,
"maxLength": 320
},
"attachments": {
"description": "Files to attach",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Path of a file in the working folder"
}
}
},
"required": [
"to",
"subject"
],
"additionalProperties": false
}