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
11Non modificano nulla.
whoami
Who is connectedLeggeThe 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 servicesLeggeWhich 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 propertiesLeggeThe agency's listings this member can see, newest change first. Filter by status or by words in the title, city or address.
Autorizzazione
properties:readVedere gli immobiliParametri (4)
statusstringfacoltativoUno tra:
draft,published,needs_attention,archivedsearchstringfacoltativoWords to look for in the name or title.
Da 1 a 80 caratteri
limitintegerfacoltativoHow 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 detailsLeggeOne listing in full: description, features, address, readiness, views and inquiries in the last 30 days, and what is attached to it (photos, documents, tours).
Autorizzazione
properties:readVedere gli immobiliParametri (1)
propertyIdstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
list_leads
List leadsLeggeLeads 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.
Autorizzazione
leads:readVedere i leadParametri (6)
stagestringfacoltativoUno tra:
new,contacted,qualified,appointment,negotiation,won,losttemperaturestringfacoltativoUno tra:
hot,warm,cold,needs_qualificationfollowUpOverduebooleanfacoltativotrue: only leads whose next action is past due.
searchstringfacoltativoWords to look for in the name or title.
Da 1 a 80 caratteri
limitintegerfacoltativoHow 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 detailsLeggeOne lead in full: contact details, what they are looking for, the latest notes and activity, and their upcoming appointments.
Autorizzazione
leads:readVedere i leadParametri (1)
leadIdstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
list_appointments
List appointmentsLeggeAppointments this member can see that overlap a period (default: the next 14 days; at most 62 days), earliest first.
Autorizzazione
calendar:readVedere appuntamenti, attività e disponibilitàParametri (5)
fromdate-timefacoltativoStart of the period, ISO 8601 with offset. Default: now.
todate-timefacoltativoEnd of the period, ISO 8601 with offset.
statusstringfacoltativoUno tra:
scheduled,pending,confirmed,completed,cancelled,no_showlimitintegerfacoltativoHow 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 remindersLeggeTasks 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.
Autorizzazione
calendar:readVedere appuntamenti, attività e disponibilitàParametri (5)
fromdate-timefacoltativoOnly items due at or after this instant. Default: no lower bound for open items.
todate-timefacoltativoOnly items due before this instant. Default: 14 days from now.
donebooleanfacoltativotrue: finished items; false (default): open ones.
limitintegerfacoltativoHow 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 availabilityLeggeWhen 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.
Autorizzazione
calendar:readVedere appuntamenti, attività e disponibilitàParametri (4)
fromdate-timeobbligatorioStart of the period, ISO 8601 with offset.
todate-timeobbligatorioEnd of the period, ISO 8601 with offset.
durationMinutesintegerfacoltativoLength of the slot wanted (default 30).
Da 15 a 480
memberIdstringfacoltativoAdmins only: the member to check. Default: the connected member.
Da 1 a 80 caratteri
get_metrics
Performance summaryLeggePipeline, 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.
Autorizzazione
metrics:readVedere i dati sulle prestazioniParametri (1)
rangestringfacoltativoDefault: week.
Uno tra:
week,month
get_request_status
Status of a requestLeggeWhat 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)
requestIdstringobbligatorioPattern:
^mrq_[a-f0-9]{24}$
Strumenti che scrivono
10Modificano i record di EcoMark. Nulla viene inviato a un cliente e nulla viene reso pubblico.
create_task
Create a task or reminderScriveAdd 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.
Autorizzazione
calendar:writeCreare e modificare appuntamenti e attivitàParametri (6)
titlestringobbligatorioDa 1 a 140 caratteri
dueAtdate-timeobbligatorioWhen it is due, ISO 8601 with offset.
durationMinutesintegerfacoltativoDefault 30. A reminder takes at most 60.
Da 5 a 720
kindstringfacoltativoDefault: task.
Uno tra:
task,reminderlinkedToobjectfacoltativotypestringobbligatorioUno tra:
lead,propertyidstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
idempotencyKeystringfacoltativoOptional. 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 reminderScriveChange a task or reminder the connected member can see: its title, when it is due, how long it takes, or whether it is done.
Autorizzazione
calendar:writeCreare e modificare appuntamenti e attivitàParametri (6)
taskIdstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
titlestringfacoltativoDa 1 a 140 caratteri
dueAtdate-timefacoltativodurationMinutesintegerfacoltativoDa 5 a 720
donebooleanfacoltativoidempotencyKeystringfacoltativoOptional. 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 appointmentScrivePut 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.
Autorizzazione
calendar:writeCreare e modificare appuntamenti e attivitàParametri (9)
titlestringobbligatorioDa 1 a 140 caratteri
startsAtdate-timeobbligatorioISO 8601 with offset; must be in the future.
durationMinutesintegerfacoltativoDefault 30.
Da 15 a 480
kindstringfacoltativoDefault: consultation.
Uno tra:
consultation,property_tour,listing_presentation,virtual_meeting,closingleadIdstringfacoltativoAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
propertyIdstringfacoltativoAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
locationstringfacoltativoFino a 160 caratteri
notesstringfacoltativoFino a 1000 caratteri
idempotencyKeystringfacoltativoOptional. 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 appointmentScriveChange 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.
Autorizzazione
calendar:writeCreare e modificare appuntamenti e attivitàParametri (8)
appointmentIdstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
titlestringfacoltativoDa 1 a 140 caratteri
startsAtdate-timefacoltativodurationMinutesintegerfacoltativoDa 15 a 480
locationstring | nullfacoltativoFino a 160 caratteri
notesstring | nullfacoltativoFino a 1000 caratteri
statusstringfacoltativoUno tra:
confirm,complete,cancel,no_show,reopenidempotencyKeystringfacoltativoOptional. 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 leadScriveMove 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.
Autorizzazione
leads:writeAggiornare i lead e aggiungere noteParametri (7)
leadIdstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
stagestringfacoltativoUno tra:
new,contacted,qualified,appointment,negotiation,won,lostlostReasonstringfacoltativoOnly with stage "lost".
Fino a 200 caratteri
temperaturestringfacoltativoUno tra:
hot,warm,cold,needs_qualificationnextActionstring | nullfacoltativoThe next step, or null to clear it.
Fino a 200 caratteri
nextActionAtdate-time | nullfacoltativoWhen the next step is due, or null.
idempotencyKeystringfacoltativoOptional. 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 leadScriveAdd an internal note to a lead the connected member can see. Notes are for the agency: the client never sees them.
Autorizzazione
leads:writeAggiornare i lead e aggiungere noteParametri (3)
leadIdstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
textstringobbligatorioDa 1 a 2000 caratteri
idempotencyKeystringfacoltativoOptional. 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 messageScriveSave 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.
Autorizzazione
messages:draftPreparare bozze di messaggi, senza mai inviarleParametri (6)
channelstringobbligatorioUno tra:
email,whatsappleadIdstringfacoltativoThe lead to write to (their e-mail address or phone number in EcoMark is used). Give this or conversationId.
Da 1 a 80 caratteri
conversationIdstringfacoltativoAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
subjectstringfacoltativoE-mail only.
Fino a 200 caratteri
bodystringobbligatorioDa 1 a 10.000 caratteri
idempotencyKeystringfacoltativoOptional. 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_link_draft
Create a draft linkScrivePrepare 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.
Autorizzazione
links:draftCreare bozze di link, codici QR e portfolio, senza mai pubblicarleParametri (5)
titlestringobbligatorioDa 2 a 120 caratteri
propertyIdstringfacoltativoA published listing. Give this or destinationUrl.
Da 1 a 80 caratteri
destinationUrlstringfacoltativoFino a 500 caratteri
slugstringfacoltativoLower-case letters, digits and hyphens. Default: made from the title.
Da 2 a 60 caratteri
Pattern:
^[a-z0-9]+(?:-[a-z0-9]+)*$idempotencyKeystringfacoltativoOptional. 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 codeScrivePrepare 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.
Autorizzazione
links:draftCreare bozze di link, codici QR e portfolio, senza mai pubblicarleParametri (6)
titlestringobbligatorioDa 2 a 120 caratteri
propertyIdstringfacoltativoAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
linkIdstringfacoltativoAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
destinationUrlstringfacoltativoFino a 500 caratteri
campaignstringfacoltativoFino a 80 caratteri
idempotencyKeystringfacoltativoOptional. 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 portfolioScrivePut 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).
Autorizzazione
links:draftCreare bozze di link, codici QR e portfolio, senza mai pubblicarleParametri (6)
titlestringobbligatorioDa 2 a 120 caratteri
propertyIdsstring[]obbligatorioDa 1 a 12 elementi
kindstringfacoltativoDefault: property. "client" goes with leadId.
Uno tra:
property,client,presentationleadIdstringfacoltativoAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
introstringfacoltativoFino a 1200 caratteri
idempotencyKeystringfacoltativoOptional. 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
2Registrano una richiesta che il membro approva o rifiuta in EcoMark.
request_publish
Ask to publishChiedeAsk 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.
Autorizzazione
links:draftCreare bozze di link, codici QR e portfolio, senza mai pubblicarleParametri (2)
typestringobbligatorioUno tra:
link,qr,portfolioidstringobbligatorioAn id returned by another EcoMark tool.
Da 1 a 80 caratteri
request_send_message
Ask to send a draftChiedeAsk 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.
Autorizzazione
messages:draftPreparare bozze di messaggi, senza mai inviarleParametri (1)
messageIdstringobbligatorioAn 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.whoamifornisce il fuso orario del membro. - Id: provengono da altri strumenti di EcoMark. Un client non ne inventa mai uno.
- Elenchi: sono paginati, con
limitecursorin ingresso etotalenextCursorin uscita.nextCursorènullnell’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.
{"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#
{
"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"
}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.
{
"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 stessa richiesta inviata di nuovo riceve la prima risposta, contrassegnata con replayed. Non viene scritto nulla una seconda volta.
{
"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.
{
"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."
}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.
{
"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"
}Maggiori dettagli sulle approvazioni, e su cosa succede quando una richiesta viene rifiutata, scade o non va a buon fine, in Autorizzazioni e approvazioni.