Saltar para o conteúdo

Ferramentas

Todas as ferramentas que o servidor oferece, a permissão de que cada uma precisa, os respetivos parâmetros e a forma das respostas.

Nesta página

A lista abaixo é gerada a partir do próprio servidor: os nomes, as permissões e os parâmetros são os que um cliente recebe de tools/list, e as descrições são as palavras do próprio servidor. A uma ligação só são mostradas as ferramentas abrangidas pelas suas permissões; whoami, get_connections e get_request_status estão disponíveis para qualquer ligação autorizada.

Referência#

Ferramentas que leem

11

Não alteram nada.

  • whoami

    Who is connectedLê

    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.

    PermissãoQualquer ligação autorizada

    Sem parâmetros.

  • get_connections

    Connected servicesLê

    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.

    PermissãoQualquer ligação autorizada

    Sem parâmetros.

  • list_properties

    List propertiesLê

    The agency's listings this member can see, newest change first. Filter by status or by words in the title, city or address.

    Permissãoproperties:readVer imóveis

    Parâmetros (4)
    • statusstringopcional

      Um de: draft, published, needs_attention, archived

    • searchstringopcional

      Words to look for in the name or title.

      De 1 a 80 caracteres

    • limitintegeropcional

      How many to return (default 20, at most 50).

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Até 40 caracteres

  • get_property

    Property detailsLê

    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).

    Permissãoproperties:readVer imóveis

    Parâmetros (1)
    • propertyIdstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

  • list_leads

    List leadsLê

    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.

    Permissãoleads:readVer leads

    Parâmetros (6)
    • stagestringopcional

      Um de: new, contacted, qualified, appointment, negotiation, won, lost

    • temperaturestringopcional

      Um de: hot, warm, cold, needs_qualification

    • followUpOverduebooleanopcional

      true: only leads whose next action is past due.

    • searchstringopcional

      Words to look for in the name or title.

      De 1 a 80 caracteres

    • limitintegeropcional

      How many to return (default 20, at most 50).

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Até 40 caracteres

  • get_lead

    Lead detailsLê

    One lead in full: contact details, what they are looking for, the latest notes and activity, and their upcoming appointments.

    Permissãoleads:readVer leads

    Parâmetros (1)
    • leadIdstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

  • list_appointments

    List appointmentsLê

    Appointments this member can see that overlap a period (default: the next 14 days; at most 62 days), earliest first.

    Permissãocalendar:readVer marcações, tarefas e disponibilidade

    Parâmetros (5)
    • fromdate-timeopcional

      Start of the period, ISO 8601 with offset. Default: now.

    • todate-timeopcional

      End of the period, ISO 8601 with offset.

    • statusstringopcional

      Um de: scheduled, pending, confirmed, completed, cancelled, no_show

    • limitintegeropcional

      How many to return (default 20, at most 50).

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Até 40 caracteres

  • list_tasks

    List tasks and remindersLê

    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.

    Permissãocalendar:readVer marcações, tarefas e disponibilidade

    Parâmetros (5)
    • fromdate-timeopcional

      Only items due at or after this instant. Default: no lower bound for open items.

    • todate-timeopcional

      Only items due before this instant. Default: 14 days from now.

    • donebooleanopcional

      true: finished items; false (default): open ones.

    • limitintegeropcional

      How many to return (default 20, at most 50).

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Até 40 caracteres

  • check_availability

    Check availabilityLê

    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.

    Permissãocalendar:readVer marcações, tarefas e disponibilidade

    Parâmetros (4)
    • fromdate-timeobrigatório

      Start of the period, ISO 8601 with offset.

    • todate-timeobrigatório

      End of the period, ISO 8601 with offset.

    • durationMinutesintegeropcional

      Length of the slot wanted (default 30).

      De 15 a 480

    • memberIdstringopcional

      Admins only: the member to check. Default: the connected member.

      De 1 a 80 caracteres

  • get_metrics

    Performance summaryLê

    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.

    Permissãometrics:readVer números de desempenho

    Parâmetros (1)
    • rangestringopcional

      Default: week.

      Um de: week, month

  • get_request_status

    Status of a requestLê

    What the member decided about a request made with request_publish or request_send_message: pending, approved (and what happened), rejected, expired or failed.

    PermissãoQualquer ligação autorizada

    Parâmetros (1)
    • requestIdstringobrigatório

      Padrão: ^mrq_[a-f0-9]{24}$

Ferramentas que escrevem

10

