工具
服务器提供的每个工具、各自所需的权限、参数,以及响应的格式。
下方列表直接由服务器生成:名称、权限和参数与客户端从 tools/list 收到的完全一致,描述也是服务器自己的文字。一个连接只会看到其权限所涵盖的工具;whoami、get_connections 和 get_request_status 对任何已授权的连接都可用。
参考#
读取类工具
11它们不会更改任何内容。
whoami
Who is connected读取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.
权限任何已授权的连接
无参数。
get_connections
Connected services读取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.
权限任何已授权的连接
无参数。
list_properties
List properties读取The agency's listings this member can see, newest change first. Filter by status or by words in the title, city or address.
权限
properties:read查看房源参数(4)
statusstring选填可选值之一:
draft,published,needs_attention,archivedsearchstring选填Words to look for in the name or title.
1到80个字符
limitinteger选填How many to return (default 20, at most 50).
1到50
cursorstring选填`nextCursor` from the previous page.
最多40个字符
get_property
Property details读取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).
权限
properties:read查看房源参数(1)
propertyIdstring必填An id returned by another EcoMark tool.
1到80个字符
list_leads
List leads读取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.
权限
leads:read查看潜在客户参数(6)
stagestring选填可选值之一:
new,contacted,qualified,appointment,negotiation,won,losttemperaturestring选填可选值之一:
hot,warm,cold,needs_qualificationfollowUpOverdueboolean选填true: only leads whose next action is past due.
searchstring选填Words to look for in the name or title.
1到80个字符
limitinteger选填How many to return (default 20, at most 50).
1到50
cursorstring选填`nextCursor` from the previous page.
最多40个字符
get_lead
Lead details读取One lead in full: contact details, what they are looking for, the latest notes and activity, and their upcoming appointments.
权限
leads:read查看潜在客户参数(1)
leadIdstring必填An id returned by another EcoMark tool.
1到80个字符
list_appointments
List appointments读取Appointments this member can see that overlap a period (default: the next 14 days; at most 62 days), earliest first.
权限
calendar:read查看预约、任务和空闲时间参数(5)
fromdate-time选填Start of the period, ISO 8601 with offset. Default: now.
todate-time选填End of the period, ISO 8601 with offset.
statusstring选填可选值之一:
scheduled,pending,confirmed,completed,cancelled,no_showlimitinteger选填How many to return (default 20, at most 50).
1到50
cursorstring选填`nextCursor` from the previous page.
最多40个字符
list_tasks
List tasks and reminders读取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.
权限
calendar:read查看预约、任务和空闲时间参数(5)
fromdate-time选填Only items due at or after this instant. Default: no lower bound for open items.
todate-time选填Only items due before this instant. Default: 14 days from now.
doneboolean选填true: finished items; false (default): open ones.
limitinteger选填How many to return (default 20, at most 50).
1到50
cursorstring选填`nextCursor` from the previous page.
最多40个字符
check_availability
Check availability读取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.
权限
calendar:read查看预约、任务和空闲时间参数(4)
fromdate-time必填Start of the period, ISO 8601 with offset.
todate-time必填End of the period, ISO 8601 with offset.
durationMinutesinteger选填Length of the slot wanted (default 30).
15到480
memberIdstring选填Admins only: the member to check. Default: the connected member.
1到80个字符
get_metrics
Performance summary读取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.
权限
metrics:read查看业绩数据参数(1)
rangestring选填Default: week.
可选值之一:
week,month
get_request_status
Status of a request读取What the member decided about a request made with request_publish or request_send_message: pending, approved (and what happened), rejected, expired or failed.
权限任何已授权的连接
参数(1)
requestIdstring必填格式:
^mrq_[a-f0-9]{24}$
写入类工具
10它们会更改 EcoMark 自己的记录。不会向客户发送任何内容,也不会公开任何内容。
create_task
Create a task or reminder写入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.
权限
calendar:write创建和修改预约及任务参数(6)
titlestring必填1到140个字符
dueAtdate-time必填When it is due, ISO 8601 with offset.
durationMinutesinteger选填Default 30. A reminder takes at most 60.
5到720
kindstring选填Default: task.
可选值之一:
task,reminderlinkedToobject选填typestring必填可选值之一:
lead,propertyidstring必填An id returned by another EcoMark tool.
1到80个字符
idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
update_task
Update a task or reminder写入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.
权限
calendar:write创建和修改预约及任务参数(6)
taskIdstring必填An id returned by another EcoMark tool.
1到80个字符
titlestring选填1到140个字符
dueAtdate-time选填durationMinutesinteger选填5到720
doneboolean选填idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
create_appointment
Create an appointment写入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.
权限
calendar:write创建和修改预约及任务参数(9)
titlestring必填1到140个字符
startsAtdate-time必填ISO 8601 with offset; must be in the future.
durationMinutesinteger选填Default 30.
15到480
kindstring选填Default: consultation.
可选值之一:
consultation,property_tour,listing_presentation,virtual_meeting,closingleadIdstring选填An id returned by another EcoMark tool.
1到80个字符
propertyIdstring选填An id returned by another EcoMark tool.
1到80个字符
locationstring选填最多160个字符
notesstring选填最多1,000个字符
idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
update_appointment
Update an appointment写入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.
权限
calendar:write创建和修改预约及任务参数(8)
appointmentIdstring必填An id returned by another EcoMark tool.
1到80个字符
titlestring选填1到140个字符
startsAtdate-time选填durationMinutesinteger选填15到480
locationstring | null选填最多160个字符
notesstring | null选填最多1,000个字符
statusstring选填可选值之一:
confirm,complete,cancel,no_show,reopenidempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
update_lead
Update a lead写入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.
权限
leads:write更新潜在客户并添加备注参数(7)
leadIdstring必填An id returned by another EcoMark tool.
1到80个字符
stagestring选填可选值之一:
new,contacted,qualified,appointment,negotiation,won,lostlostReasonstring选填Only with stage "lost".
最多200个字符
temperaturestring选填可选值之一:
hot,warm,cold,needs_qualificationnextActionstring | null选填The next step, or null to clear it.
最多200个字符
nextActionAtdate-time | null选填When the next step is due, or null.
idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
add_lead_note
Add a note to a lead写入Add an internal note to a lead the connected member can see. Notes are for the agency: the client never sees them.
权限
leads:write更新潜在客户并添加备注参数(3)
leadIdstring必填An id returned by another EcoMark tool.
1到80个字符
textstring必填1到2,000个字符
idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
draft_message
Draft a message写入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.
权限
messages:draft准备消息草稿,绝不发送参数(6)
channelstring必填可选值之一:
email,whatsappleadIdstring选填The lead to write to (their e-mail address or phone number in EcoMark is used). Give this or conversationId.
1到80个字符
conversationIdstring选填An id returned by another EcoMark tool.
1到80个字符
subjectstring选填E-mail only.
最多200个字符
bodystring必填1到10,000个字符
idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
create_link_draft
Create a draft link写入Prepare 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.
权限
links:draft创建链接、二维码和房源合集的草稿,绝不发布参数(5)
titlestring必填2到120个字符
propertyIdstring选填A published listing. Give this or destinationUrl.
1到80个字符
destinationUrlstring选填最多500个字符
slugstring选填Lower-case letters, digits and hyphens. Default: made from the title.
2到60个字符
格式:
^[a-z0-9]+(?:-[a-z0-9]+)*$idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
create_qr_draft
Create a draft QR code写入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.
权限
links:draft创建链接、二维码和房源合集的草稿,绝不发布参数(6)
titlestring必填2到120个字符
propertyIdstring选填An id returned by another EcoMark tool.
1到80个字符
linkIdstring选填An id returned by another EcoMark tool.
1到80个字符
destinationUrlstring选填最多500个字符
campaignstring选填最多80个字符
idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
create_portfolio_draft
Create an unpublished portfolio写入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).
权限
links:draft创建链接、二维码和房源合集的草稿,绝不发布参数(6)
titlestring必填2到120个字符
propertyIdsstring[]必填1到12项
kindstring选填Default: property. "client" goes with leadId.
可选值之一:
property,client,presentationleadIdstring选填An id returned by another EcoMark tool.
1到80个字符
introstring选填最多1,200个字符
idempotencyKeystring选填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.
格式:
^[\x21-\x7e]{8,80}$
请求批准类工具
2它们会提交一个请求,由成员在 EcoMark 中批准或拒绝。
request_publish
Ask to publish请求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.
权限
links:draft创建链接、二维码和房源合集的草稿,绝不发布参数(2)
typestring必填可选值之一:
link,qr,portfolioidstring必填An id returned by another EcoMark tool.
1到80个字符
request_send_message
Ask to send a draft请求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.
权限
messages:draft准备消息草稿,绝不发送参数(1)
messageIdstring必填An id returned by another EcoMark tool.
1到80个字符
名称和描述为服务器自身的英文参考文本。
约定#
- 身份:请求以谁的身份执行,取决于令牌。没有任何工具提供用于指定中介公司或执行成员的参数;即使发送了这样的参数(例如
agencyId),也不会产生任何影响。 - 时间:采用带时区偏移的 ISO 8601 格式,例如
2026-10-09T10:00:00+02:00。响应使用 UTC。whoami会给出成员的时区。 - ID:来自其他 EcoMark 工具。客户端绝不会自行编造。
- 列表:分页返回:传入
limit和cursor,返回total和nextCursor。最后一页的nextCursor为null。 - 回链:许多响应都带有
openInEcoMark,即该记录在产品中的地址。 - 记录中的文本(姓名、备注、消息)由其他人撰写。服务器会告知客户端,应将其视为需要报告的数据,绝不能当作需要遵循的指令。
响应的格式#
每个工具都会以两种形式返回同一个值:在 content[0].text 中以 JSON 文本返回,供读取文本的客户端使用;在 structuredContent 中返回,供读取结构化数据的客户端使用。当工具无法完成请求时,该值为 { "error": { "code", "message" } },且结果带有 isError: true。错误代码见错误与限制。
{"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}一次读取的完整过程#
{
"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"
}一次写入的完整过程#
写入会以您的名义更改 EcoMark 自己的记录。对于保留历史记录的记录(潜在客户、预约、房源合集),相应条目会注明该操作是通过客户端完成的。每次写入在执行前都会先登记,因此重试不会导致执行两次。
{
"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"
}再次发送相同的请求,会收到第一次的响应,并标记为 replayed。不会再次写入任何内容。
{
"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
}如果没有 idempotencyKey,在较短的时间窗口内参数完全相同的请求会被视为同一个请求;时间窗口见错误与限制中的“重复写入”。相同的密钥搭配不同的参数,会以 conflict 拒绝。
一次写入可能在您的中介公司内部引发什么
写入不会向客户发送任何内容,也不会公开任何内容。如果您的中介公司连接了 Slack 并开启了预订或高意向潜在客户的通知,那么通过客户端创建、调整或取消的预约,或者变为高意向的潜在客户,都会在中介公司的频道中发布通知,与您在 EcoMark 中操作时完全一样。
一次批准的完整过程#
发布和发送都是请求。客户端先准备草稿,然后提出请求;由您在 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."
}此时什么都没有改变:链接仍然是草稿。您会在 EcoMark 中收到一条带有审核请求的通知,该请求也会列在应用 → 外部助手 → 等待您批准下。客户端通过 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"
}有关审批的更多信息,以及请求被拒绝、过期或失败时会发生什么,请参阅权限与审批。