Vai al contenuto

Strumenti

Ogni strumento offerto dal server, l’autorizzazione che richiede ciascuno, i suoi parametri e la forma delle risposte.

In questa pagina

L’elenco qui sotto è generato dal server stesso: nomi, autorizzazioni e parametri sono quelli che un client riceve da tools/list, e le descrizioni sono le parole del server. A una connessione vengono mostrati solo gli strumenti coperti dalle sue autorizzazioni; whoami, get_connections e get_request_status sono disponibili per qualsiasi connessione autorizzata.

Riferimento#

Strumenti che leggono

11

Non modificano nulla.

  • whoami

    Who is connectedLegge

    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.

    AutorizzazioneQualsiasi connessione autorizzata

    Nessun parametro.

  • get_connections

    Connected servicesLegge

    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.

    AutorizzazioneQualsiasi connessione autorizzata

    Nessun parametro.

  • list_properties

    List propertiesLegge

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

    Autorizzazioneproperties:readVedere gli immobili

    Parametri (4)
    • statusstringfacoltativo

      Uno tra: draft, published, needs_attention, archived

    • searchstringfacoltativo

      Words to look for in the name or title.

      Da 1 a 80 caratteri

    • limitintegerfacoltativo

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

      Da 1 a 50

    • cursorstringfacoltativo

      `nextCursor` from the previous page.

      Fino a 40 caratteri

  • get_property

    Property detailsLegge

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

    Autorizzazioneproperties:readVedere gli immobili

    Parametri (1)
    • propertyIdstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

  • list_leads

    List leadsLegge

    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.

    Autorizzazioneleads:readVedere i lead

    Parametri (6)
    • stagestringfacoltativo

      Uno tra: new, contacted, qualified, appointment, negotiation, won, lost

    • temperaturestringfacoltativo

      Uno tra: hot, warm, cold, needs_qualification

    • followUpOverduebooleanfacoltativo

      true: only leads whose next action is past due.

    • searchstringfacoltativo

      Words to look for in the name or title.

      Da 1 a 80 caratteri

    • limitintegerfacoltativo

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

      Da 1 a 50

    • cursorstringfacoltativo

      `nextCursor` from the previous page.

      Fino a 40 caratteri

  • get_lead

    Lead detailsLegge

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

    Autorizzazioneleads:readVedere i lead

    Parametri (1)
    • leadIdstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

  • list_appointments

    List appointmentsLegge

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

    Autorizzazionecalendar:readVedere appuntamenti, attività e disponibilità

    Parametri (5)
    • fromdate-timefacoltativo

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

    • todate-timefacoltativo

      End of the period, ISO 8601 with offset.

    • statusstringfacoltativo

      Uno tra: scheduled, pending, confirmed, completed, cancelled, no_show

    • limitintegerfacoltativo

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

      Da 1 a 50

    • cursorstringfacoltativo

      `nextCursor` from the previous page.

      Fino a 40 caratteri

  • list_tasks

    List tasks and remindersLegge

    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.

    Autorizzazionecalendar:readVedere appuntamenti, attività e disponibilità

    Parametri (5)
    • fromdate-timefacoltativo

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

    • todate-timefacoltativo

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

    • donebooleanfacoltativo

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

    • limitintegerfacoltativo

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

      Da 1 a 50

    • cursorstringfacoltativo

      `nextCursor` from the previous page.

      Fino a 40 caratteri

  • check_availability

    Check availabilityLegge

    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.

    Autorizzazionecalendar:readVedere appuntamenti, attività e disponibilità

    Parametri (4)
    • fromdate-timeobbligatorio

      Start of the period, ISO 8601 with offset.

    • todate-timeobbligatorio

      End of the period, ISO 8601 with offset.

    • durationMinutesintegerfacoltativo

      Length of the slot wanted (default 30).

      Da 15 a 480

    • memberIdstringfacoltativo

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

      Da 1 a 80 caratteri

  • get_metrics

    Performance summaryLegge

    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.

    Autorizzazionemetrics:readVedere i dati sulle prestazioni

    Parametri (1)
    • rangestringfacoltativo

      Default: week.

      Uno tra: week, month

  • get_request_status

    Status of a requestLegge

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

    AutorizzazioneQualsiasi connessione autorizzata

    Parametri (1)
    • requestIdstringobbligatorio

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

Strumenti che scrivono

10