Alteram os próprios registos do EcoMark. Nada é enviado a um cliente e nada é tornado público.

  • create_task

    Create a task or reminderEscreve

    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.

    Permissãocalendar:writeCriar e alterar marcações e tarefas

    Parâmetros (6)
    • titlestringobrigatório

      De 1 a 140 caracteres

    • dueAtdate-timeobrigatório

      When it is due, ISO 8601 with offset.

    • durationMinutesintegeropcional

      Default 30. A reminder takes at most 60.

      De 5 a 720

    • kindstringopcional

      Default: task.

      Um de: task, reminder

    • linkedToobjectopcional
      • typestringobrigatório

        Um de: lead, property

      • idstringobrigatório

        An id returned by another EcoMark tool.

        De 1 a 80 caracteres

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • update_task

    Update a task or reminderEscreve

    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.

    Permissãocalendar:writeCriar e alterar marcações e tarefas

    Parâmetros (6)
    • taskIdstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • titlestringopcional

      De 1 a 140 caracteres

    • dueAtdate-timeopcional
    • durationMinutesintegeropcional

      De 5 a 720

    • donebooleanopcional
    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • create_appointment

    Create an appointmentEscreve

    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.

    Permissãocalendar:writeCriar e alterar marcações e tarefas

    Parâmetros (9)
    • titlestringobrigatório

      De 1 a 140 caracteres

    • startsAtdate-timeobrigatório

      ISO 8601 with offset; must be in the future.

    • durationMinutesintegeropcional

      Default 30.

      De 15 a 480

    • kindstringopcional

      Default: consultation.

      Um de: consultation, property_tour, listing_presentation, virtual_meeting, closing

    • leadIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • propertyIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • locationstringopcional

      Até 160 caracteres

    • notesstringopcional

      Até 1000 caracteres

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • update_appointment

    Update an appointmentEscreve

    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.

    Permissãocalendar:writeCriar e alterar marcações e tarefas

    Parâmetros (8)
    • appointmentIdstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • titlestringopcional

      De 1 a 140 caracteres

    • startsAtdate-timeopcional
    • durationMinutesintegeropcional

      De 15 a 480

    • locationstring | nullopcional

      Até 160 caracteres

    • notesstring | nullopcional

      Até 1000 caracteres

    • statusstringopcional

      Um de: confirm, complete, cancel, no_show, reopen

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • update_lead

    Update a leadEscreve

    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.

    Permissãoleads:writeAtualizar leads e adicionar notas

    Parâmetros (7)
    • leadIdstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • stagestringopcional

      Um de: new, contacted, qualified, appointment, negotiation, won, lost

    • lostReasonstringopcional

      Only with stage "lost".

      Até 200 caracteres

    • temperaturestringopcional

      Um de: hot, warm, cold, needs_qualification

    • nextActionstring | nullopcional

      The next step, or null to clear it.

      Até 200 caracteres

    • nextActionAtdate-time | nullopcional

      When the next step is due, or null.

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • add_lead_note

    Add a note to a leadEscreve

    Add an internal note to a lead the connected member can see. Notes are for the agency: the client never sees them.

    Permissãoleads:writeAtualizar leads e adicionar notas

    Parâmetros (3)
    • leadIdstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • textstringobrigatório

      De 1 a 2000 caracteres

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • draft_message

    Draft a messageEscreve

    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.

    Permissãomessages:draftPreparar rascunhos de mensagens, nunca enviar

    Parâmetros (6)
    • channelstringobrigatório

      Um de: email, whatsapp

    • leadIdstringopcional

      The lead to write to (their e-mail address or phone number in EcoMark is used). Give this or conversationId.

      De 1 a 80 caracteres

    • conversationIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • subjectstringopcional

      E-mail only.

      Até 200 caracteres

    • bodystringobrigatório

      De 1 a 10 000 caracteres

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • create_qr_draft

    Create a draft QR codeEscreve

    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.

    Permissãolinks:draftCriar rascunhos de links, códigos QR e portefólios, nunca publicar

    Parâmetros (6)
    • titlestringobrigatório

      De 2 a 120 caracteres

    • propertyIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • linkIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • destinationUrlstringopcional

      Até 500 caracteres

    • campaignstringopcional

      Até 80 caracteres

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

  • create_portfolio_draft

    Create an unpublished portfolioEscreve

    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).

    Permissãolinks:draftCriar rascunhos de links, códigos QR e portefólios, nunca publicar

    Parâmetros (6)
    • titlestringobrigatório

      De 2 a 120 caracteres

    • propertyIdsstring[]obrigatório

      De 1 a 12 elementos

    • kindstringopcional

      Default: property. "client" goes with leadId.

      Um de: property, client, presentation

    • leadIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • introstringopcional

      Até 1200 caracteres

    • idempotencyKeystringopcional

      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.

      Padrão: ^[\x21-\x7e]{8,80}$

