本文へスキップ

ツール

サーバーが提供するすべてのツール、それぞれに必要な権限、パラメーター、そして応答の形を説明します。

このページの内容

以下の一覧は、サーバー自身から生成されています。名前、権限、パラメーターはクライアントが 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, archived

    • 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_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, lost

    • temperaturestring任意

      次のいずれか:hot, warm, cold, needs_qualification

    • followUpOverdueboolean任意

      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_show

    • limitinteger任意

      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, reminder

    • linkedToobject任意
      • typestring必須

        次のいずれか:lead, property

      • idstring必須

        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, closing

    • leadIdstring任意

      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, reopen

    • 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_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, lost

    • lostReasonstring任意

      Only with stage "lost".

      200 文字以内

    • temperaturestring任意

      次のいずれか:hot, warm, cold, needs_qualification

    • nextActionstring | 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, whatsapp

    • leadIdstring任意

      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_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, presentation

    • leadIdstring任意

      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, portfolio

    • idstring必須

      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 が付きます。コードはエラーと上限に記載しています。

通信上のツールの結果: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}

読み取りの流れ#

リクエストボディ
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_leads",
    "arguments": {
      "followUpOverdue": true,
      "limit": 2
    }
  }
}
応答の structuredContent
{
  "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"
    }
  }
}
応答の structuredContent
{
  "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 回目の書き込みは行われません。

同じリクエストを再送したときの応答の structuredContent
{
  "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 にいるあなたです。

create_link_draft:引数
{
  "title": "Open house Saturday",
  "destinationUrl": "https://example.com/open-house"
}
create_link_draft:応答の structuredContent
{
  "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:引数
{
  "type": "link",
  "id": "link_muyvbfgv248z8"
}
request_publish:応答の structuredContent
{
  "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 で結果を読み取ります。

待機中の 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"
}
承認後の get_request_status
{
  "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"
}

承認の詳細と、リクエストが却下された場合、期限切れになった場合、失敗した場合の動作については、権限と承認を参照してください。