Modificano i record di EcoMark. Nulla viene inviato a un cliente e nulla viene reso pubblico.

  • create_task

    Create a task or reminderScrive

    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.

    Autorizzazionecalendar:writeCreare e modificare appuntamenti e attività

    Parametri (6)
    • titlestringobbligatorio

      Da 1 a 140 caratteri

    • dueAtdate-timeobbligatorio

      When it is due, ISO 8601 with offset.

    • durationMinutesintegerfacoltativo

      Default 30. A reminder takes at most 60.

      Da 5 a 720

    • kindstringfacoltativo

      Default: task.

      Uno tra: task, reminder

    • linkedToobjectfacoltativo
      • typestringobbligatorio

        Uno tra: lead, property

      • idstringobbligatorio

        An id returned by another EcoMark tool.

        Da 1 a 80 caratteri

    • idempotencyKeystringfacoltativo

      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.

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

  • update_task

    Update a task or reminderScrive

    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.

    Autorizzazionecalendar:writeCreare e modificare appuntamenti e attività

    Parametri (6)
    • taskIdstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • titlestringfacoltativo

      Da 1 a 140 caratteri

    • dueAtdate-timefacoltativo
    • durationMinutesintegerfacoltativo

      Da 5 a 720

    • donebooleanfacoltativo
    • idempotencyKeystringfacoltativo

      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.

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

  • create_appointment

    Create an appointmentScrive

    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.

    Autorizzazionecalendar:writeCreare e modificare appuntamenti e attività

    Parametri (9)
    • titlestringobbligatorio

      Da 1 a 140 caratteri

    • startsAtdate-timeobbligatorio

      ISO 8601 with offset; must be in the future.

    • durationMinutesintegerfacoltativo

      Default 30.

      Da 15 a 480

    • kindstringfacoltativo

      Default: consultation.

      Uno tra: consultation, property_tour, listing_presentation, virtual_meeting, closing

    • leadIdstringfacoltativo

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • propertyIdstringfacoltativo

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • locationstringfacoltativo

      Fino a 160 caratteri

    • notesstringfacoltativo

      Fino a 1000 caratteri

    • idempotencyKeystringfacoltativo

      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.

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

  • update_appointment

    Update an appointmentScrive

    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.

    Autorizzazionecalendar:writeCreare e modificare appuntamenti e attività

    Parametri (8)
    • appointmentIdstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • titlestringfacoltativo

      Da 1 a 140 caratteri

    • startsAtdate-timefacoltativo
    • durationMinutesintegerfacoltativo

      Da 15 a 480

    • locationstring | nullfacoltativo

      Fino a 160 caratteri

    • notesstring | nullfacoltativo

      Fino a 1000 caratteri

    • statusstringfacoltativo

      Uno tra: confirm, complete, cancel, no_show, reopen

    • idempotencyKeystringfacoltativo

      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.

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

  • update_lead

    Update a leadScrive

    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.

    Autorizzazioneleads:writeAggiornare i lead e aggiungere note

    Parametri (7)
    • leadIdstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • stagestringfacoltativo

      Uno tra: new, contacted, qualified, appointment, negotiation, won, lost

    • lostReasonstringfacoltativo

      Only with stage "lost".

      Fino a 200 caratteri

    • temperaturestringfacoltativo

      Uno tra: hot, warm, cold, needs_qualification

    • nextActionstring | nullfacoltativo

      The next step, or null to clear it.

      Fino a 200 caratteri

    • nextActionAtdate-time | nullfacoltativo

      When the next step is due, or null.

    • idempotencyKeystringfacoltativo

      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.

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

  • add_lead_note

    Add a note to a leadScrive

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

    Autorizzazioneleads:writeAggiornare i lead e aggiungere note

    Parametri (3)
    • leadIdstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • textstringobbligatorio

      Da 1 a 2000 caratteri

    • idempotencyKeystringfacoltativo

      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.

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

  • draft_message

    Draft a messageScrive

    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.

    Autorizzazionemessages:draftPreparare bozze di messaggi, senza mai inviarle

    Parametri (6)
    • channelstringobbligatorio

      Uno tra: email, whatsapp

    • leadIdstringfacoltativo

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

      Da 1 a 80 caratteri

    • conversationIdstringfacoltativo

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • subjectstringfacoltativo

      E-mail only.

      Fino a 200 caratteri

    • bodystringobbligatorio

      Da 1 a 10.000 caratteri

    • idempotencyKeystringfacoltativo

      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.

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

  • create_qr_draft

    Create a draft QR codeScrive

    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.

    Autorizzazionelinks:draftCreare bozze di link, codici QR e portfolio, senza mai pubblicarle

    Parametri (6)
    • titlestringobbligatorio

      Da 2 a 120 caratteri

    • propertyIdstringfacoltativo

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • linkIdstringfacoltativo

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • destinationUrlstringfacoltativo

      Fino a 500 caratteri

    • campaignstringfacoltativo

      Fino a 80 caratteri

    • idempotencyKeystringfacoltativo

      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.

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

  • create_portfolio_draft

    Create an unpublished portfolioScrive

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

    Autorizzazionelinks:draftCreare bozze di link, codici QR e portfolio, senza mai pubblicarle

    Parametri (6)
    • titlestringobbligatorio

      Da 2 a 120 caratteri

    • propertyIdsstring[]obbligatorio

      Da 1 a 12 elementi

    • kindstringfacoltativo

      Default: property. "client" goes with leadId.

      Uno tra: property, client, presentation

    • leadIdstringfacoltativo

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

    • introstringfacoltativo

      Fino a 1200 caratteri

    • idempotencyKeystringfacoltativo

      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.

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

