Skip to content

Tools

Every tool the server offers, the permission each one needs, its parameters, and how answers are shaped.

On this page

The list below is generated from the server itself: names, permissions and parameters are the ones a client receives from tools/list, and the descriptions are the server's own words. A connection is only shown the tools its permissions cover; whoami, get_connections and get_request_status are there for any authorised connection.

Reference#

Tools that read

11

They change nothing.

  • whoami

    Who is connectedReads

    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.

    PermissionAny authorised connection

    No parameters.

  • get_connections

    Connected servicesReads

    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.

    PermissionAny authorised connection

    No parameters.

  • list_properties

    List propertiesReads

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

    Permissionproperties:readSee properties

    Parameters (4)
    • statusstringoptional

      One of: draft, published, needs_attention, archived

    • searchstringoptional

      Words to look for in the name or title.

      1 to 80 characters

    • limitintegeroptional

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

      1 to 50

    • cursorstringoptional

      `nextCursor` from the previous page.

      Up to 40 characters

  • get_property

    Property detailsReads

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

    Permissionproperties:readSee properties

    Parameters (1)
    • propertyIdstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

  • list_leads

    List leadsReads

    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.

    Permissionleads:readSee leads

    Parameters (6)
    • stagestringoptional

      One of: new, contacted, qualified, appointment, negotiation, won, lost

    • temperaturestringoptional

      One of: hot, warm, cold, needs_qualification

    • followUpOverduebooleanoptional

      true: only leads whose next action is past due.

    • searchstringoptional

      Words to look for in the name or title.

      1 to 80 characters

    • limitintegeroptional

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

      1 to 50

    • cursorstringoptional

      `nextCursor` from the previous page.

      Up to 40 characters

  • get_lead

    Lead detailsReads

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

    Permissionleads:readSee leads

    Parameters (1)
    • leadIdstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

  • list_appointments

    List appointmentsReads

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

    Permissioncalendar:readSee appointments, tasks and availability

    Parameters (5)
    • fromdate-timeoptional

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

    • todate-timeoptional

      End of the period, ISO 8601 with offset.

    • statusstringoptional

      One of: scheduled, pending, confirmed, completed, cancelled, no_show

    • limitintegeroptional

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

      1 to 50

    • cursorstringoptional

      `nextCursor` from the previous page.

      Up to 40 characters

  • list_tasks

    List tasks and remindersReads

    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.

    Permissioncalendar:readSee appointments, tasks and availability

    Parameters (5)
    • fromdate-timeoptional

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

    • todate-timeoptional

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

    • donebooleanoptional

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

    • limitintegeroptional

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

      1 to 50

    • cursorstringoptional

      `nextCursor` from the previous page.

      Up to 40 characters

  • check_availability

    Check availabilityReads

    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.

    Permissioncalendar:readSee appointments, tasks and availability

    Parameters (4)
    • fromdate-timerequired

      Start of the period, ISO 8601 with offset.

    • todate-timerequired

      End of the period, ISO 8601 with offset.

    • durationMinutesintegeroptional

      Length of the slot wanted (default 30).

      15 to 480

    • memberIdstringoptional

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

      1 to 80 characters

  • get_metrics

    Performance summaryReads

    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.

    Permissionmetrics:readSee performance figures

    Parameters (1)
    • rangestringoptional

      Default: week.

      One of: week, month

  • get_request_status

    Status of a requestReads

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

    PermissionAny authorised connection

    Parameters (1)
    • requestIdstringrequired

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

Tools that write

10