Ferramentas que pedem aprovação

2

Registam um pedido que o membro aprova ou rejeita dentro do EcoMark.

  • request_publish

    Ask to publishPede

    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.

    Permissãolinks:draftCriar rascunhos de links, códigos QR e portefólios, nunca publicar

    Parâmetros (2)
    • typestringobrigatório

      Um de: link, qr, portfolio

    • idstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

  • request_send_message

    Ask to send a draftPede

    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.

    Permissãomessages:draftPreparar rascunhos de mensagens, nunca enviar

    Parâmetros (1)
    • messageIdstringobrigatório

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

Os nomes e as descrições são o texto de referência do próprio servidor, em inglês.

Convenções#

  • Identidade: em nome de quem um pedido age vem do token. Nenhuma ferramenta tem um argumento para a imobiliária ou para o membro que age; se for enviado um mesmo assim, como agencyId, não muda nada.
  • Horas: em ISO 8601 com desvio, por exemplo 2026-10-09T10:00:00+02:00. As respostas vêm em UTC. whoami indica o fuso horário do membro.
  • IDs: vêm de outras ferramentas do EcoMark. Um cliente nunca inventa um.
  • Listas: são paginadas, com limit e cursor à entrada e total e nextCursor à saída. nextCursor é null na última página.
  • Links de regresso: muitas respostas incluem openInEcoMark, o endereço do registo no produto.
  • Texto dentro dos registos (nomes, notas, mensagens): foi escrito por outras pessoas. O servidor diz aos clientes que o tratem como dados a reportar, nunca como instruções a seguir.

Como é uma resposta#

Todas as ferramentas respondem com o mesmo valor duas vezes: como texto JSON em content[0].text, para os clientes que leem texto, e como structuredContent, para os clientes que leem estrutura. Quando a ferramenta não conseguiu fazer o que foi pedido, o valor é { "error": { "code", "message" } } e o resultado inclui isError: true. Os códigos estão em Erros e limites.

O resultado de uma ferramenta, tal como circula: a resposta 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}

Uma leitura, do princípio ao fim#

Corpo do pedido
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_leads",
    "arguments": {
      "followUpOverdue": true,
      "limit": 2
    }
  }
}
structuredContent da resposta
{
  "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"
}

Uma escrita, do princípio ao fim#

Uma escrita altera os registos do próprio EcoMark, em seu nome. Quando um registo guarda histórico (uma lead, uma marcação, um portefólio), a entrada indica que foi feita através do cliente. Cada escrita é registada antes de ser executada, por isso uma nova tentativa não a pode fazer duas vezes.

Corpo do pedido: criar uma tarefa, com uma chave própria do cliente
{
  "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 da resposta
{
  "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"
}

O mesmo pedido enviado de novo recebe a primeira resposta, marcada como replayed. Nada é escrito uma segunda vez.

structuredContent da resposta ao mesmo pedido, enviado de novo
{
  "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
}

Sem idempotencyKey, argumentos idênticos dentro de um curto intervalo contam como o mesmo pedido; o intervalo está em Escritas repetidas, em Erros e limites. A mesma chave com outros argumentos é recusada com conflict.

O que uma escrita pode desencadear dentro da sua imobiliária

Uma escrita não envia nada a nenhum cliente nem torna nada público. Se a sua imobiliária ligou o Slack e ativou os avisos de reservas ou de leads quentes, uma marcação criada, mudada ou cancelada através de um cliente, ou uma lead que passe a quente, é anunciada no canal da imobiliária exatamente como quando o faz no EcoMark.

Uma aprovação, do princípio ao fim#

Publicar e enviar são pedidos. Um cliente prepara primeiro um rascunho e depois pede; a decisão é sua, no EcoMark.

create_link_draft: argumentos
{
  "title": "Open house Saturday",
  "destinationUrl": "https://example.com/open-house"
}
create_link_draft: structuredContent da resposta
{
  "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: argumentos
{
  "type": "link",
  "id": "link_muyvbfgv248z8"
}
request_publish: structuredContent da resposta
{
  "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."
}

Neste ponto, nada mudou: o link continua a ser um rascunho. Recebe uma notificação no EcoMark com Rever pedido, e o pedido aparece em Aplicações → Assistentes externos → A aguardar a sua aprovação. O cliente lê o resultado com get_request_status.

get_request_status enquanto aguarda
{
  "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 depois de o ter aprovado
{
  "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"
}

Mais informações sobre as aprovações, e sobre o que acontece quando um pedido é rejeitado, expira ou falha, em Permissões e aprovações.