Перейти к содержимому

Инструменты

Все инструменты, которые предлагает сервер, право, нужное каждому из них, их параметры и форма ответов.

На этой странице

Список ниже сформирован самим сервером: имена, права и параметры совпадают с теми, что клиент получает из 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, archived

    • 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_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, lost

    • temperaturestringнеобязательный

      Одно из: hot, warm, cold, needs_qualification

    • followUpOverduebooleanнеобязательный

      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_show

    • limitintegerнеобязательный

      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, reminder

    • linkedToobjectнеобязательный
      • typestringобязательный

        Одно из: lead, property

      • idstringобязательный

        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, closing

    • leadIdstringнеобязательный

      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, reopen

    • 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_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, lost

    • lostReasonstringнеобязательный

      Only with stage "lost".

      До 200 символов

    • temperaturestringнеобязательный

      Одно из: hot, warm, cold, needs_qualification

    • nextActionstring | 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, whatsapp

    • leadIdstringнеобязательный

      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_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, presentation

    • leadIdstringнеобязательный

      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, portfolio

    • idstringобязательный

      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. Коды перечислены в разделе Ошибки и ограничения.

Результат инструмента при передаче: ответ JSON-RPC
{"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
    }
  }
}
structuredContent ответа
{
  "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"
    }
  }
}
structuredContent ответа
{
  "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. Во второй раз ничего не записывается.

structuredContent ответа на тот же запрос, отправленный повторно
{
  "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.

create_link_draft: аргументы
{
  "title": "Open house Saturday",
  "destinationUrl": "https://example.com/open-house"
}
create_link_draft: structuredContent ответа
{
  "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"
}
request_publish: аргументы
{
  "type": "link",
  "id": "link_muyvbfgv248z8"
}
request_publish: structuredContent ответа
{
  "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.

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"
}
get_request_status после вашего одобрения
{
  "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"
}

Подробнее об одобрениях и о том, что происходит, когда запрос отклонён, просрочен или не выполнен, см. в разделе Права доступа и одобрения.