They change EcoMark's own records. Nothing is sent to a client and nothing is made public.

  • create_task

    Create a task or reminderWrites

    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.

    Permissioncalendar:writeCreate and change appointments and tasks

    Parameters (6)
    • titlestringrequired

      1 to 140 characters

    • dueAtdate-timerequired

      When it is due, ISO 8601 with offset.

    • durationMinutesintegeroptional

      Default 30. A reminder takes at most 60.

      5 to 720

    • kindstringoptional

      Default: task.

      One of: task, reminder

    • linkedToobjectoptional
      • typestringrequired

        One of: lead, property

      • idstringrequired

        An id returned by another EcoMark tool.

        1 to 80 characters

    • idempotencyKeystringoptional

      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 reminderWrites

    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.

    Permissioncalendar:writeCreate and change appointments and tasks

    Parameters (6)
    • taskIdstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

    • titlestringoptional

      1 to 140 characters

    • dueAtdate-timeoptional
    • durationMinutesintegeroptional

      5 to 720

    • donebooleanoptional
    • idempotencyKeystringoptional

      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 appointmentWrites

    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.

    Permissioncalendar:writeCreate and change appointments and tasks

    Parameters (9)
    • titlestringrequired

      1 to 140 characters

    • startsAtdate-timerequired

      ISO 8601 with offset; must be in the future.

    • durationMinutesintegeroptional

      Default 30.

      15 to 480

    • kindstringoptional

      Default: consultation.

      One of: consultation, property_tour, listing_presentation, virtual_meeting, closing

    • leadIdstringoptional

      An id returned by another EcoMark tool.

      1 to 80 characters

    • propertyIdstringoptional

      An id returned by another EcoMark tool.

      1 to 80 characters

    • locationstringoptional

      Up to 160 characters

    • notesstringoptional

      Up to 1,000 characters

    • idempotencyKeystringoptional

      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 appointmentWrites

    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.

    Permissioncalendar:writeCreate and change appointments and tasks

    Parameters (8)
    • appointmentIdstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

    • titlestringoptional

      1 to 140 characters

    • startsAtdate-timeoptional
    • durationMinutesintegeroptional

      15 to 480

    • locationstring | nulloptional

      Up to 160 characters

    • notesstring | nulloptional

      Up to 1,000 characters

    • statusstringoptional

      One of: confirm, complete, cancel, no_show, reopen

    • idempotencyKeystringoptional

      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 leadWrites

    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.

    Permissionleads:writeUpdate leads and add notes

    Parameters (7)
    • leadIdstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

    • stagestringoptional

      One of: new, contacted, qualified, appointment, negotiation, won, lost

    • lostReasonstringoptional

      Only with stage "lost".

      Up to 200 characters

    • temperaturestringoptional

      One of: hot, warm, cold, needs_qualification

    • nextActionstring | nulloptional

      The next step, or null to clear it.

      Up to 200 characters

    • nextActionAtdate-time | nulloptional

      When the next step is due, or null.

    • idempotencyKeystringoptional

      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 leadWrites

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

    Permissionleads:writeUpdate leads and add notes

    Parameters (3)
    • leadIdstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

    • textstringrequired

      1 to 2,000 characters

    • idempotencyKeystringoptional

      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 messageWrites

    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.

    Permissionmessages:draftPrepare message drafts, but never send

    Parameters (6)
    • channelstringrequired

      One of: email, whatsapp

    • leadIdstringoptional

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

      1 to 80 characters

    • conversationIdstringoptional

      An id returned by another EcoMark tool.

      1 to 80 characters

    • subjectstringoptional

      E-mail only.

      Up to 200 characters

    • bodystringrequired

      1 to 10,000 characters

    • idempotencyKeystringoptional

      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 codeWrites

    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.

    Permissionlinks:draftCreate draft links, QR codes and portfolios, but never publish

    Parameters (6)
    • titlestringrequired

      2 to 120 characters

    • propertyIdstringoptional

      An id returned by another EcoMark tool.

      1 to 80 characters

    • linkIdstringoptional

      An id returned by another EcoMark tool.

      1 to 80 characters

    • destinationUrlstringoptional

      Up to 500 characters

    • campaignstringoptional

      Up to 80 characters

    • idempotencyKeystringoptional

      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 portfolioWrites

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

    Permissionlinks:draftCreate draft links, QR codes and portfolios, but never publish

    Parameters (6)
    • titlestringrequired

      2 to 120 characters

    • propertyIdsstring[]required

      1 to 12 items

    • kindstringoptional

      Default: property. "client" goes with leadId.

      One of: property, client, presentation

    • leadIdstringoptional

      An id returned by another EcoMark tool.

      1 to 80 characters

    • introstringoptional

      Up to 1,200 characters

    • idempotencyKeystringoptional

      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}$

