Инструменты
Все инструменты, которые предлагает сервер, право, нужное каждому из них, их параметры и форма ответов.
На этой странице
Список ниже сформирован самим сервером: имена, права и параметры совпадают с теми, что клиент получает из tools/list, а описания даны собственными словами сервера. Подключению показываются только инструменты, которые покрывают его права; whoami, get_connections и get_request_status доступны любому авторизованному подключению.
Справочник#
Инструменты чтения
11Ничего не меняют.
whoami
Who is connectedЧитаетThe EcoMark member this connection acts as: name, role, agency, time zone, and the permissions this connection holds. Call it first to learn the time zone and what the other tools may do.
РазрешениеЛюбое авторизованное подключение
Без параметров.
get_connections
Connected servicesЧитаетWhich services (Gmail, WhatsApp, Slack, Microsoft 365, Google Drive, DocuSign, Zoom, Motion, Calendly, Dropbox) are connected in EcoMark for this member, and what the member may use of each. Nothing is connected or changed from here: connecting happens in EcoMark under Settings → Integrations.
РазрешениеЛюбое авторизованное подключение
Без параметров.
list_properties
List propertiesЧитаетThe agency's listings this member can see, newest change first. Filter by status or by words in the title, city or address.
Разрешение
properties:readПросмотр объектовПараметры (4)
statusstringнеобязательныйОдно из:
draft,published,needs_attention,archivedsearchstringнеобязательныйWords to look for in the name or title.
От 1 до 80 символов
limitintegerнеобязательныйHow many to return (default 20, at most 50).
От 1 до 50
cursorstringнеобязательный`nextCursor` from the previous page.
До 40 символов
get_property
Property detailsЧитаетOne listing in full: description, features, address, readiness, views and inquiries in the last 30 days, and what is attached to it (photos, documents, tours).
Разрешение
properties:readПросмотр объектовПараметры (1)
propertyIdstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
list_leads
List leadsЧитаетLeads in this member's pipeline (an admin: the agency's), most recently active first. Filter by stage, temperature, overdue follow-up, or words in the name. Contact details are not in the list; use get_lead for one lead.
Разрешение
leads:readПросмотр лидовПараметры (6)
stagestringнеобязательныйОдно из:
new,contacted,qualified,appointment,negotiation,won,losttemperaturestringнеобязательныйОдно из:
hot,warm,cold,needs_qualificationfollowUpOverduebooleanнеобязательныйtrue: only leads whose next action is past due.
searchstringнеобязательныйWords to look for in the name or title.
От 1 до 80 символов
limitintegerнеобязательныйHow many to return (default 20, at most 50).
От 1 до 50
cursorstringнеобязательный`nextCursor` from the previous page.
До 40 символов
get_lead
Lead detailsЧитаетOne lead in full: contact details, what they are looking for, the latest notes and activity, and their upcoming appointments.
Разрешение
leads:readПросмотр лидовПараметры (1)
leadIdstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
list_appointments
List appointmentsЧитаетAppointments this member can see that overlap a period (default: the next 14 days; at most 62 days), earliest first.
Разрешение
calendar:readПросмотр встреч, задач и свободного времениПараметры (5)
fromdate-timeнеобязательныйStart of the period, ISO 8601 with offset. Default: now.
todate-timeнеобязательныйEnd of the period, ISO 8601 with offset.
statusstringнеобязательныйОдно из:
scheduled,pending,confirmed,completed,cancelled,no_showlimitintegerнеобязательныйHow many to return (default 20, at most 50).
От 1 до 50
cursorstringнеобязательный`nextCursor` from the previous page.
До 40 символов
list_tasks
List tasks and remindersЧитаетTasks and reminders on this member's calendar (an admin: the agency's), by due time. By default the open ones due in the next 14 days, plus anything overdue.
Разрешение
calendar:readПросмотр встреч, задач и свободного времениПараметры (5)
fromdate-timeнеобязательныйOnly items due at or after this instant. Default: no lower bound for open items.
todate-timeнеобязательныйOnly items due before this instant. Default: 14 days from now.
donebooleanнеобязательныйtrue: finished items; false (default): open ones.
limitintegerнеобязательныйHow many to return (default 20, at most 50).
От 1 до 50
cursorstringнеобязательный`nextCursor` from the previous page.
До 40 символов
check_availability
Check availabilityЧитаетWhen a member is busy and when they are free, in a period of at most 14 days: busy time from EcoMark appointments and tasks (and from the Outlook calendar this member may read, and from a Google Calendar they connected themself), and free slots of the asked length inside the agency's working hours. An agent can only ask about themself; an admin may name another member.
Разрешение
calendar:readПросмотр встреч, задач и свободного времениПараметры (4)
fromdate-timeобязательныйStart of the period, ISO 8601 with offset.
todate-timeобязательныйEnd of the period, ISO 8601 with offset.
durationMinutesintegerнеобязательныйLength of the slot wanted (default 30).
От 15 до 480
memberIdstringнеобязательныйAdmins only: the member to check. Default: the connected member.
От 1 до 80 символов
get_metrics
Performance summaryЧитаетPipeline, appointments and listings in numbers for the last week or month. An agent gets their own assignments; an admin gets the agency. These are the same figures EcoMark's own performance summary uses.
Разрешение
metrics:readПросмотр показателей эффективностиПараметры (1)
rangestringнеобязательныйDefault: week.
Одно из:
week,month
get_request_status
Status of a requestЧитаетWhat the member decided about a request made with request_publish or request_send_message: pending, approved (and what happened), rejected, expired or failed.
РазрешениеЛюбое авторизованное подключение
Параметры (1)
requestIdstringобязательныйШаблон:
^mrq_[a-f0-9]{24}$
Инструменты записи
10Меняют собственные записи EcoMark. Клиенту ничего не отправляется, и ничего не становится публичным.
create_task
Create a task or reminderЗаписываетAdd a task or a reminder to the connected member's own calendar in EcoMark, optionally linked to a lead or a property they can see. Nothing is sent to anyone.
Разрешение
calendar:writeСоздание и изменение встреч и задачПараметры (6)
titlestringобязательныйОт 1 до 140 символов
dueAtdate-timeобязательныйWhen it is due, ISO 8601 with offset.
durationMinutesintegerнеобязательныйDefault 30. A reminder takes at most 60.
От 5 до 720
kindstringнеобязательныйDefault: task.
Одно из:
task,reminderlinkedToobjectнеобязательныйtypestringобязательныйОдно из:
lead,propertyidstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
update_task
Update a task or reminderЗаписываетChange a task or reminder the connected member can see: its title, when it is due, how long it takes, or whether it is done.
Разрешение
calendar:writeСоздание и изменение встреч и задачПараметры (6)
taskIdstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
titlestringнеобязательныйОт 1 до 140 символов
dueAtdate-timeнеобязательныйdurationMinutesintegerнеобязательныйОт 5 до 720
donebooleanнеобязательныйidempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
create_appointment
Create an appointmentЗаписываетPut an appointment on the connected member's own calendar in EcoMark, optionally for a lead and a property they can see. It is an EcoMark record only: no invitation, e-mail or message goes to the client, and no Zoom or Teams room is opened (that is done in EcoMark). The answer lists any of the member's appointments it overlaps.
Разрешение
calendar:writeСоздание и изменение встреч и задачПараметры (9)
titlestringобязательныйОт 1 до 140 символов
startsAtdate-timeобязательныйISO 8601 with offset; must be in the future.
durationMinutesintegerнеобязательныйDefault 30.
От 15 до 480
kindstringнеобязательныйDefault: consultation.
Одно из:
consultation,property_tour,listing_presentation,virtual_meeting,closingleadIdstringнеобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
propertyIdstringнеобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
locationstringнеобязательныйДо 160 символов
notesstringнеобязательныйДо 1 000 символов
idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
update_appointment
Update an appointmentЗаписываетChange an appointment the connected member can see: title, time, length, place, notes, or its status (confirm, complete, cancel, no_show, reopen). An appointment with a Zoom or Teams meeting, or one booked through Calendly, cannot be moved or cancelled from here — that also changes what the client was sent, so it is done in EcoMark. Appointments are never deleted from here.
Разрешение
calendar:writeСоздание и изменение встреч и задачПараметры (8)
appointmentIdstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
titlestringнеобязательныйОт 1 до 140 символов
startsAtdate-timeнеобязательныйdurationMinutesintegerнеобязательныйОт 15 до 480
locationstring | nullнеобязательныйДо 160 символов
notesstring | nullнеобязательныйДо 1 000 символов
statusstringнеобязательныйОдно из:
confirm,complete,cancel,no_show,reopenidempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
update_lead
Update a leadЗаписываетMove a lead the connected member can see to another stage, change its temperature, or set its next step and when it is due. A lead is never reassigned or deleted from here, and its contact details are not changed from here.
Разрешение
leads:writeОбновление лидов и добавление заметокПараметры (7)
leadIdstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
stagestringнеобязательныйОдно из:
new,contacted,qualified,appointment,negotiation,won,lostlostReasonstringнеобязательныйOnly with stage "lost".
До 200 символов
temperaturestringнеобязательныйОдно из:
hot,warm,cold,needs_qualificationnextActionstring | nullнеобязательныйThe next step, or null to clear it.
До 200 символов
nextActionAtdate-time | nullнеобязательныйWhen the next step is due, or null.
idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
add_lead_note
Add a note to a leadЗаписываетAdd an internal note to a lead the connected member can see. Notes are for the agency: the client never sees them.
Разрешение
leads:writeОбновление лидов и добавление заметокПараметры (3)
leadIdstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
textstringобязательныйОт 1 до 2 000 символов
idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
draft_message
Draft a messageЗаписываетSave a draft e-mail or WhatsApp message in EcoMark Messages, for a lead the connected member can see or in a conversation they can see. Nothing is sent: the draft waits in Messages for the member to read, change and send. To ask the member to send it as it is, use request_send_message afterwards.
Разрешение
messages:draftПодготовка черновиков сообщений без отправкиПараметры (6)
channelstringобязательныйОдно из:
email,whatsappleadIdstringнеобязательныйThe lead to write to (their e-mail address or phone number in EcoMark is used). Give this or conversationId.
От 1 до 80 символов
conversationIdstringнеобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
subjectstringнеобязательныйE-mail only.
До 200 символов
bodystringобязательныйОт 1 до 10 000 символов
idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
create_link_draft
Create a draft linkЗаписываетPrepare a short link in EcoMark Links — to a published listing the connected member can see, or to an HTTPS address — as a DRAFT. A draft link does not work for visitors. Making it live is the member's decision: use request_publish.
Разрешение
links:draftСоздание черновиков ссылок, QR-кодов и подборок без публикацииПараметры (5)
titlestringобязательныйОт 2 до 120 символов
propertyIdstringнеобязательныйA published listing. Give this or destinationUrl.
От 1 до 80 символов
destinationUrlstringнеобязательныйДо 500 символов
slugstringнеобязательныйLower-case letters, digits and hyphens. Default: made from the title.
От 2 до 60 символов
Шаблон:
^[a-z0-9]+(?:-[a-z0-9]+)*$idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
create_qr_draft
Create a draft QR codeЗаписываетPrepare a QR code in EcoMark — for a published listing, for one of the member's live links, or for an HTTPS address — as a DRAFT. A draft code does not resolve when scanned. Making it live is the member's decision: use request_publish.
Разрешение
links:draftСоздание черновиков ссылок, QR-кодов и подборок без публикацииПараметры (6)
titlestringобязательныйОт 2 до 120 символов
propertyIdstringнеобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
linkIdstringнеобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
destinationUrlstringнеобязательныйДо 500 символов
campaignstringнеобязательныйДо 80 символов
idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
create_portfolio_draft
Create an unpublished portfolioЗаписываетPut together a portfolio of listings the connected member can see, optionally for one of their leads. It is saved in EcoMark Portfolios unpublished: it has no public page until the member publishes it (request_publish).
Разрешение
links:draftСоздание черновиков ссылок, QR-кодов и подборок без публикацииПараметры (6)
titlestringобязательныйОт 2 до 120 символов
propertyIdsstring[]обязательныйОт 1 до 12 элементов
kindstringнеобязательныйDefault: property. "client" goes with leadId.
Одно из:
property,client,presentationleadIdstringнеобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
introstringнеобязательныйДо 1 200 символов
idempotencyKeystringнеобязательныйOptional. A value of your own, the same on every retry of this one request: it is then carried out once. Without it, identical arguments within ten minutes count as the same request.
Шаблон:
^[\x21-\x7e]{8,80}$
Инструменты запроса одобрения
2Создают запрос, который участник одобряет или отклоняет внутри EcoMark.
request_publish
Ask to publishЗапрашиваетAsk the connected member to make a draft link, a draft QR code or an unpublished portfolio public. This does NOT publish anything: it files a request the member approves or rejects in EcoMark. Returns the address to open and a requestId for get_request_status.
Разрешение
links:draftСоздание черновиков ссылок, QR-кодов и подборок без публикацииПараметры (2)
typestringобязательныйОдно из:
link,qr,portfolioidstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
request_send_message
Ask to send a draftЗапрашиваетAsk the connected member to send one of their draft messages (from draft_message) to the client, as it is. This does NOT send anything: it files a request the member approves or rejects in EcoMark, where they see the full text. If the draft is edited afterwards the request no longer applies. Returns the address to open and a requestId for get_request_status.
Разрешение
messages:draftПодготовка черновиков сообщений без отправкиПараметры (1)
messageIdstringобязательныйAn id returned by another EcoMark tool.
От 1 до 80 символов
Названия и описания взяты из собственного справочного текста сервера на английском языке.
Соглашения#
- Идентичность: от чьего имени выполняется запрос, определяется токеном. Ни у одного инструмента нет аргумента для агентства или для действующего участника; если такой аргумент всё же передан, например
agencyId, он ничего не меняет. - Время указывается в ISO 8601 со смещением, например
2026-10-09T10:00:00+02:00. Ответы приходят в UTC.whoamiсообщает часовой пояс участника. - Идентификаторы берутся из других инструментов EcoMark. Клиент никогда не придумывает их сам.
- Списки разбиты на страницы: на входе
limitиcursor, на выходеtotalиnextCursor. На последней страницеnextCursorравенnull. - Обратные ссылки: многие ответы содержат
openInEcoMark(адрес записи в продукте). - Текст внутри записей (имена, заметки, сообщения) написан другими людьми. Сервер указывает клиентам относиться к нему как к данным, о которых нужно сообщить, а не как к инструкциям, которые нужно выполнить.
Как устроен ответ#
Каждый инструмент отвечает одним и тем же значением дважды: как JSON-текстом в content[0].text (для клиентов, которые читают текст) и как structuredContent (для клиентов, которые читают структуру). Если инструмент не смог выполнить запрос, значение имеет вид { "error": { "code", "message" } }, а результат содержит isError: true. Коды перечислены в разделе Ошибки и ограничения.
{"result":{"content":[{"type":"text","text":"{\"error\":{\"code\":\"not_found\",\"message\":\"No lead with that id is available to this member.\"}}"}],"structuredContent":{"error":{"code":"not_found","message":"No lead with that id is available to this member."}},"isError":true},"jsonrpc":"2.0","id":8}Чтение от начала до конца#
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "list_leads",
"arguments": {
"followUpOverdue": true,
"limit": 2
}
}
}{
"leads": [
{
"id": "lead_vidal",
"name": "Carmen Vidal",
"stage": "negotiation",
"temperature": "hot",
"source": "direct",
"objective": "acquire",
"market": "Madrid",
"assignedTo": "Marco Bellini",
"nextAction": "Counter-offer on Serrano 88",
"nextActionAt": "2026-10-07T12:30:00.000Z",
"lastActivityAt": "2026-10-07T22:38:51.350Z"
},
{
"id": "lead_petrov",
"name": "Ilya Petrov",
"stage": "contacted",
"temperature": "warm",
"source": "email",
"objective": "rent",
"market": "Moscow",
"assignedTo": "Marco Bellini",
"nextAction": "Confirm viewing window",
"nextActionAt": "2026-10-06T10:00:00.000Z",
"lastActivityAt": "2026-10-04T07:38:51.350Z"
}
],
"total": 3,
"nextCursor": "Mg"
}Запись от начала до конца#
Запись изменяет собственные записи EcoMark от вашего имени. Если у записи есть история (у лида, встречи, подборки), в ней указано, что изменение сделано через клиент. Каждая запись регистрируется до выполнения, поэтому повторная попытка не может выполнить её дважды.
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "create_task",
"arguments": {
"title": "Call the notary",
"dueAt": "2026-10-09T10:00:00+02:00",
"durationMinutes": 20,
"idempotencyKey": "task-notary-0001"
}
}
}{
"task": {
"id": "cal_muyvbfgb18qhy",
"kind": "task",
"title": "Call the notary",
"dueAt": "2026-10-09T08:00:00.000Z",
"durationMinutes": 20
},
"openInEcoMark": "https://www.ecomarkai.com/calendar"
}Тот же запрос, отправленный повторно, получает первый ответ с пометкой replayed. Во второй раз ничего не записывается.
{
"task": {
"id": "cal_muyvbfgb18qhy",
"kind": "task",
"title": "Call the notary",
"dueAt": "2026-10-09T08:00:00.000Z",
"durationMinutes": 20
},
"openInEcoMark": "https://www.ecomarkai.com/calendar",
"replayed": true
}Без idempotencyKey одинаковые аргументы в течение короткого окна считаются одним и тем же запросом; длительность окна указана в группе «Повторные записи» в разделе Ошибки и ограничения. Тот же ключ с другими аргументами отклоняется с conflict.
К чему запись может привести внутри агентства
Запись ничего не отправляет клиентам и ничего не делает публичным. Если агентство подключило Slack и включило в нём уведомления о бронированиях или горячих лидах, встреча, созданная, перенесённая или отменённая через клиент, или лид, ставший горячим, объявляется в канале агентства точно так же, как если бы вы сделали это в EcoMark.
Одобрение от начала до конца#
Публикация и отправка оформляются как запросы. Клиент сначала готовит черновик, затем просит, а решаете вы, в EcoMark.
{
"title": "Open house Saturday",
"destinationUrl": "https://example.com/open-house"
}{
"link": {
"id": "link_muyvbfgv248z8",
"title": "Open house Saturday",
"state": "draft",
"address": "https://www.ecomarkai.com/l/meridian/open-house-saturday",
"pointsTo": "https://example.com/open-house"
},
"live": false,
"openInEcoMark": "https://www.ecomarkai.com/links/link_muyvbfgv248z8"
}{
"type": "link",
"id": "link_muyvbfgv248z8"
}{
"status": "approval_required",
"requestId": "mrq_1fa5bf53ceae4aa1995193f6",
"approveInEcoMark": "https://www.ecomarkai.com/settings/integrations/requests/mrq_1fa5bf53ceae4aa1995193f6",
"expiresAt": "2026-10-09T01:38:51.537Z",
"alreadyRequested": false,
"note": "Nothing has been published or sent. The member has to open the link, signed in to EcoMark, and approve it there. Use get_request_status to see what they decided."
}На этом этапе ничего не изменилось: ссылка всё ещё черновик. Вы получаете уведомление в EcoMark с кнопкой Проверка запроса, а запрос появляется в разделе Приложения → Внешние ассистенты → Ожидает вашего одобрения. Результат клиент узнаёт через get_request_status.
{
"requestId": "mrq_1fa5bf53ceae4aa1995193f6",
"kind": "publish",
"status": "pending",
"result": null,
"requestedAt": "2026-10-08T01:38:51.537Z",
"resolvedAt": null,
"approveInEcoMark": "https://www.ecomarkai.com/settings/integrations/requests/mrq_1fa5bf53ceae4aa1995193f6"
}{
"requestId": "mrq_1fa5bf53ceae4aa1995193f6",
"kind": "publish",
"status": "approved",
"result": {
"published": "link",
"id": "link_muyvbfgv248z8"
},
"requestedAt": "2026-10-08T01:38:51.537Z",
"resolvedAt": "2026-10-08T01:52:07.118Z"
}Подробнее об одобрениях и о том, что происходит, когда запрос отклонён, просрочен или не выполнен, см. в разделе Права доступа и одобрения.