Aller au contenu

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

11

Ils ne modifient rien.

  • whoami

    Who is connectedLit

    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.

    AutorisationToute connexion autorisée

    Aucun paramètre.

  • get_connections

    Connected servicesLit

    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.

    AutorisationToute connexion autorisée

    Aucun paramètre.

  • list_properties

    List propertiesLit

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

    Autorisationproperties:readVoir les biens

    Paramètres (4)
    • statusstringfacultatif

      Une valeur parmi : draft, published, needs_attention, archived

    • searchstringfacultatif

      Words to look for in the name or title.

      De 1 à 80 caractères

    • limitintegerfacultatif

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

      De 1 à 50

    • cursorstringfacultatif

      `nextCursor` from the previous page.

      Jusqu’à 40 caractères

  • get_property

    Property detailsLit

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

    Autorisationproperties:readVoir les biens

    Paramètres (1)
    • propertyIdstringobligatoire

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

  • list_leads

    List leadsLit

    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.

    Autorisationleads:readVoir les prospects

    Paramètres (6)
    • stagestringfacultatif

      Une valeur parmi : new, contacted, qualified, appointment, negotiation, won, lost

    • temperaturestringfacultatif

      Une valeur parmi : hot, warm, cold, needs_qualification

    • followUpOverduebooleanfacultatif

      true: only leads whose next action is past due.

    • searchstringfacultatif

      Words to look for in the name or title.

      De 1 à 80 caractères

    • limitintegerfacultatif

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

      De 1 à 50

    • cursorstringfacultatif

      `nextCursor` from the previous page.

      Jusqu’à 40 caractères

  • get_lead

    Lead detailsLit

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

    Autorisationleads:readVoir les prospects

    Paramètres (1)
    • leadIdstringobligatoire

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

  • list_appointments

    List appointmentsLit

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

    Autorisationcalendar:readVoir les rendez-vous, les tâches et les disponibilités

    Paramètres (5)
    • fromdate-timefacultatif

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

    • todate-timefacultatif

      End of the period, ISO 8601 with offset.

    • statusstringfacultatif

      Une valeur parmi : scheduled, pending, confirmed, completed, cancelled, no_show

    • limitintegerfacultatif

      How 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 remindersLit

    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.

    Autorisationcalendar:readVoir les rendez-vous, les tâches et les disponibilités

    Paramètres (5)
    • fromdate-timefacultatif

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

    • todate-timefacultatif

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

    • donebooleanfacultatif

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

    • limitintegerfacultatif

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

      De 1 à 50

    • cursorstringfacultatif

      `nextCursor` from the previous page.

      Jusqu’à 40 caractères

  • check_availability

    Check availabilityLit

    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.

    Autorisationcalendar:readVoir les rendez-vous, les tâches et les disponibilités

    Paramètres (4)
    • fromdate-timeobligatoire

      Start of the period, ISO 8601 with offset.

    • todate-timeobligatoire

      End of the period, ISO 8601 with offset.

    • durationMinutesintegerfacultatif

      Length of the slot wanted (default 30).

      De 15 à 480

    • memberIdstringfacultatif

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

      De 1 à 80 caractères

  • get_metrics

    Performance summaryLit

    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.

    Autorisationmetrics:readVoir les chiffres de performance

    Paramètres (1)
    • rangestringfacultatif

      Default: week.

      Une valeur parmi : week, month

  • get_request_status

    Status of a requestLit

    What 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)
    • requestIdstringobligatoire

      Motif : ^mrq_[a-f0-9]{24}$

Outils d’écriture

10

