Saltar al contenido

Herramientas

Todas las herramientas que ofrece el servidor, el permiso que necesita cada una, sus parámetros y la forma de las respuestas.

En esta página

La lista de abajo se genera a partir del propio servidor: los nombres, los permisos y los parámetros son los que recibe un cliente de tools/list, y las descripciones son las palabras del propio servidor. A una conexión solo se le muestran las herramientas que cubren sus permisos; whoami, get_connections y get_request_status están disponibles para cualquier conexión autorizada.

Referencia#

Herramientas que leen

11

No cambian nada.

  • whoami

    Who is connectedLee

    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.

    PermisoCualquier conexión autorizada

    Sin parámetros.

  • get_connections

    Connected servicesLee

    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.

    PermisoCualquier conexión autorizada

    Sin parámetros.

  • list_properties

    List propertiesLee

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

    Permisoproperties:readVer propiedades

    Parámetros (4)
    • statusstringopcional

      Uno de: draft, published, needs_attention, archived

    • searchstringopcional

      Words to look for in the name or title.

      De 1 a 80 caracteres

    • limitintegeropcional

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

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Hasta 40 caracteres

  • get_property

    Property detailsLee

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

    Permisoproperties:readVer propiedades

    Parámetros (1)
    • propertyIdstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

  • list_leads

    List leadsLee

    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.

    Permisoleads:readVer leads

    Parámetros (6)
    • stagestringopcional

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

    • temperaturestringopcional

      Uno de: hot, warm, cold, needs_qualification

    • followUpOverduebooleanopcional

      true: only leads whose next action is past due.

    • searchstringopcional

      Words to look for in the name or title.

      De 1 a 80 caracteres

    • limitintegeropcional

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

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Hasta 40 caracteres

  • get_lead

    Lead detailsLee

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

    Permisoleads:readVer leads

    Parámetros (1)
    • leadIdstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

  • list_appointments

    List appointmentsLee

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

    Permisocalendar:readVer citas, tareas y disponibilidad

    Parámetros (5)
    • fromdate-timeopcional

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

    • todate-timeopcional

      End of the period, ISO 8601 with offset.

    • statusstringopcional

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

    • limitintegeropcional

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

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Hasta 40 caracteres

  • list_tasks

    List tasks and remindersLee

    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.

    Permisocalendar:readVer citas, tareas y disponibilidad

    Parámetros (5)
    • fromdate-timeopcional

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

    • todate-timeopcional

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

    • donebooleanopcional

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

    • limitintegeropcional

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

      De 1 a 50

    • cursorstringopcional

      `nextCursor` from the previous page.

      Hasta 40 caracteres

  • check_availability

    Check availabilityLee

    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.

    Permisocalendar:readVer citas, tareas y disponibilidad

    Parámetros (4)
    • fromdate-timeobligatorio

      Start of the period, ISO 8601 with offset.

    • todate-timeobligatorio

      End of the period, ISO 8601 with offset.

    • durationMinutesintegeropcional

      Length of the slot wanted (default 30).

      De 15 a 480

    • memberIdstringopcional

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

      De 1 a 80 caracteres

  • get_metrics

    Performance summaryLee

    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.

    Permisometrics:readVer cifras de rendimiento

    Parámetros (1)
    • rangestringopcional

      Default: week.

      Uno de: week, month

  • get_request_status

    Status of a requestLee

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

    PermisoCualquier conexión autorizada

    Parámetros (1)
    • requestIdstringobligatorio

      Patrón: ^mrq_[a-f0-9]{24}$

Herramientas que escriben

10

