الأدوات
كل أداة يقدمها الخادم، والإذن الذي تحتاجه كلٌّ منها، ومعاملاتها، وكيف تتشكل الردود.
في هذه الصفحة
القائمة أدناه مولّدة من الخادم نفسه: الأسماء والأذونات والمعاملات هي ما يتلقاه العميل من 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إنشاء روابط ورموز 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، لا يغيّر شيئًا. - الأوقات بصيغة ISO 8601 مع فارق التوقيت، مثل
2026-10-09T10:00:00+02:00. والردود بالتوقيت العالمي UTC. وتعطيwhoamiالمنطقة الزمنية للعضو. - المعرّفات تأتي من أدوات EcoMark الأخرى. ولا يختلق العميل أي معرّف أبدًا.
- القوائم مقسّمة إلى صفحات:
limitوcursorفي الطلب، وtotalوnextCursorفي الرد. وتكونnextCursorبقيمةnullفي الصفحة الأخيرة. - الروابط العائدة: كثير من الردود يحمل
openInEcoMark، أي عنوان السجل في المنتج. - النص داخل السجلات (الأسماء والملاحظات والرسائل) كتبه أشخاص آخرون. ويطلب الخادم من العملاء أن يعاملوه كبيانات يُبلَّغ عنها، لا كتعليمات تُتّبع أبدًا.
كيف يتشكل الرد#
تجيب كل أداة بالقيمة نفسها مرتين: كنص JSON في content[0].text، للعملاء الذين يقرؤون النص، وكـ 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"
}المزيد عن الموافقات، وما يحدث حين يُرفض الطلب أو تنتهي صلاحيته أو يفشل، في الأذونات والموافقات.