Ferramentas
Todas as ferramentas que o servidor oferece, a permissão de que cada uma precisa, os parâmetros e o formato das respostas.
Nesta página
A lista abaixo é gerada a partir do próprio servidor: nomes, permissões e parâmetros são os que um cliente recebe de tools/list, e as descrições são as palavras do próprio servidor. Uma conexão só vê as ferramentas que as permissões dela cobrem; whoami, get_connections e get_request_status estão disponíveis para qualquer conexão autorizada.
Referência#
Ferramentas que leem
11Elas não mudam 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 conexã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 conexã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ão
properties:readVer imóveisParâmetros (4)
statusstringopcionalUm destes:
draft,published,needs_attention,archivedsearchstringopcionalWords to look for in the name or title.
De 1 a 80 caracteres
limitintegeropcionalHow 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ão
properties:readVer imóveisParâmetros (1)
propertyIdstringobrigatórioAn 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ão
leads:readVer leadsParâmetros (6)
stagestringopcionalUm destes:
new,contacted,qualified,appointment,negotiation,won,losttemperaturestringopcionalUm destes:
hot,warm,cold,needs_qualificationfollowUpOverduebooleanopcionaltrue: only leads whose next action is past due.
searchstringopcionalWords to look for in the name or title.
De 1 a 80 caracteres
limitintegeropcionalHow 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ão
leads:readVer leadsParâmetros (1)
leadIdstringobrigatórioAn 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ão
calendar:readVer agendamentos, tarefas e disponibilidadeParâmetros (5)
fromdate-timeopcionalStart of the period, ISO 8601 with offset. Default: now.
todate-timeopcionalEnd of the period, ISO 8601 with offset.
statusstringopcionalUm destes:
scheduled,pending,confirmed,completed,cancelled,no_showlimitintegeropcionalHow 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ão
calendar:readVer agendamentos, tarefas e disponibilidadeParâmetros (5)
fromdate-timeopcionalOnly items due at or after this instant. Default: no lower bound for open items.
todate-timeopcionalOnly items due before this instant. Default: 14 days from now.
donebooleanopcionaltrue: finished items; false (default): open ones.
limitintegeropcionalHow 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ão
calendar:readVer agendamentos, tarefas e disponibilidadeParâmetros (4)
fromdate-timeobrigatórioStart of the period, ISO 8601 with offset.
todate-timeobrigatórioEnd of the period, ISO 8601 with offset.
durationMinutesintegeropcionalLength of the slot wanted (default 30).
De 15 a 480
memberIdstringopcionalAdmins 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ão
metrics:readVer números de desempenhoParâmetros (1)
rangestringopcionalDefault: week.
Um destes:
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 conexão autorizada
Parâmetros (1)
requestIdstringobrigatórioPadrão:
^mrq_[a-f0-9]{24}$
Ferramentas que gravam
10Elas alteram os próprios registros do EcoMark. Nada é enviado a um cliente e nada se torna público.
create_task
Create a task or reminderGravaAdd 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ão
calendar:writeCriar e alterar agendamentos e tarefasParâmetros (6)
titlestringobrigatórioDe 1 a 140 caracteres
dueAtdate-timeobrigatórioWhen it is due, ISO 8601 with offset.
durationMinutesintegeropcionalDefault 30. A reminder takes at most 60.
De 5 a 720
kindstringopcionalDefault: task.
Um destes:
task,reminderlinkedToobjectopcionaltypestringobrigatórioUm destes:
lead,propertyidstringobrigatórioAn id returned by another EcoMark tool.
De 1 a 80 caracteres
idempotencyKeystringopcionalOptional. 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 reminderGravaChange 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ão
calendar:writeCriar e alterar agendamentos e tarefasParâmetros (6)
taskIdstringobrigatórioAn id returned by another EcoMark tool.
De 1 a 80 caracteres
titlestringopcionalDe 1 a 140 caracteres
dueAtdate-timeopcionaldurationMinutesintegeropcionalDe 5 a 720
donebooleanopcionalidempotencyKeystringopcionalOptional. 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 appointmentGravaPut 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ão
calendar:writeCriar e alterar agendamentos e tarefasParâmetros (9)
titlestringobrigatórioDe 1 a 140 caracteres
startsAtdate-timeobrigatórioISO 8601 with offset; must be in the future.
durationMinutesintegeropcionalDefault 30.
De 15 a 480
kindstringopcionalDefault: consultation.
Um destes:
consultation,property_tour,listing_presentation,virtual_meeting,closingleadIdstringopcionalAn id returned by another EcoMark tool.
De 1 a 80 caracteres
propertyIdstringopcionalAn id returned by another EcoMark tool.
De 1 a 80 caracteres
locationstringopcionalAté 160 caracteres
notesstringopcionalAté 1.000 caracteres
idempotencyKeystringopcionalOptional. 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 appointmentGravaChange 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ão
calendar:writeCriar e alterar agendamentos e tarefasParâmetros (8)
appointmentIdstringobrigatórioAn id returned by another EcoMark tool.
De 1 a 80 caracteres
titlestringopcionalDe 1 a 140 caracteres
startsAtdate-timeopcionaldurationMinutesintegeropcionalDe 15 a 480
locationstring | nullopcionalAté 160 caracteres
notesstring | nullopcionalAté 1.000 caracteres
statusstringopcionalUm destes:
confirm,complete,cancel,no_show,reopenidempotencyKeystringopcionalOptional. 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 leadGravaMove 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ão
leads:writeAtualizar leads e adicionar notasParâmetros (7)
leadIdstringobrigatórioAn id returned by another EcoMark tool.
De 1 a 80 caracteres
stagestringopcionalUm destes:
new,contacted,qualified,appointment,negotiation,won,lostlostReasonstringopcionalOnly with stage "lost".
Até 200 caracteres
temperaturestringopcionalUm destes:
hot,warm,cold,needs_qualificationnextActionstring | nullopcionalThe next step, or null to clear it.
Até 200 caracteres
nextActionAtdate-time | nullopcionalWhen the next step is due, or null.
idempotencyKeystringopcionalOptional. 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 leadGravaAdd an internal note to a lead the connected member can see. Notes are for the agency: the client never sees them.
Permissão
leads:writeAtualizar leads e adicionar notasParâmetros (3)
leadIdstringobrigatórioAn id returned by another EcoMark tool.
De 1 a 80 caracteres
textstringobrigatórioDe 1 a 2.000 caracteres
idempotencyKeystringopcionalOptional. 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 messageGravaSave 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ão
messages:draftPreparar rascunhos de mensagens, nunca enviarParâmetros (6)
channelstringobrigatórioUm destes:
email,whatsappleadIdstringopcionalThe lead to write to (their e-mail address or phone number in EcoMark is used). Give this or conversationId.
De 1 a 80 caracteres
conversationIdstringopcionalAn id returned by another EcoMark tool.
De 1 a 80 caracteres
subjectstringopcionalE-mail only.
Até 200 caracteres
bodystringobrigatórioDe 1 a 10.000 caracteres
idempotencyKeystringopcionalOptional. 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_link_draft
Create a draft linkGravaPrepare 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.
Permissão
links:draftCriar rascunhos de links, QR codes e portfólios, nunca publicarParâmetros (5)
titlestringobrigatórioDe 2 a 120 caracteres
propertyIdstringopcionalA published listing. Give this or destinationUrl.
De 1 a 80 caracteres
destinationUrlstringopcionalAté 500 caracteres
slugstringopcionalLower-case letters, digits and hyphens. Default: made from the title.
De 2 a 60 caracteres
Padrão:
^[a-z0-9]+(?:-[a-z0-9]+)*$idempotencyKeystringopcionalOptional. 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 codeGravaPrepare 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ão
links:draftCriar rascunhos de links, QR codes e portfólios, nunca publicarParâmetros (6)
titlestringobrigatórioDe 2 a 120 caracteres
propertyIdstringopcionalAn id returned by another EcoMark tool.
De 1 a 80 caracteres
linkIdstringopcionalAn id returned by another EcoMark tool.
De 1 a 80 caracteres
destinationUrlstringopcionalAté 500 caracteres
campaignstringopcionalAté 80 caracteres
idempotencyKeystringopcionalOptional. 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 portfolioGravaPut 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ão
links:draftCriar rascunhos de links, QR codes e portfólios, nunca publicarParâmetros (6)
titlestringobrigatórioDe 2 a 120 caracteres
propertyIdsstring[]obrigatórioDe 1 a 12 itens
kindstringopcionalDefault: property. "client" goes with leadId.
Um destes:
property,client,presentationleadIdstringopcionalAn id returned by another EcoMark tool.
De 1 a 80 caracteres
introstringopcionalAté 1.200 caracteres
idempotencyKeystringopcionalOptional. 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
2Elas registram um pedido que o membro aprova ou recusa dentro do EcoMark.
request_publish
Ask to publishPedeAsk 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ão
links:draftCriar rascunhos de links, QR codes e portfólios, nunca publicarParâmetros (2)
typestringobrigatórioUm destes:
link,qr,portfolioidstringobrigatórioAn id returned by another EcoMark tool.
De 1 a 80 caracteres
request_send_message
Ask to send a draftPedeAsk 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ão
messages:draftPreparar rascunhos de mensagens, nunca enviarParâmetros (1)
messageIdstringobrigatórioAn 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 uma requisição age vem do token. Nenhuma ferramenta tem argumento para a imobiliária ou para o membro que age; um argumento desses enviado mesmo assim, como
agencyId, não muda nada. - Horários seguem a ISO 8601 com deslocamento, por exemplo
2026-10-09T10:00:00+02:00. As respostas vêm em UTC.whoamiinforma o fuso horário do membro. - Ids vêm de outras ferramentas do EcoMark. Um cliente nunca inventa um.
- Listas são paginadas:
limitecursorna entrada,totalenextCursorna saída.nextCursorénullna última página. - Links de volta: muitas respostas trazem
openInEcoMark, o endereço do registro no produto. - Texto dentro dos registros (nomes, notas, mensagens) foi escrito por outras pessoas. O servidor orienta os clientes a tratá-lo como dado a relatar, nunca como instrução a seguir.
O formato de uma resposta#
Toda ferramenta responde com o mesmo valor duas vezes: como texto JSON em content[0].text, para clientes que leem texto, e como structuredContent, para clientes que leem estrutura. Quando a ferramenta não consegue fazer o que foi pedido, o valor é { "error": { "code", "message" } } e o resultado traz isError: true. Os códigos estão em Erros e limites.
{"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 início ao fim#
{
"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"
}Uma gravação, do início ao fim#
Uma gravação altera os registros do próprio EcoMark, em seu nome. Quando um registro guarda histórico (um lead, um agendamento, um portfólio), a entrada diz que a ação foi feita pelo cliente. Toda gravação é registrada antes de ser executada, então uma nova tentativa não pode fazê-la duas vezes.
{
"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"
}A mesma requisição enviada de novo recebe de volta a primeira resposta, marcada como replayed. Nada é gravado uma segunda vez.
{
"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 uma idempotencyKey, argumentos idênticos dentro de um intervalo curto contam como a mesma requisição; o intervalo está em Gravações repetidas, em Erros e limites. A mesma chave com outros argumentos é recusada com conflict.
O que uma gravação pode desencadear dentro da sua imobiliária
Uma gravação não envia nada a um cliente nem torna nada público. Se a sua imobiliária conectou o Slack e ativou os avisos de agendamentos ou de leads quentes, um agendamento criado, alterado ou cancelado por um cliente, ou um lead que fica quente, é anunciado no canal da imobiliária exatamente como quando você faz isso no EcoMark.
Uma aprovação, do início ao fim#
Publicar e enviar são solicitações. Um cliente primeiro prepara um rascunho e depois pede; você decide no 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."
}Nada mudou até aqui: o link continua sendo um rascunho. Você recebe uma notificação no EcoMark com Revisar solicitação, e a solicitação aparece em Apps → Assistentes externos → Aguardando sua aprovação. O cliente lê o resultado com 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"
}Mais sobre aprovações, e sobre o que acontece quando uma solicitação é rejeitada, expira ou falha, em Permissões e aprovações.