Cambian las propias fichas de EcoMark. No se envía nada a ningún cliente y no se hace público nada.

  • create_task

    Create a task or reminderEscribe

    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.

    Permisocalendar:writeCrear y cambiar citas y tareas

    Parámetros (6)
    • titlestringobligatorio

      De 1 a 140 caracteres

    • dueAtdate-timeobligatorio

      When it is due, ISO 8601 with offset.

    • durationMinutesintegeropcional

      Default 30. A reminder takes at most 60.

      De 5 a 720

    • kindstringopcional

      Default: task.

      Uno de: task, reminder

    • linkedToobjectopcional
      • typestringobligatorio

        Uno de: lead, property

      • idstringobligatorio

        An id returned by another EcoMark tool.

        De 1 a 80 caracteres

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • update_task

    Update a task or reminderEscribe

    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.

    Permisocalendar:writeCrear y cambiar citas y tareas

    Parámetros (6)
    • taskIdstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • titlestringopcional

      De 1 a 140 caracteres

    • dueAtdate-timeopcional
    • durationMinutesintegeropcional

      De 5 a 720

    • donebooleanopcional
    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • create_appointment

    Create an appointmentEscribe

    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.

    Permisocalendar:writeCrear y cambiar citas y tareas

    Parámetros (9)
    • titlestringobligatorio

      De 1 a 140 caracteres

    • startsAtdate-timeobligatorio

      ISO 8601 with offset; must be in the future.

    • durationMinutesintegeropcional

      Default 30.

      De 15 a 480

    • kindstringopcional

      Default: consultation.

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

    • leadIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • propertyIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • locationstringopcional

      Hasta 160 caracteres

    • notesstringopcional

      Hasta 1000 caracteres

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • update_appointment

    Update an appointmentEscribe

    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.

    Permisocalendar:writeCrear y cambiar citas y tareas

    Parámetros (8)
    • appointmentIdstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • titlestringopcional

      De 1 a 140 caracteres

    • startsAtdate-timeopcional
    • durationMinutesintegeropcional

      De 15 a 480

    • locationstring | nullopcional

      Hasta 160 caracteres

    • notesstring | nullopcional

      Hasta 1000 caracteres

    • statusstringopcional

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

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • update_lead

    Update a leadEscribe

    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.

    Permisoleads:writeActualizar leads y añadir notas

    Parámetros (7)
    • leadIdstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • stagestringopcional

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

    • lostReasonstringopcional

      Only with stage "lost".

      Hasta 200 caracteres

    • temperaturestringopcional

      Uno de: hot, warm, cold, needs_qualification

    • nextActionstring | nullopcional

      The next step, or null to clear it.

      Hasta 200 caracteres

    • nextActionAtdate-time | nullopcional

      When the next step is due, or null.

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • add_lead_note

    Add a note to a leadEscribe

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

    Permisoleads:writeActualizar leads y añadir notas

    Parámetros (3)
    • leadIdstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • textstringobligatorio

      De 1 a 2000 caracteres

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • draft_message

    Draft a messageEscribe

    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.

    Permisomessages:draftPreparar borradores de mensajes; nunca enviar

    Parámetros (6)
    • channelstringobligatorio

      Uno de: email, whatsapp

    • leadIdstringopcional

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

      De 1 a 80 caracteres

    • conversationIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • subjectstringopcional

      E-mail only.

      Hasta 200 caracteres

    • bodystringobligatorio

      De 1 a 10.000 caracteres

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • create_qr_draft

    Create a draft QR codeEscribe

    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.

    Permisolinks:draftCrear enlaces, códigos QR y portafolios en borrador; nunca publicar

    Parámetros (6)
    • titlestringobligatorio

      De 2 a 120 caracteres

    • propertyIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • linkIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • destinationUrlstringopcional

      Hasta 500 caracteres

    • campaignstringopcional

      Hasta 80 caracteres

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

  • create_portfolio_draft

    Create an unpublished portfolioEscribe

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

    Permisolinks:draftCrear enlaces, códigos QR y portafolios en borrador; nunca publicar

    Parámetros (6)
    • titlestringobligatorio

      De 2 a 120 caracteres

    • propertyIdsstring[]obligatorio

      De 1 a 12 elementos

    • kindstringopcional

      Default: property. "client" goes with leadId.

      Uno de: property, client, presentation

    • leadIdstringopcional

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

    • introstringopcional

      Hasta 1200 caracteres

    • idempotencyKeystringopcional

      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.

      Patrón: ^[\x21-\x7e]{8,80}$

Herramientas que piden aprobación

2

