ツール
サーバーが提供するすべてのツール、それぞれに必要な権限、パラメーター、そして応答の形を説明します。
以下の一覧は、サーバー自身から生成されています。名前、権限、パラメーターはクライアントが 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}$
書き込むツール
10EcoMark 自身のレコードを変更します。顧客には何も送信されず、何も公開されません。
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リンク、QRコード、ポートフォリオの下書き作成(公開は不可)パラメーター(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リンク、QRコード、ポートフォリオの下書き作成(公開は不可)パラメーター(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リンク、QRコード、ポートフォリオの下書き作成(公開は不可)パラメーター(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リンク、QRコード、ポートフォリオの下書き作成(公開は不可)パラメーター(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などを送っても何も変わりません。 - 日時は、
2026-10-09T10:00:00+02:00のようにオフセット付きの ISO 8601 形式です。応答は UTC です。メンバーのタイムゾーンはwhoamiで確認できます。 - ID は、EcoMark のほかのツールから取得します。クライアントが ID を作り出すことはありません。
- 一覧はページ分割されます。入力は
limitとcursor、出力はtotalとnextCursorです。最後のページでは、nextCursorがnullになります。 - EcoMark へのリンク:多くの応答には、製品内のそのレコードのアドレスである
openInEcoMarkが含まれます。 - レコード内のテキスト(名前、メモ、メッセージ)は、ほかの人が書いたものです。サーバーはクライアントに対し、これを報告すべきデータとして扱い、従うべき指示としては決して扱わないよう伝えています。
応答の形#
どのツールも、同じ値を 2 回返します。テキストを読むクライアント向けに 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 自身のレコードを変更します。履歴が残るレコード(リード、アポイント、ポートフォリオ)では、クライアントを通じて行われたことが記録されます。書き込みはすべて実行前に登録されるため、再試行で 2 回実行されることはありません。
{
"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 の印付きで返されます。2 回目の書き込みは行われません。
{
"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"
}承認の詳細と、リクエストが却下された場合、期限切れになった場合、失敗した場合の動作については、権限と承認を参照してください。