Strumenti che chiedono l’approvazione

2

Registrano una richiesta che il membro approva o rifiuta in EcoMark.

  • request_publish

    Ask to publishChiede

    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.

    Autorizzazionelinks:draftCreare bozze di link, codici QR e portfolio, senza mai pubblicarle

    Parametri (2)
    • typestringobbligatorio

      Uno tra: link, qr, portfolio

    • idstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

  • request_send_message

    Ask to send a draftChiede

    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.

    Autorizzazionemessages:draftPreparare bozze di messaggi, senza mai inviarle

    Parametri (1)
    • messageIdstringobbligatorio

      An id returned by another EcoMark tool.

      Da 1 a 80 caratteri

Nomi e descrizioni sono il testo di riferimento del server stesso, in inglese.

Convenzioni#

  • Identità: a nome di chi agisce una richiesta lo stabilisce il token. Nessuno strumento ha un argomento per l’agenzia o per il membro che agisce; uno inviato comunque, come agencyId, non cambia nulla.
  • Orari: in ISO 8601 con offset, per esempio 2026-10-09T10:00:00+02:00. Le risposte sono in UTC. whoami fornisce il fuso orario del membro.
  • Id: provengono da altri strumenti di EcoMark. Un client non ne inventa mai uno.
  • Elenchi: sono paginati, con limit e cursor in ingresso e total e nextCursor in uscita. nextCursor è null nell’ultima pagina.
  • Link di ritorno: molte risposte contengono openInEcoMark, l’indirizzo del record nel prodotto.
  • Testo nei record (nomi, note, messaggi): l’hanno scritto altre persone. Il server dice ai client di trattarlo come dati da riferire, mai come istruzioni da seguire.

Com’è fatta una risposta#

Ogni strumento risponde con lo stesso valore due volte: come testo JSON in content[0].text, per i client che leggono testo, e come structuredContent, per i client che leggono la struttura. Quando lo strumento non ha potuto fare ciò che era stato chiesto, il valore è { "error": { "code", "message" } } e il risultato contiene isError: true. I codici sono in Errori e limiti.

Il risultato di uno strumento così come viaggia: la risposta 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}

Una lettura, dall’inizio alla fine#

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

Una scrittura, dall’inizio alla fine#

Una scrittura modifica i record di EcoMark, a tuo nome. Dove un record conserva una cronologia (un lead, un appuntamento, un portfolio), la voce indica che è stata fatta tramite il client. Ogni scrittura viene registrata prima di essere eseguita, quindi un nuovo tentativo non può eseguirla due volte.

Corpo della richiesta: creare un’attività, con una chiave scelta dal 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 della risposta
{
  "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 stessa richiesta inviata di nuovo riceve la prima risposta, contrassegnata con replayed. Non viene scritto nulla una seconda volta.

structuredContent della risposta alla stessa richiesta, inviata di nuovo
{
  "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
}

Senza una idempotencyKey, argomenti identici entro un breve intervallo contano come la stessa richiesta; l’intervallo è indicato in Scritture ripetute in Errori e limiti. La stessa chiave con altri argomenti viene rifiutata con conflict.

Cosa può innescare una scrittura nella tua agenzia

Una scrittura non invia nulla a un cliente e non rende pubblico nulla. Se la tua agenzia ha collegato Slack e attivato i suoi avvisi per prenotazioni o lead caldi, un appuntamento creato, spostato o annullato tramite un client, o un lead che diventa caldo, viene annunciato nel canale dell’agenzia esattamente come quando lo fai in EcoMark.

Un’approvazione, dall’inizio alla fine#

Pubblicare e inviare sono richieste. Un client prima prepara una bozza, poi chiede; decidi tu in EcoMark.

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

A questo punto non è cambiato nulla: il link è ancora una bozza. Ricevi una notifica in EcoMark con Rivedi la richiesta, e la richiesta compare in App → Assistenti esterni → In attesa della tua approvazione. Il client legge l’esito con get_request_status.

get_request_status mentre è in attesa
{
  "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 dopo la tua approvazione
{
  "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"
}

Maggiori dettagli sulle approvazioni, e su cosa succede quando una richiesta viene rifiutata, scade o non va a buon fine, in Autorizzazioni e approvazioni.