Registran una solicitud que el miembro aprueba o rechaza dentro de EcoMark.

  • request_publish

    Ask to publishPide

    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.

    Permisolinks:draftCrear enlaces, códigos QR y portafolios en borrador; nunca publicar

    Parámetros (2)
    • typestringobligatorio

      Uno de: link, qr, portfolio

    • idstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

  • request_send_message

    Ask to send a draftPide

    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.

    Permisomessages:draftPreparar borradores de mensajes; nunca enviar

    Parámetros (1)
    • messageIdstringobligatorio

      An id returned by another EcoMark tool.

      De 1 a 80 caracteres

Los nombres y las descripciones son el texto de referencia del propio servidor, en inglés.

Convenciones#

  • Identidad: como quién actúa una petición sale del token. Ninguna herramienta tiene un argumento para la agencia ni para el miembro que actúa; si se envía uno de todos modos, como agencyId, no cambia nada.
  • Horas: en ISO 8601 con desfase, por ejemplo 2026-10-09T10:00:00+02:00. Las respuestas van en UTC. whoami da la zona horaria del miembro.
  • Ids: salen de otras herramientas de EcoMark. Un cliente nunca se inventa uno.
  • Listas: van paginadas, con limit y cursor de entrada y total y nextCursor de salida. nextCursor es null en la última página.
  • Enlaces de vuelta: muchas respuestas llevan openInEcoMark, la dirección de la ficha en el producto.
  • Texto dentro de las fichas (nombres, notas, mensajes): lo escribieron otras personas. El servidor indica a los clientes que lo traten como datos de los que informar, nunca como instrucciones que seguir.

Cómo es una respuesta#

Todas las herramientas responden con el mismo valor dos veces: como texto JSON en content[0].text, para los clientes que leen texto, y como structuredContent, para los clientes que leen estructura. Cuando la herramienta no pudo hacer lo que se pedía, el valor es { "error": { "code", "message" } } y el resultado lleva isError: true. Los códigos están en Errores y límites.

El resultado de una herramienta tal como viaja: la respuesta 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 lectura, de principio a fin#

Cuerpo de la petición
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_leads",
    "arguments": {
      "followUpOverdue": true,
      "limit": 2
    }
  }
}
structuredContent de la respuesta
{
  "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 escritura, de principio a fin#

Una escritura cambia las propias fichas de EcoMark, a tu nombre. Donde una ficha guarda historial (un lead, una cita, un portafolio), la entrada dice que se hizo a través del cliente. Cada escritura se registra antes de ejecutarse, así que un reintento no puede hacerla dos veces.

Cuerpo de la petición: crear una tarea, con una clave propia del cliente
{
  "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 respuesta
{
  "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 misma petición enviada otra vez recibe la primera respuesta, marcada como replayed. No se escribe nada una segunda vez.

structuredContent de la respuesta a la misma petición, enviada otra vez
{
  "task": {
    "id": "cal_muyvbfgb18qhy",
    "kind": "task",
    "title": "Call the notary",
    "dueAt": "2026-10-09T08:00:00.000Z",
    "durationMinutes": 20
  },
  "openInEcoMark": "https://www.ecomarkai.com/calendar",
  "replayed": true
}

Sin idempotencyKey, unos argumentos idénticos dentro de un plazo corto cuentan como la misma petición; el plazo está en Escrituras repetidas, en Errores y límites. La misma clave con otros argumentos se rechaza con conflict.

Lo que una escritura puede desencadenar dentro de tu agencia

Una escritura no envía nada a ningún cliente ni hace nada público. Si tu agencia conectó Slack y activó sus avisos de reservas o de leads calientes, una cita creada, movida o cancelada a través de un cliente, o un lead que pasa a caliente, se anuncia en el canal de la agencia exactamente igual que cuando lo haces en EcoMark.

Una aprobación, de principio a fin#

Publicar y enviar son solicitudes. Un cliente primero prepara un borrador y después pide; tú decides en EcoMark.

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

En este punto no ha cambiado nada: el enlace sigue siendo un borrador. Recibes una notificación en EcoMark con Revisar solicitud, y la solicitud aparece en Apps → Asistentes externos → Esperan tu aprobación. El cliente lee el resultado con get_request_status.

get_request_status mientras espera
{
  "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 después de que lo aprobaras
{
  "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"
}

Más sobre las aprobaciones, y sobre lo que pasa cuando una solicitud se rechaza, caduca o falla, en Permisos y aprobaciones.