Outils
Tous les outils proposés par le serveur, l’autorisation nécessaire à chacun, leurs paramètres et la forme des réponses.
Sur cette page
La liste ci-dessous est générée à partir du serveur lui-même : les noms, les autorisations et les paramètres sont ceux qu’un client reçoit de tools/list, et les descriptions sont les mots du serveur. Une connexion ne voit que les outils couverts par ses autorisations ; whoami, get_connections et get_request_status sont disponibles pour toute connexion autorisée.
Référence#
Outils de lecture
11Ils ne modifient rien.
whoami
Who is connectedLitThe 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.
AutorisationToute connexion autorisée
Aucun paramètre.
get_connections
Connected servicesLitWhich 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.
AutorisationToute connexion autorisée
Aucun paramètre.
list_properties
List propertiesLitThe agency's listings this member can see, newest change first. Filter by status or by words in the title, city or address.
Autorisation
properties:readVoir les biensParamètres (4)
statusstringfacultatifUne valeur parmi :
draft,published,needs_attention,archivedsearchstringfacultatifWords to look for in the name or title.
De 1 à 80 caractères
limitintegerfacultatifHow many to return (default 20, at most 50).
De 1 à 50
cursorstringfacultatif`nextCursor` from the previous page.
Jusqu’à 40 caractères
get_property
Property detailsLitOne listing in full: description, features, address, readiness, views and inquiries in the last 30 days, and what is attached to it (photos, documents, tours).
Autorisation
properties:readVoir les biensParamètres (1)
propertyIdstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
list_leads
List leadsLitLeads 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.
Autorisation
leads:readVoir les prospectsParamètres (6)
stagestringfacultatifUne valeur parmi :
new,contacted,qualified,appointment,negotiation,won,losttemperaturestringfacultatifUne valeur parmi :
hot,warm,cold,needs_qualificationfollowUpOverduebooleanfacultatiftrue: only leads whose next action is past due.
searchstringfacultatifWords to look for in the name or title.
De 1 à 80 caractères
limitintegerfacultatifHow many to return (default 20, at most 50).
De 1 à 50
cursorstringfacultatif`nextCursor` from the previous page.
Jusqu’à 40 caractères
get_lead
Lead detailsLitOne lead in full: contact details, what they are looking for, the latest notes and activity, and their upcoming appointments.
Autorisation
leads:readVoir les prospectsParamètres (1)
leadIdstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
list_appointments
List appointmentsLitAppointments this member can see that overlap a period (default: the next 14 days; at most 62 days), earliest first.
Autorisation
calendar:readVoir les rendez-vous, les tâches et les disponibilitésParamètres (5)
fromdate-timefacultatifStart of the period, ISO 8601 with offset. Default: now.
todate-timefacultatifEnd of the period, ISO 8601 with offset.
statusstringfacultatifUne valeur parmi :
scheduled,pending,confirmed,completed,cancelled,no_showlimitintegerfacultatifHow many to return (default 20, at most 50).
De 1 à 50
cursorstringfacultatif`nextCursor` from the previous page.
Jusqu’à 40 caractères
list_tasks
List tasks and remindersLitTasks 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.
Autorisation
calendar:readVoir les rendez-vous, les tâches et les disponibilitésParamètres (5)
fromdate-timefacultatifOnly items due at or after this instant. Default: no lower bound for open items.
todate-timefacultatifOnly items due before this instant. Default: 14 days from now.
donebooleanfacultatiftrue: finished items; false (default): open ones.
limitintegerfacultatifHow many to return (default 20, at most 50).
De 1 à 50
cursorstringfacultatif`nextCursor` from the previous page.
Jusqu’à 40 caractères
check_availability
Check availabilityLitWhen 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.
Autorisation
calendar:readVoir les rendez-vous, les tâches et les disponibilitésParamètres (4)
fromdate-timeobligatoireStart of the period, ISO 8601 with offset.
todate-timeobligatoireEnd of the period, ISO 8601 with offset.
durationMinutesintegerfacultatifLength of the slot wanted (default 30).
De 15 à 480
memberIdstringfacultatifAdmins only: the member to check. Default: the connected member.
De 1 à 80 caractères
get_metrics
Performance summaryLitPipeline, 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.
Autorisation
metrics:readVoir les chiffres de performanceParamètres (1)
rangestringfacultatifDefault: week.
Une valeur parmi :
week,month
get_request_status
Status of a requestLitWhat the member decided about a request made with request_publish or request_send_message: pending, approved (and what happened), rejected, expired or failed.
AutorisationToute connexion autorisée
Paramètres (1)
requestIdstringobligatoireMotif :
^mrq_[a-f0-9]{24}$
Outils d’écriture
10Ils modifient les fiches d’EcoMark. Rien n’est envoyé à un client et rien n’est rendu public.
create_task
Create a task or reminderÉcritAdd 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.
Autorisation
calendar:writeCréer et modifier des rendez-vous et des tâchesParamètres (6)
titlestringobligatoireDe 1 à 140 caractères
dueAtdate-timeobligatoireWhen it is due, ISO 8601 with offset.
durationMinutesintegerfacultatifDefault 30. A reminder takes at most 60.
De 5 à 720
kindstringfacultatifDefault: task.
Une valeur parmi :
task,reminderlinkedToobjectfacultatiftypestringobligatoireUne valeur parmi :
lead,propertyidstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
update_task
Update a task or reminderÉcritChange a task or reminder the connected member can see: its title, when it is due, how long it takes, or whether it is done.
Autorisation
calendar:writeCréer et modifier des rendez-vous et des tâchesParamètres (6)
taskIdstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
titlestringfacultatifDe 1 à 140 caractères
dueAtdate-timefacultatifdurationMinutesintegerfacultatifDe 5 à 720
donebooleanfacultatifidempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
create_appointment
Create an appointmentÉcritPut 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.
Autorisation
calendar:writeCréer et modifier des rendez-vous et des tâchesParamètres (9)
titlestringobligatoireDe 1 à 140 caractères
startsAtdate-timeobligatoireISO 8601 with offset; must be in the future.
durationMinutesintegerfacultatifDefault 30.
De 15 à 480
kindstringfacultatifDefault: consultation.
Une valeur parmi :
consultation,property_tour,listing_presentation,virtual_meeting,closingleadIdstringfacultatifAn id returned by another EcoMark tool.
De 1 à 80 caractères
propertyIdstringfacultatifAn id returned by another EcoMark tool.
De 1 à 80 caractères
locationstringfacultatifJusqu’à 160 caractères
notesstringfacultatifJusqu’à 1 000 caractères
idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
update_appointment
Update an appointmentÉcritChange 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.
Autorisation
calendar:writeCréer et modifier des rendez-vous et des tâchesParamètres (8)
appointmentIdstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
titlestringfacultatifDe 1 à 140 caractères
startsAtdate-timefacultatifdurationMinutesintegerfacultatifDe 15 à 480
locationstring | nullfacultatifJusqu’à 160 caractères
notesstring | nullfacultatifJusqu’à 1 000 caractères
statusstringfacultatifUne valeur parmi :
confirm,complete,cancel,no_show,reopenidempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
update_lead
Update a leadÉcritMove 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.
Autorisation
leads:writeMettre à jour les prospects et ajouter des notesParamètres (7)
leadIdstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
stagestringfacultatifUne valeur parmi :
new,contacted,qualified,appointment,negotiation,won,lostlostReasonstringfacultatifOnly with stage "lost".
Jusqu’à 200 caractères
temperaturestringfacultatifUne valeur parmi :
hot,warm,cold,needs_qualificationnextActionstring | nullfacultatifThe next step, or null to clear it.
Jusqu’à 200 caractères
nextActionAtdate-time | nullfacultatifWhen the next step is due, or null.
idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
add_lead_note
Add a note to a leadÉcritAdd an internal note to a lead the connected member can see. Notes are for the agency: the client never sees them.
Autorisation
leads:writeMettre à jour les prospects et ajouter des notesParamètres (3)
leadIdstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
textstringobligatoireDe 1 à 2 000 caractères
idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
draft_message
Draft a messageÉcritSave 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.
Autorisation
messages:draftPréparer des brouillons de messages, jamais d’envoiParamètres (6)
channelstringobligatoireUne valeur parmi :
email,whatsappleadIdstringfacultatifThe lead to write to (their e-mail address or phone number in EcoMark is used). Give this or conversationId.
De 1 à 80 caractères
conversationIdstringfacultatifAn id returned by another EcoMark tool.
De 1 à 80 caractères
subjectstringfacultatifE-mail only.
Jusqu’à 200 caractères
bodystringobligatoireDe 1 à 10 000 caractères
idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
create_link_draft
Create a draft linkÉcritPrepare 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.
Autorisation
links:draftCréer des brouillons de liens, de codes QR et de portfolios, jamais de publicationParamètres (5)
titlestringobligatoireDe 2 à 120 caractères
propertyIdstringfacultatifA published listing. Give this or destinationUrl.
De 1 à 80 caractères
destinationUrlstringfacultatifJusqu’à 500 caractères
slugstringfacultatifLower-case letters, digits and hyphens. Default: made from the title.
De 2 à 60 caractères
Motif :
^[a-z0-9]+(?:-[a-z0-9]+)*$idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
create_qr_draft
Create a draft QR codeÉcritPrepare 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.
Autorisation
links:draftCréer des brouillons de liens, de codes QR et de portfolios, jamais de publicationParamètres (6)
titlestringobligatoireDe 2 à 120 caractères
propertyIdstringfacultatifAn id returned by another EcoMark tool.
De 1 à 80 caractères
linkIdstringfacultatifAn id returned by another EcoMark tool.
De 1 à 80 caractères
destinationUrlstringfacultatifJusqu’à 500 caractères
campaignstringfacultatifJusqu’à 80 caractères
idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
create_portfolio_draft
Create an unpublished portfolioÉcritPut 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).
Autorisation
links:draftCréer des brouillons de liens, de codes QR et de portfolios, jamais de publicationParamètres (6)
titlestringobligatoireDe 2 à 120 caractères
propertyIdsstring[]obligatoireDe 1 à 12 éléments
kindstringfacultatifDefault: property. "client" goes with leadId.
Une valeur parmi :
property,client,presentationleadIdstringfacultatifAn id returned by another EcoMark tool.
De 1 à 80 caractères
introstringfacultatifJusqu’à 1 200 caractères
idempotencyKeystringfacultatifOptional. 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.
Motif :
^[\x21-\x7e]{8,80}$
Outils de demande de validation
2Ils déposent une demande que le membre valide ou refuse dans EcoMark.
request_publish
Ask to publishDemandeAsk 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.
Autorisation
links:draftCréer des brouillons de liens, de codes QR et de portfolios, jamais de publicationParamètres (2)
typestringobligatoireUne valeur parmi :
link,qr,portfolioidstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
request_send_message
Ask to send a draftDemandeAsk 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.
Autorisation
messages:draftPréparer des brouillons de messages, jamais d’envoiParamètres (1)
messageIdstringobligatoireAn id returned by another EcoMark tool.
De 1 à 80 caractères
Les noms et les descriptions sont le texte de référence du serveur, en anglais.
Conventions#
- Identité : la personne au nom de qui agit une requête est déterminée par le jeton. Aucun outil n’a d’argument pour l’agence ou pour le membre qui agit ; un tel argument envoyé malgré tout, comme
agencyId, ne change rien. - Dates et heures : au format ISO 8601 avec décalage, par exemple
2026-10-09T10:00:00+02:00. Les réponses sont en UTC.whoamidonne le fuseau horaire du membre. - Identifiants : ils proviennent d’autres outils d’EcoMark. Un client n’en invente jamais.
- Listes : elles sont paginées, avec
limitetcursoren entrée,totaletnextCursoren sortie.nextCursorvautnullsur la dernière page. - Liens de retour : de nombreuses réponses contiennent
openInEcoMark, l’adresse de la fiche dans le produit. - Texte dans les fiches (noms, notes, messages) : il a été écrit par d’autres personnes. Le serveur demande aux clients de le traiter comme des données à rapporter, jamais comme des instructions à suivre.
La forme d’une réponse#
Chaque outil répond avec la même valeur deux fois : sous forme de texte JSON dans content[0].text, pour les clients qui lisent du texte, et sous forme de structuredContent, pour les clients qui lisent une structure. Lorsque l’outil n’a pas pu faire ce qui était demandé, la valeur est { "error": { "code", "message" } } et le résultat porte isError: true. Les codes figurent dans Erreurs et 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}Une lecture, de bout en bout#
{
"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"
}Une écriture, de bout en bout#
Une écriture modifie les fiches d’EcoMark, en votre nom. Lorsqu’une fiche conserve un historique (un prospect, un rendez-vous, un portfolio), l’entrée indique que l’action a été faite via le client. Chaque écriture est enregistrée avant d’être exécutée : une nouvelle tentative ne peut donc pas l’exécuter deux fois.
{
"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"
}La même requête envoyée à nouveau reçoit la première réponse, marquée replayed. Rien n’est écrit une seconde fois.
{
"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
}Sans idempotencyKey, des arguments identiques dans un court délai comptent comme la même requête ; ce délai figure sous Écritures répétées, dans Erreurs et limites. La même clé avec d’autres arguments est refusée avec conflict.
Ce qu’une écriture peut déclencher dans votre agence
Une écriture n’envoie rien à un client et ne rend rien public. Si votre agence a connecté Slack et activé ses notifications pour les réservations ou les prospects chauds, un rendez-vous créé, déplacé ou annulé via un client, ou un prospect qui devient chaud, est annoncé dans le canal de l’agence exactement comme lorsque vous le faites dans EcoMark.
Une validation, de bout en bout#
Publier et envoyer sont des demandes. Un client prépare d’abord un brouillon, puis demande ; c’est vous qui décidez, dans 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."
}À ce stade, rien n’a changé : le lien est toujours un brouillon. Vous recevez une notification dans EcoMark avec Examiner la demande, et la demande apparaît dans Applications → Assistants externes → En attente de votre validation. Le client lit l’issue avec 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"
}Pour en savoir plus sur les validations, et sur ce qui se passe lorsqu’une demande est refusée, expire ou échoue, voir Autorisations et validations.