Ils modifient les fiches d’EcoMark. Rien n’est envoyé à un client et rien n’est rendu public.

  • create_task

    Create a task or reminderÉcrit

    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.

    Autorisationcalendar:writeCréer et modifier des rendez-vous et des tâches

    Paramètres (6)
    • titlestringobligatoire

      De 1 à 140 caractères

    • dueAtdate-timeobligatoire

      When it is due, ISO 8601 with offset.

    • durationMinutesintegerfacultatif

      Default 30. A reminder takes at most 60.

      De 5 à 720

    • kindstringfacultatif

      Default: task.

      Une valeur parmi : task, reminder

    • linkedToobjectfacultatif
      • typestringobligatoire

        Une valeur parmi : lead, property

      • idstringobligatoire

        An id returned by another EcoMark tool.

        De 1 à 80 caractères

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • update_task

    Update a task or reminderÉcrit

    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.

    Autorisationcalendar:writeCréer et modifier des rendez-vous et des tâches

    Paramètres (6)
    • taskIdstringobligatoire

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • titlestringfacultatif

      De 1 à 140 caractères

    • dueAtdate-timefacultatif
    • durationMinutesintegerfacultatif

      De 5 à 720

    • donebooleanfacultatif
    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • create_appointment

    Create an appointmentÉcrit

    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.

    Autorisationcalendar:writeCréer et modifier des rendez-vous et des tâches

    Paramètres (9)
    • titlestringobligatoire

      De 1 à 140 caractères

    • startsAtdate-timeobligatoire

      ISO 8601 with offset; must be in the future.

    • durationMinutesintegerfacultatif

      Default 30.

      De 15 à 480

    • kindstringfacultatif

      Default: consultation.

      Une valeur parmi : consultation, property_tour, listing_presentation, virtual_meeting, closing

    • leadIdstringfacultatif

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • propertyIdstringfacultatif

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • locationstringfacultatif

      Jusqu’à 160 caractères

    • notesstringfacultatif

      Jusqu’à 1 000 caractères

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • update_appointment

    Update an appointmentÉcrit

    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.

    Autorisationcalendar:writeCréer et modifier des rendez-vous et des tâches

    Paramètres (8)
    • appointmentIdstringobligatoire

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • titlestringfacultatif

      De 1 à 140 caractères

    • startsAtdate-timefacultatif
    • durationMinutesintegerfacultatif

      De 15 à 480

    • locationstring | nullfacultatif

      Jusqu’à 160 caractères

    • notesstring | nullfacultatif

      Jusqu’à 1 000 caractères

    • statusstringfacultatif

      Une valeur parmi : confirm, complete, cancel, no_show, reopen

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • update_lead

    Update a leadÉcrit

    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.

    Autorisationleads:writeMettre à jour les prospects et ajouter des notes

    Paramètres (7)
    • leadIdstringobligatoire

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • stagestringfacultatif

      Une valeur parmi : new, contacted, qualified, appointment, negotiation, won, lost

    • lostReasonstringfacultatif

      Only with stage "lost".

      Jusqu’à 200 caractères

    • temperaturestringfacultatif

      Une valeur parmi : hot, warm, cold, needs_qualification

    • nextActionstring | nullfacultatif

      The next step, or null to clear it.

      Jusqu’à 200 caractères

    • nextActionAtdate-time | nullfacultatif

      When the next step is due, or null.

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • add_lead_note

    Add a note to a leadÉcrit

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

    Autorisationleads:writeMettre à jour les prospects et ajouter des notes

    Paramètres (3)
    • leadIdstringobligatoire

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • textstringobligatoire

      De 1 à 2 000 caractères

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • draft_message

    Draft a messageÉcrit

    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.

    Autorisationmessages:draftPréparer des brouillons de messages, jamais d’envoi

    Paramètres (6)
    • channelstringobligatoire

      Une valeur parmi : email, whatsapp

    • leadIdstringfacultatif

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

      De 1 à 80 caractères

    • conversationIdstringfacultatif

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • subjectstringfacultatif

      E-mail only.

      Jusqu’à 200 caractères

    • bodystringobligatoire

      De 1 à 10 000 caractères

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • create_qr_draft

    Create a draft QR codeÉcrit

    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.

    Autorisationlinks:draftCréer des brouillons de liens, de codes QR et de portfolios, jamais de publication

    Paramètres (6)
    • titlestringobligatoire

      De 2 à 120 caractères

    • propertyIdstringfacultatif

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • linkIdstringfacultatif

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • destinationUrlstringfacultatif

      Jusqu’à 500 caractères

    • campaignstringfacultatif

      Jusqu’à 80 caractères

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

  • create_portfolio_draft

    Create an unpublished portfolioÉcrit

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

    Autorisationlinks:draftCréer des brouillons de liens, de codes QR et de portfolios, jamais de publication

    Paramètres (6)
    • titlestringobligatoire

      De 2 à 120 caractères

    • propertyIdsstring[]obligatoire

      De 1 à 12 éléments

    • kindstringfacultatif

      Default: property. "client" goes with leadId.

      Une valeur parmi : property, client, presentation

    • leadIdstringfacultatif

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

    • introstringfacultatif

      Jusqu’à 1 200 caractères

    • idempotencyKeystringfacultatif

      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.

      Motif : ^[\x21-\x7e]{8,80}$

Outils de demande de validation

2

Ils déposent une demande que le membre valide ou refuse dans EcoMark.

  • request_publish

    Ask to publishDemande

    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.

    Autorisationlinks:draftCréer des brouillons de liens, de codes QR et de portfolios, jamais de publication

    Paramètres (2)
    • typestringobligatoire

      Une valeur parmi : link, qr, portfolio

    • idstringobligatoire

      An id returned by another EcoMark tool.

      De 1 à 80 caractères

  • request_send_message

    Ask to send a draftDemande

    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.

    Autorisationmessages:draftPréparer des brouillons de messages, jamais d’envoi

    Paramètres (1)
    • messageIdstringobligatoire

      An 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. whoami donne 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 limit et cursor en entrée, total et nextCursor en sortie. nextCursor vaut null sur 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.

Le résultat d’un outil tel qu’il circule : la réponse 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}

Une lecture, de bout en bout#

Corps de la requête
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_leads",
    "arguments": {
      "followUpOverdue": true,
      "limit": 2
    }
  }
}
structuredContent de la réponse
{
  "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.

Corps de la requête : créer une tâche, avec une clé propre au client
{
  "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 de la réponse
{
  "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.

structuredContent de la réponse à la même requête, envoyée à nouveau
{
  "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.

create_link_draft : arguments
{
  "title": "Open house Saturday",
  "destinationUrl": "https://example.com/open-house"
}
create_link_draft : structuredContent de la réponse
{
  "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 : arguments
{
  "type": "link",
  "id": "link_muyvbfgv248z8"
}
request_publish : structuredContent de la réponse
{
  "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.

get_request_status pendant l’attente
{
  "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 après votre validation
{
  "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.