Tools that ask for approval

2

They file a request the member approves or rejects inside EcoMark.

  • request_publish

    Ask to publishAsks

    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.

    Permissionlinks:draftCreate draft links, QR codes and portfolios, but never publish

    Parameters (2)
    • typestringrequired

      One of: link, qr, portfolio

    • idstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

  • request_send_message

    Ask to send a draftAsks

    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.

    Permissionmessages:draftPrepare message drafts, but never send

    Parameters (1)
    • messageIdstringrequired

      An id returned by another EcoMark tool.

      1 to 80 characters

Names and descriptions are the server's own reference text, in English.

Conventions#

  • Identity: who a request acts as comes from the token. No tool has an argument for the agency or for the acting member; one sent anyway, such as agencyId, changes nothing.
  • Times are ISO 8601 with an offset, for example 2026-10-09T10:00:00+02:00. Answers are in UTC. whoami gives the member's time zone.
  • Ids come from other EcoMark tools. A client never invents one.
  • Lists are paged: limit and cursor in, total and nextCursor out. nextCursor is null on the last page.
  • Links back: many answers carry openInEcoMark, the address of the record in the product.
  • Text inside records (names, notes, messages) was written by other people. The server tells clients to treat it as data to report, never as instructions to follow.

How an answer is shaped#

Every tool answers with the same value twice: as JSON text in content[0].text, for clients that read text, and as structuredContent, for clients that read structure. When the tool could not do what was asked, the value is { "error": { "code", "message" } } and the result carries isError: true. The codes are in Errors and limits.

A tool result on the wire: the JSON-RPC response
{"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}

A read, end to end#

Request body
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_leads",
    "arguments": {
      "followUpOverdue": true,
      "limit": 2
    }
  }
}
structuredContent of the answer
{
  "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"
}

A write, end to end#

A write changes EcoMark's own records, under your name. Where a record keeps a history (a lead, an appointment, a portfolio), the entry says it was done through the client. Every write is filed before it runs, so a retry cannot do it twice.

Request body: create a task, with a key of the client's own
{
  "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 of the answer
{
  "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"
}

The same request sent again gets the first answer back, marked replayed. Nothing is written a second time.

structuredContent of the answer to the same request, sent again
{
  "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
}

Without an idempotencyKey, identical arguments within a short window count as the same request; the window is under Repeated writes in Errors and limits. The same key with other arguments is refused with conflict.

What a write can set off inside your agency

Nothing is sent to a client and nothing is made public by a write. If your agency connected Slack and switched on its notices for bookings or hot leads, an appointment created, moved or cancelled through a client, or a lead that turns hot, is announced in the agency's channel exactly as when you do it in EcoMark.

An approval, end to end#

Publishing and sending are requests. A client first prepares a draft, then asks; you decide in EcoMark.

create_link_draft: arguments
{
  "title": "Open house Saturday",
  "destinationUrl": "https://example.com/open-house"
}
create_link_draft: structuredContent of the answer
{
  "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 of the answer
{
  "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."
}

Nothing has changed at this point: the link is still a draft. You get a notification in EcoMark with Review request, and the request is listed under Apps → External assistants → Waiting for your approval. The client reads the outcome with get_request_status.

get_request_status while it waits
{
  "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 after you approved
{
  "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"
}

More about approvals, and what happens when a request is rejected, expires or fails, is in Permissions and approvals.