Skip to main content
Glama
Qobrix CRM MCP Server

Qobrix CRM MCP Server

by gca-ltd

目次


機能概要

このサーバーに接続されたAIアシスタントは、自然言語だけで、物件の閲覧、リードの評価、内見の追跡、オファーと契約の確認、フォローアップ活動の監査、CRMフィールドスキーマの発見を行うことができます。各ツールの説明は、LLMに対して、それがどの標準的な不動産ワークフローに属するか、どのRESOリソースにマッピングされるか、次にどのツールを連鎖させるかを教えます。

対象読者

  • 不動産仲介会社と開発者 — Qobrixを利用しており、Claude.ai、Dust.tt、ChatGPT、Cursorに、ライブCRMデータに基づいた質問への回答をさせたい方(コピー&ペーストしたエクスポートではなく)。

  • エンジニア — 内部ツールにMCPを組み込む方:stdioトランスポート、型付きZod入力、書き込み面なし — プロンプトやエージェントで安全に実験できます。

  • データ&オペレーションチーム — ダッシュボードを運用する方:カスタムスクリプトなしでYoYスタイルのメトリクスに**qobrix_count** / **qobrix_top_values**を使用し、レスポンスキャッシュで繰り返しクエリのAPI負荷を削減します。

  • エンタープライズIT — エージェントごとのアイデンティティに対応:このパッケージからモードA/Bを実行し、すべてのユーザーが自分自身として認証する必要がある場合は、モードCをSharpSirのEnterprise OAuth(SSO)製品と組み合わせてください — Enterprise OAuthを参照。

標準的な不動産ワークフロー

このサーバーは、RESOに準拠した6つのビジネスプロセスを中心に構成されています。LLMはこれらを組み込みの指示として受け取るため、事前のトレーニングなしでCRMを操作できます。

#

ワークフロー

RESOマッピング

主要ツール

1

リスティングライフサイクル

Property.StandardStatus

search_properties, get_property, list_media, get_property_coordinates

2

リード・コンタクトライフサイクル

Contacts.ContactTypeファネル

search_opportunities, get_contact, search_tasks

3

セールスパイプライン

8段階のバイヤージャーニー

get_leads_by_property, get_lead_properties, list_viewings, list_offers, list_contracts

4

内見 / ビューイング

ShowingAppointment

list_viewings, get_viewing, list_meetings

5

取引 / オファー

TransactionManagement

list_offers, get_offer, list_contracts, get_contract

6

アクティビティ / フォローアップ

エンゲージメント追跡

list_calls, list_meetings, list_email_messages, search_tasks

ステータスマッピング

Qobrix物件ステータス

RESO StandardStatus

available

Active

reserved

Pending / Under Contract

sold

Closed

withdrawn

Withdrawn / Canceled

Qobrixオポチュニティステータス

RESOリードファネル

new

MQL / Raw Lead

open

SQL / Active

won

Closed Won

closed_lost

Lost


ツール一覧

64ツール — CRMエンティティ、スキーマ探索、分析(qobrix_count、qobrix_top_values、qobrix_top_records、qobrix_aggregate)、柔軟なdealsショートカット(qobrix_deals)、レポート(qobrix_timeseries、qobrix_funnel、qobrix_rep_scorecard、qobrix_stale_leads、qobrix_win_loss、qobrix_days_on_market)、顧客インテリジェンス(qobrix_cohort)、監査 / 変更履歴(qobrix_get_changes、qobrix_search_changes、qobrix_field_change_history、qobrix_top_field_changers)、キャッシュヘルパー(qobrix_cache_stats、qobrix_cache_clear)、セッション&アイデンティティ(qobrix_sign_in、qobrix_sign_out、qobrix_whoami):

Entity Group

Tools

Capabilities

Properties

5

List, Get, Search, Coordinates (map), Properties-by-Lead

Contacts

3

List, Get, Search

Agents

3

List, Get, Search

Opportunities / Leads

5

List, Get, Search, Leads-by-Property, Lead-Properties

Property Viewings

3

List, Get, Search

Tasks

3

List, Get, Search

Media

2

List(エンティティフィルター付き)、Get(サイズバリアント付き)

Projects

4

List, Get, Search, Coordinates

Offers

3

List, Get, Search

Contracts

3

List, Get, Search

Calls

2

List, Get

Meetings

2

List, Get

Email Messages

2

List, Get

Schema / Meta

3

Get Schema(フィールド検出)、Get Field Options(列挙値)、Search DSL Help(完全な文法 + チートシート)

Analytics

4

Counts、top-N フィールド値、数値/日付による全スキャンの top-N レコード、および sum/avg/min/max/count 集計(単一または多次元のグループ化に対応)。1ページだけの場合は list/search の sort を優先し、全セットのスキャンや null 許容フィールドには top_records/aggregate を使用します

Deals

1

Contracts テーブルに対する柔軟なドメインショートカット(売買、賃貸、リスティング、パイプライン)。kind / contract_types[] / contract_statuses[] / date_field / min_price / party filters / summary block に対応

Reporting

6

YoY 付き時系列(qobrix_timeseries)、標準的なセールスファネル + コンバージョン率(qobrix_funnel)、担当者別スコアカード / エージェントリーダーボード(qobrix_rep_scorecard)、サイレントリード検出(qobrix_stale_leads)、勝率分析(qobrix_win_loss)、市場滞在日数(qobrix_days_on_market)

Customers

1

リピート購入者 / 売り手 / リードのコホート(qobrix_cohort)— 複数の成約済みディールや商談に登場する連絡先を検出します

Audit

4

レコード単位の変更ログ(qobrix_get_changes)、リソース横断の変更検索(qobrix_search_changes)、フィールドレベルの履歴(qobrix_field_change_history)、フィールド変更が多い上位ユーザー(qobrix_top_field_changers)

Cache

2

統計情報と、より新しい読み取りのためのプレフィックスまたは全体の無効化

Session & identity

3

インタラクティブなサインイン(qobrix_sign_in)、完全失効のサインアウト(qobrix_sign_out)、現在のユーザープロフィール(qobrix_whoami)— Mode C。Mode A/B では妥当な no-op

すべてのツール説明には、標準的なワークフロー上の役割、RESO 相当、検証済みの include[] オプション、FK 解決のガイダンス、検索式の例が含まれます。

アナリティクスとディールの使用例

サーバーサイドの sort(OpenAPI の sort[])はほとんどのフィールドで機能します。例: プロパティでの sort: "-list_selling_price_amount"。データセット全体のスキャンが必要な場合、またはサーバーソートで null 許容フィールド(例: opportunities.budget)が行を返さない場合は、qobrix_top_records / qobrix_aggregate を使用してください。

「成約済みディール」はプロパティのフラグとしては存在せず、Contracts テーブルの行として格納されています。アナリティクス/ディールツールを使えば、クライアントサイドのスクリプトは不要です:

// 1) Top 5 closed 2026 sales, sorted by final_selling_price_amount,
//    with property + agent + lawyers resolved to readable names.
{
  "tool": "qobrix_top_records",
  "args": {
    "resource": "contracts",
    "sort_by": "final_selling_price_amount",
    "search": "contract_type == \"cos\" and contract_status == \"agreed\" and date_of_contract >= \"2026-01-01\" and date_of_contract < \"2027-01-01\"",
    "top": 5
  }
}

// 2) 2026 sales volume, plus an agent leaderboard in one extra call.
{
  "tool": "qobrix_aggregate",
  "args": {
    "resource": "contracts",
    "field": "final_selling_price_amount",
    "op": "sum",
    "search": "contract_type == \"cos\" and contract_status == \"agreed\" and date_of_contract >= \"2026-01-01\" and date_of_contract < \"2027-01-01\"",
    "group_by": "commission_to_2",
    "top": 10
  }
}

// 3) Flexible "deals" shortcut — same answer as (1) with one default-laden call,
//    plus a full-set summary block (by_status, by_type, totals, median).
{ "tool": "qobrix_deals", "args": { "year": 2026, "top": 5 } }

// 4) Best 2026 rental contracts by final rental price.
{ "tool": "qobrix_deals", "args": { "kind": "rental", "year": 2026, "top": 5 } }

// 5) Under-contract reservations + closed sales together (pipeline + actuals).
{
  "tool": "qobrix_deals",
  "args": { "contract_statuses": ["reserved", "agreed"], "year": 2026 }
}

// 6) "My deals this year": uses the CURRENT_USER special var.
{
  "tool": "qobrix_deals",
  "args": { "assigned_to": "CURRENT_USER", "year": 2026 }
}

// 7) Monthly 2026 closed-sale volume with prior-year YoY %.
{
  "tool": "qobrix_timeseries",
  "args": {
    "resource": "contracts",
    "bucket": "month",
    "metric": "sum",
    "field": "final_selling_price_amount",
    "year": 2026,
    "search": "contract_type == \"cos\" and contract_status == \"agreed\"",
    "compare_to_prior": true
  }
}

// 8) Full 2026 sales funnel (Leads → Qualified → Viewing → Offer → Reserved → Closed).
{ "tool": "qobrix_funnel", "args": { "year": 2026 } }

// 9) 2026 agent leaderboard by volume (omit `user` for leaderboard mode).
{ "tool": "qobrix_rep_scorecard", "args": { "year": 2026, "sort_by": "volume", "top": 10 } }

// 10) Silent leads — open opportunities with no activity in 30 days.
{ "tool": "qobrix_stale_leads", "args": { "since_days": 30 } }

// 11) Multi-dim pivot: 2026 closed-sale volume by city × property_type.
{
  "tool": "qobrix_aggregate",
  "args": {
    "resource": "contracts",
    "field": "final_selling_price_amount",
    "op": "sum",
    "search": "contract_type == \"cos\" and contract_status == \"agreed\" and date_of_contract >= \"2026-01-01\" and date_of_contract < \"2027-01-01\"",
    "group_by": ["property_id", "contract_type"],
    "top": 10
  }
}

// 12) Repeat buyers — contacts behind 2+ closed sales in 2026.
{ "tool": "qobrix_cohort", "args": { "kind": "buyers", "year": 2026, "min_count": 2 } }

// 13) Win-rate by lead source in 2026, with top loss reasons resolved.
{
  "tool": "qobrix_win_loss",
  "args": { "year": 2026, "group_by": "source", "include_top_losses": true }
}

// 14) 2026 days-on-market by property type, with longest/shortest outliers.
{
  "tool": "qobrix_days_on_market",
  "args": { "kind": "sold", "year": 2026, "group_by": "property_type", "include_outliers": true }
}

クイックスタート

git clone https://github.com/gca-ltd/qobrix-crm-mcp.git
cd qobrix-crm-mcp
npm install
npm run build

設定

プロジェクトルートに .env ファイルを作成します:

QOBRIX_API_URL=https://yourcrm.qobrix.com
QOBRIX_API_USER=your-api-user-uuid
QOBRIX_API_KEY=your-api-key
QOBRIX_LOCALE=en-US          # optional

変数

必須

説明

QOBRIX_API_URL

はい(Mode A)

Qobrix インスタンスのベース URL

QOBRIX_API_USER

はい(Mode A)

X-Api-User ヘッダーの値(UUID)

QOBRIX_API_KEY

はい(Mode A)

X-Api-Key ヘッダーの値

QOBRIX_LOCALE

いいえ

X-Locale ヘッダー(例: en-US、el-GR)

認証モード

このパッケージをクローンし、Mode A または B を実行して、実際の Qobrix データを Claude、Cursor、または任意の MCP クライアントで利用できるようにします — Apache 2.0。

モード

このパッケージに含まれるか

使用時

認証情報の受け渡し方法

A(デフォルト)

はい

QOBRIX_MCP_TRANSPORT=stdio(または未設定)

プロセス環境からの共有 QOBRIX_API_*

B

はい

TRANSPORT=http + QOBRIX_MCP_AUTH=headers

リクエストごとの X-Api-User / X-Api-Key(信頼できる呼び出し元向け。localhost にバインド)

C

連携 AS が必要

TRANSPORT=http + QOBRIX_MCP_AUTH=oauth

セルフサービス OAuth: MCP が /connect URL を返します。ユーザーは SharpSir の Enterprise OAuth 認可サーバーでサインインし、このサーバーがセッションを保持します

D(オプトイン)

連携 AS が必要

TRANSPORT=http + QOBRIX_MCP_AUTH=oauth-claude

リモート MCP OAuth(RFC 9728 PRM + /mcp 上の Bearer)。Claude.ai / Desktop カスタムコネクタ および Dust.tt Spaces ツール向け — 同じリソース URL、ユーザーごとのログイン

Mode A と B はこのパッケージだけで完全にサポートされます。Mode C と D には SharpSir の別製品である Enterprise OAuth / SSO 製品が必要です — このリポジトリには含まれません。Mode D は Mode A/B/C を変更しません — Claude.ai や Dust.tt などのリモートホストに OAuth を自身で駆動させたい場合に選択してください。

エンタープライズ OAuth

エージェントを共有 API キーではなく、サインイン済みの Qobrix ユーザーとして動作させる必要がありますか? Mode C はそのために設計されています。これには SharpSir の Enterprise OAuth ソリューション が必要です: ホスト型認可サーバーバンドル(ログイン + 2FA + 同意、ユーザーごとの API キー発行、暗号化された認証情報ボールト、オーディエンスバインドトークン)で、この MCP サーバーと排他的に連携します。

Mode C の仕組み(MCP 自己認証 — ノースバウンドのクライアントは変更なし):

  1. セッションがない状態でツールが実行されると、MCP は認証 URL のいずれかを返します:

    • URL-mode elicitation (JSON-RPC -32042) — クライアントが elicitation.url をサポートしている場合 (Claude、Cursor など)

    • elicitation をサポートしていないクライアント (例: ragchat / LangChain) 向けのツール結果内の Markdown リンク [Sign In to Qobrix](/connect?e=…) — LLM はそのリンクを原文のまま伝える必要があります (一意 / 単回使用。古いリンクは再利用しないこと)

  2. ユーザーはこのサーバー上の /connect を開きます (フィッシング防止の間接化) → 署名付き Cookie がセットされ、Enterprise OAuth ログインページへリダイレクトされます

  3. ログイン + 2FA + 同意の後、AS は /oauth/callback へリダイレクトします。この MCP がコード交換 (PKCE) を行い、Qobrix の資格情報を introspection して、暗号化されたセッションボルトに保存します

  4. 次のツール呼び出しは認証済みで実行されます。Qobrix が 401 / 403 を返した場合、ボルトはクリアされ、新しい /connect URL が返ります

  5. エージェントは qobrix_sign_in、qobrix_whoami、qobrix_sign_out を呼び出すこともできます (AS の /disconnect による完全な取り消し + Qobrix API キーの削除)

  • 公開ダウンロードとしては利用できず、GitHub からクローンできるものではありません。

  • 当チームが ご要望に応じてエンタープライズソリューションバンドルとして納品・設定します。

  • サードパーティの OAuth サーバーはありません。Mode C はこの Enterprise OAuth ソリューションのみにハードワイヤードされています。

  • セキュリティ: Mode C はユーザーごとの暗号化セッションボルト (チャット ID ヘッダーをキーとする) を使用し、/mcp をクライアント Bearer なしのままにします。QOBRIX_MCP_HOST=127.0.0.1 にバインドし、QOBRIX_MCP_IDENTITY_SECRET (信頼された MCP ホスト (例: ragchat) とのみ共有) を設定して、ID ヘッダーが偽造されないようにします。ボルトの暗号化は QOBRIX_MCP_STATE_SECRET (MCP 専用) に維持します。ブラウザ向けにリバースプロキシする場合は、/connect と /oauth/callback のみを公開し、/mcp と /health は公開しないでください。ローカルエージェント (ragchat) は http://127.0.0.1:<port>/mcp を呼び出します。ALLOWED_HOSTS にパブリックホスト名のみを指定している場合、サーバーがループバックにバインドしていれば、ループバック Host 値 (127.0.0.1 / localhost / ::1) が自動的に追加されます。接続 Cookie の Path は PUBLIC_URL のパス名に従います。Express の trust proxy は Cloudflare→Apache の後ろで 2 です。/connect リンクの配信はそのユーザー個人に対してのみ行い、共有/グループスレッドには決して送信しないでください。

アップグレードのご用意はありますか? SharpSir Group または dev@sharpsir.group にご連絡いただき、Qobrix CRM MCP Enterprise OAuth バンドルをお問い合わせください。

納品後、受け取った issuer をこのサーバーに設定します。

export QOBRIX_MCP_TRANSPORT=http
export QOBRIX_MCP_AUTH=oauth
export QOBRIX_MCP_HOST=127.0.0.1
export QOBRIX_MCP_PORT=3502
export QOBRIX_MCP_PUBLIC_URL=http://127.0.0.1:3502
export QOBRIX_MCP_RESOURCE_URL=http://127.0.0.1:3502/mcp
export QOBRIX_OAUTH_ISSUER=<issuer-from-enterprise-bundle>
export QOBRIX_OAUTH_INTROSPECTION_SECRET=<shared-secret-from-bundle>
export QOBRIX_MCP_STATE_SECRET=<16+-char-secret>
export QOBRIX_MCP_IDENTITY_SECRET=<16+-char-secret-shared-with-ragchat>
export QOBRIX_MCP_DATA_DIR=./data/mcp-oauth
export QOBRIX_MCP_ALLOWED_HOSTS=qobrix-mcp.example.com   # loopback Hosts auto-added when HOST is 127.0.0.1
npm start

Mode C のエンドポイント (Enterprise OAuth ソリューションを連携させた後):

  • GET /connect?e=… — 認可を開始 (Cookie を設定し、AS へ 302)

  • GET /oauth/callback — PKCE コード交換 + ユーザーごとのセッションボルト書き込み

  • GET /health — connected と session_vaults の数を含む

  • 認証なしの /mcp は northbound クライアントにとって意図的なものです。必要に応じてツールが接続 URL を表示します。本番環境では /mcp を localhost に維持してください

Mode A → B → C のステップバイステップ、リバースプロキシのロックダウン、Host のメンドネス一覧の詳細は docs/USER_GUIDE.md を参照してください。

ragchat / Mode C の場合、リモート MCP URL (…/mcp) を通常の Streamable HTTP サーバーとして登録します (クライアント側の OAuth プロバイダーは不要)。MCP は /connect を介して認証を処理します。そのトポロジでは /mcp を localhost に維持してください。

Mode D — Claude.ai と Dust.tt のリモート MCP (共有リソース)

別の MCP プロセス (またはホスト) を QOBRIX_MCP_AUTH=oauth-claude で使用します。リモートホストは、同じ HTTPS /mcp URL に対して OAuth を自身で行います。

ホスト

接続方法

認証

Claude.ai / Claude Desktop

設定 → Connectors → Add custom connector

自動 DCR + PKCE (リダイレクト https://claude.ai/api/mcp/auth_callback)

Dust.tt

Spaces → Tools → Add MCP Server

Automatic を推奨。Static OAuth フォールバック — INSTALL — Connect Dust を参照

  1. ユーザーは https://intranet.sharpsir.group/qobrix-crm/mcp を Claude または Dust に貼り付けます

  2. Host が /mcp にアクセス → 401 と WWW-Authenticate: Bearer resource_metadata=… を受け取ります

  3. Host が /.well-known/oauth-protected-resource を取得 → QOBRIX_OAUTH_ISSUER を検出します

  4. Host は Enterprise OAuth AS に対して OAuth (DCR または Static) + PKCE を完了します

  5. 以降の /mcp 呼び出しは Authorization: Bearer <access_token> を送信します。このサーバーは introspection し、その Qobrix ユーザーとしてツールを実行します

Claude と Dust は1 つの Mode D スタックを共有します (同じ MCP リソース + 同じ Authorization Server)。各ホストは自身の OAuth クライアントを登録し、各メンバーはそれぞれ自分自身として Qobrix にログインします。

export QOBRIX_MCP_TRANSPORT=http
export QOBRIX_MCP_AUTH=oauth-claude
export QOBRIX_MCP_HOST=127.0.0.1
export QOBRIX_MCP_PORT=3502
export QOBRIX_MCP_ALLOWED_HOSTS=intranet.sharpsir.group
export QOBRIX_MCP_PUBLIC_URL=https://intranet.sharpsir.group/qobrix-crm
export QOBRIX_MCP_RESOURCE_URL=https://intranet.sharpsir.group/qobrix-crm/mcp
export QOBRIX_OAUTH_ISSUER=https://intranet.sharpsir.group/qobrix-crm/mcp-oauth
export QOBRIX_OAUTH_INTROSPECTION_SECRET=<shared-secret-from-bundle>
npm start

AS 側でリダイレクト許可リストを使用する場合は、Claude のコールバックを維持し、Dust の正確な finalize URL を追加します (Claude のエントリを置き換えないでください)

export QOBRIX_OAUTH_REDIRECT_ALLOWLIST=https://claude.ai/api/mcp/auth_callback,http://127.0.0.1,http://localhost,cursor://,https://eu.dust.tt/oauth/mcp/finalize,https://eu.dust.tt/oauth/mcp_static/finalize,https://dust.tt/oauth/mcp/finalize,https://dust.tt/oauth/mcp_static/finalize,https://app.dust.tt/oauth/mcp/finalize,https://app.dust.tt/oauth/mcp_static/finalize

HTTPS /mcp + PRM (および AS) をパブリックインターネットに公開します。WAF を使用している場合は、Anthropic のエグレス 160.104.0.0/21 を許可リストに追加し、さらに Dust のエグレスも許可します。Claude の許可リストは削除しないでください。Mode C のループバック / 「/mcp を公開しない」という手順は ragchat デプロイ向けに有効です。Mode C プロセスでは、そのトポロジを反転させないでください。

完全な手順は、INSTALL — Connect Claude · 参照。Dust の MCP サーバー追加。

キャッシング

すべての MCP ツールは読み取り専用の GET なので、レスポンスキャッシュが CRM 状態を壊すことはありません。サーバーは1 つのチョークポイント (QobrixClient.request()) を cache-aside (read-through) でラップするため、すべての list/get/search/schema 呼び出し — 関連度 max_scan の各ページを含む — がキャッシュされます。Boost スコアリングは取得後に行われるため、キャッシュキーは変更されません。異なる boost[] で再ランキングしても、同じ候補ページが再利用されます。

設計 — cache-aside と single-flight 合流:

  • Tier 1 — インメモリ LRU (常時有効、依存性ゼロ): プロセスごと、TTL 付き、サイズ上限付き。

  • Tier 2 — Redis (オプション、動的 import() による遅延ロード): 使用するには QOBRIX_REDIS_URL を設定します。Redis エラー発生時、サーバーはメモリのみにフォールバックします。

  • Single-flight: 同じコールドキーに並列ツール呼び出しが衝突する場合 (よく出る qobrix_top_values で)、プロセス内の全呼び出し元が 1 つのアップストリームリクエストを共有します。

  • エラーは決してキャッシュされません — 一時的な 5xx が固着することはありません。

  • TTL のみ、v1 では stale-while-revalidate はありません。

環境変数:

変数

デフォルト

説明

QOBRIX_CACHE_ENABLED

true

キャッシュを完全にバイパスするには false に設定します

QOBRIX_CACHE_TTL

300

秒単位の TTL。この窓内で CRM の編集が反映されます

QOBRIX_CACHE_MAX_ENTRIES

5000

インメモリ層の LRU 上限

QOBRIX_REDIS_URL

(空)

redis:// / rediss:// URL。空の場合はメモリのみ

QOBRIX_REDIS_KEY_PREFIX

qobrix:

Redis を共有するときの名前空間

キャッシュツール (LLM に公開):

Tool

説明

qobrix_cache_stats

ヒット/ミス/サイズ/使用中/Redisの状態を表示し、キャッシュが効果を発揮していることを確認

qobrix_clear

すべてのキーまたは prefix を指定して無効化します (例: v1:request:opportunities)。TTL 前の即時更新に利用できます

推奨 Redis サーバー設定 (専用キャッシュ専用 Redis 向け、Redis の資料に従う):

maxmemory 256mb
maxmemory-policy allkeys-lru
maxmemory-samples 10

TTL のヒント — Redis のドキュメントでは、頻繁に変更されるデータには短いTTL (60〜120秒)、安定したデータには長い TTL (数時間) を推奨しています。リードパイプライン (分単位で変化) と物件情報 (時間単位で変化) とを混在するCRM の場合、300 秒が保守的な既定値です。即時更新が必要な場合は qobrix_clear_cache を使用しますとのような場合は、qobrix_cache_clear をお使いください。

トレードオフ / 既知の制限: single-flight 合流はプロセス内のみです。共有 Redis の背後で複数インスタンスを実行すると、ルードキーでスタンプコピーが発生する可能性が残ります。分散された SETNX ロックは将来課題ですが、シングルユーザーの MCP クライアントには不要です。

ベストプラクティスの対応:

ベストプラクティス

対応箇所

Cache-aside / read-through (Redis 何道、MCP キャッシュノウハウ)

QobrixClient.request() をラップ

形式正順化されたバージョン付きキャッシュキー

ソート済みパラメータ付き cacheKey("v1", ...)

保守的なTTL

既定 300億、を変数で上書き可能

エラーをキャッシュしない

ラップは成功時のみ保存

Single-flight短縮防止

情報を閉じた気密マップ

cache 専用 Redis の allkeys-lru

前述の自己ホスト向け情報

状態と手手無効化

qobrix_cache_stats, qobrix_cache_clear

公式Node.js Redis クライアント

オプション依存として redis (node-redis)

Cursor IDE のセットアップ

このサーバーは **stdio (ローカルな node プラセス) で動作します。Cursor は プロジェクトまたはユーザーの mcp.json からサーバーを検出します: 開いたフォルダー内の .cursor/mcp.json、または 全ワークスペース用の ~/.cnode/mcp.json。

1. 前提条件

  • Cursor が MCP を実行するマシン (ローカルまたはリモート SSH ホスト) 上の Node.js 20+。

  • このリポジトリをクローンし、インストールしてビルドする ( Quick Start を参照)。

  • MCP エントリを追加する前に、dist/index.js が存在する必要があります (npm run build)。

2. 認証情報

  1. テンプレートをコピー: cp .env.example .env

  2. .env を編集し、少なくとも QOBRIX_API_URL、QOBRIX_API_USER、QOBRIX_API_KEY を設定します (設定は Configuration を参照)。

  3. .env を git 管理外に保ちます。.gitignore に記載されています。

3. JSON を置く場所

場所

いつ使うか

<project>/.cursor/mcp.json

そのプロジェクトフォルダーを Cursor で開いた場合。チームメートはテンプレート (シックレットなし) をコミットできます。

~/.cursor/mcp.json

そのマシンのすべてのワークスペースで同じ MCP を使用する場合。

既存の "mcpServers" オブジェクトにエントリをマージします。すでに他のサーバーがある場合は、ファイル全体を置き換えないでください。

4. 推奨: node --env-file (Node 20+)

絶対パス を渡します。そうすれば、ワークスペースがこのリポジトリ自体であれ親フォルダーであめ差がある場合 SSH リモートパスが正しく解決される場合と同じように動作します 。

{
  "mcpServers": {
    "qobrix-crm-mcp": {
      "command": "node",
      "args": [
        "--env-file=/absolute/path/to/qobrix-crm-mcp/.env",
        "/absolute/path/to/qobrix-crm-mcp/dist/index.js"
      ],
      "description": "Read-only Qobrix CRM MCP"
    }
  }
}

このパターンの理由:

  • 認証情報は JSON ではなく .env に留まります。

  • Node はサーバー起動前にファイルをロードするため、ホストの envFile フィールドが stdio サーバーに対して無視されたり一貫して動作しない場合でも、process.env が設定されます。

5. replace済み例: env をインラインで

--env-file を使用できない場合 (properties 大域)ににお勧めけします。シークレットは mcp.json 内に存在します — ファイルのパーミッションを制限し、コミットしないでください。

{
  "mcpServers": {
    "qobrix-crm-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/qobrix-crm-mcp/dist/index.js"],
      "env": {
        "QOBRIX_API_URL": "https://yourcrm.qobrix.com",
        "QOBRIX_API_USER": "your-api-user-uuid",
        "QOBRIX_API_KEY": "your-api-key",
        "QOBRIX_LOCALE": "en-US"
      }
    }
  }
}

Cursor の設定補間(例: ${env:QOBRIX_API_KEY})も利用できます。これにより、リテラル値の代わりにOS環境から値を注入できます。

6. 任意: MCP JSONでのenvFile

Cursorはstdioサーバー向けのenvFileプロパティをサポートしています。セットアップによっては、これらの変数が子プロセスに確実に渡されない場合があります。ツールが「Missing required environment variables」で失敗する場合は、手順4のように**--env-file**に切り替えてください。

7. mcp.jsonまたは.envの編集後

  1. MCPを再読み込み — コマンドパレット→ MCP再起動、またはCursorウィンドウをリロードします。

  2. ログを確認 — 表示→ 出力→ ドロップダウンで**「MCP」/「MCPログ」**を選択し、パスやNodeのエラーを修正します。

  3. ツールの承認 — デフォルトではCursorは各ツール呼び出しのたびに確認を求めます。信頼できるツールについては、Cursorの設定で自動実行を許可できます。

その他のMCPホスト

Claude.ai / Claude Desktop(モードD) — https://intranet.sharpsir.group/qobrix-crm/mcp にあるリモートカスタムコネクタ。 モードD と INSTALL — Connect Claude を参照してください。

Dust.tt(モードD) — Spaces → Tools → Add MCP Server で、同じURLを指定します。自動認証と個人アカウントを推奨します。INSTALL — Connect Dust を参照してください。

Claude Desktop / Cursor(モードA stdio) — 同じstdio形式です。command + args をnodeに指定し、ホストのMCP設定ファイルで--env-fileまたはenvのいずれかを使用します。

CI / ヘッドレス — stdio MCPクライアントライブラリで node --env-file=.env dist/index.js を実行します。.envはコミットせず、シークレット経由で提供してください。


検索式構文

searchパラメータを受け付けるツールは、QobrixのSymfony Expression Language(OpenAPI SearchExpression)を使用します。完全な文法とプロパティ/プロジェクトフィールドのチートシート(オプションでライブスキーマのフィールド名付き)については、qobrix_search_dsl_help を呼び出してください。

機能

構文

例

等価

==、!=、<>

status == "available"

比較

<、>、<=、>=

list_selling_price_amount <= 500000

含有

contains、starts with、ends with

city contains "Limas"

集合メンバーシップ

in [...]、not in [...]

property_type in ["villa","house"]

範囲

in min..max

bedrooms in 2..4

論理

and、or、not、括弧

status == "available" and sale_rent == "for_sale"

日付ヘルパー

DAYS_AGO(n)、MONTHS_AGO(n)、DAYS_FROM_NOW(n)、…

created >= DAYS_AGO(30)

時刻ショートカット

NOW、TODAY、THIS_WEEK、LAST_MONTH、THIS_YEAR、…

created >= LAST_MONTH

現在のユーザー

CURRENT_USER

assigned_to == CURRENT_USER

地理/その他

DISTANCE_FROM、IN_POLYGON、TRANSLATED、MIN/MAX

DISTANCE_FROM(coordinates, "34.43,32.13") <= 5000

関連パス

Entity.field

SalespersonUsers.Contacts.country == "CY"

ヒント: 自由文の要求をクエリに変換する前に、qobrix_search_dsl_help({ resource: "Properties" }) を呼び出してください。列挙値には qobrix_get_field_options を、完全なフィールド一覧には qobrix_get_schema を使用します。

全リソースの関連検索(F1)

すべてのqobrix_search_*ツール(プロパティ、プロジェクト、連絡先、エージェント、オポチュニティ、内見、タスク、オファー、契約)は2層設計のため、自由文の要求を高精度かつ高再現率でマッピングします。

  1. search — 必須条件(サーバーサイドDSLフィルタ→精度の下限を保証)。

  2. boost[] — 候補プールに対してプロセス内でスコアリングされるソフトな重み付き任意条件(再現率+ランキング)。

  3. limit — 返すランク付けされた行数(デフォルト10、最大100)。より多くのオプションが必要な場合は増やします。コンテキスト過多を避けるため控えめにします。

  4. max_scan — ブースト時の候補プール(デフォルト100、ハードキャップ500)。大きくすると再現率が向上します。スキャンされた各ページはレスポンスキャッシュされます。

boostを使用すると、各行に_relevance(スコア)と_matched(ヒットした句)が含まれます。pagination.modeは"ranked"です。boostなしの場合は、キャッシュされた単一のリストページが返されます(mode: "fast")。

qobrix_search_properties({
  search: 'status == "available" and sale_rent == "for_sale"',
  boost: [
    { field: "sea_view", op: "==", value: true, weight: 3 },
    { field: "bedrooms", op: ">=", value: 3, weight: 2 },
    { field: "list_selling_price_amount", op: "in", value: "200000..600000", weight: 2 },
  ],
  limit: 15,
  max_scan: 200,
});

リード↔リスティングのマッチング(双方向)

  • 需要→供給: リードの条件を取得→search+boostを指定してqobrix_search_properties / qobrix_search_projects を実行。ネイティブ: qobrix_get_properties_by_lead / qobrix_get_lead_properties。

  • 供給→需要: リスティングに対してオープンリードのsearch + boostを指定してqobrix_search_opportunities を実行(プロジェクトでも機能)。プロパティのみのネイティブ: qobrix_get_leads_by_property。

// Who wants a Limassol 3-bed ~€400k listing?
qobrix_search_opportunities({
  search: 'status in ["new","open"] and buy_rent == "buy"',
  boost: [
    { field: "area_of_interest", op: "contains", value: "Limassol", weight: 3 },
    { field: "bedrooms_from", op: "<=", value: 3, weight: 2 },
    { field: "list_selling_price_to", op: ">=", value: 400000, weight: 2 },
  ],
  limit: 15,
  max_scan: 200,
});

ブースト演算子: == != < > <= >= in contains starts_with ends_with。範囲の場合は op: "in" と value: "min..max" を使用します。

検索(および他のすべてのリスト/取得)は、グローバルキャッシュTTL(QOBRIX_CACHE_TTL、デフォルト300秒)を共有します。CRM編集後は、qobrix_cache_clear({ prefix: "v1:request:properties" })(または opportunities、projects、…)で更新してください。


関連データの取得

外部キーを解決する3つの戦略:

  1. include[]パラメータ — 1回の呼び出しで関連をインライン展開

qobrix_get_property({ id: "...", include: ["Agents", "PropertyViewings"] })
  1. 個別の取得呼び出し — FKフィールドからUUIDを取得し、適切なツールを呼び出します

// property.agent → UUID
qobrix_get_agent({ id: "<agent-uuid>" })
  1. FKによる検索 — 検索式で関連レコードを検索

qobrix_search_properties({ search: 'agent == "<agent-uuid>"' })

ツールの説明で検証済みとマークされたinclude[]値のみが動作を保証されます。関連にinclude[]が使用できない場合は、FKによる検索を使用してください。


ペイロードのデフォルト

呼び出し元のLLMのコンテキストウィンドウに収まるようにツール出力を短く保つため、リスト/検索/取得ツールはデフォルトでコンパクトなペイロードになります:

パラメータ

デフォルト

デフォルト時の効果

expand

false

外部キーがネストオブジェクトに展開される代わりに、UUID文字列として返されます。対応する取得ツールまたは対象を絞ったinclude[]でオンデマンドに解決します。

media

false

インラインメディア(写真、間取り図、サムネイルURL)はリスト行に添付されません。メディアが実際に必要な場合のみ、qobrix_list_media({ related_model: 'Properties', related_id: '<uuid>' }) を使用してください。

呼び出し元が重いペイロードを実際に必要とする場合にのみ、呼び出しごとに上書きします:

// Cheap browse — recommended for most reporting / pipeline calls
qobrix_list_properties({ limit: 10 });

// Heavy detail — only when the LLM truly needs nested FKs + media URLs
qobrix_list_properties({ limit: 5, expand: true, media: true });

// Prefer surgical include[] over full expand=true:
qobrix_get_property({ id: "...", include: ["AgentAgents", "ProjectProjects"] });

この変更により、qobrix_list_properties({ limit: 10 }) は通常、約300KBから約5〜10KBに縮小します。


出力上限

すべてのツール結果は、レンダリングされたJSONのQOBRIX_MCP_MAX_RESULT_CHARS文字(デフォルト30000、およそ7.5Kトークン)に制限されます。動作:

  • ページネーションペイロード({ data: [...], pagination: {...} }): 収まるdata[]の最大プレフィックスに切り詰められ、_truncatedブロックにkept_rows、omitted_rows、original_chars、max_chars、および次回の呼び出しをスコープする方法をLLMに伝えるhintが添付されます。ネストされたexpand/mediaオブジェクトだけで上限を超える場合は、少なくとも1つの使用可能な行が返されるように、行はスカラーに圧縮されます(_truncated.compacted: true)。

  • 過大サイズ(デフォルト: 元のサイズが上限の8倍超、QOBRIX_MCP_REFINE_MULTIPLIERで上書き可能): status: "result_too_large" と_refine_required(アシスタントへの指示+推奨する絞り込み+小さなreturned_sample)を返し、LLMがユーザーにダンプではなく再定式化を依頼するようにします。

  • 非ページネーションペイロード(単一のget、カスタム分析シェイプ): JSONは上限でクリップされ、QOBRIX_MCP TRUNCATEDトレーラーが追加されます(過大サイズの場合は同じ絞り込みディレクティブ)。

boostをexpand=trueまたはmedia=trueと一緒に使用すると、max_scanは自動的に100に上限設定され、pagination.scan_capped_reasonは"expand/media"になる場合があります。

上限/絞り込みしきい値を上書き:

QOBRIX_MCP_MAX_RESULT_CHARS=60000
QOBRIX_MCP_REFINE_MULTIPLIER=8

上限または絞り込みガードに頻繁に達する場合は、fields[](列のホワイトリスト)、より厳しいsearch式、より小さいlimitを使用するか、expand=false / media=false のままにしてください。


テスト

このプロジェクトには、63のdescribeスイート(統合、複数ステップシナリオ、RESOワークフロー、キャッシュ、関連性、出力上限、クライアントソート、OAuthモードスモーク)にわたる226の自動テストが含まれています:

# Integration tests — individual tool mechanics
npm test

# Scenario tests — multi-step tool chains (19 real-world scenarios)
npm run test:scenarios

# Workflow tests — canonical RE business processes (8 RESO-aligned suites)
npm run test:workflows

# Cache tests — read-through, single-flight, LRU eviction, search-page keys (no API needed)
npm run test:cache

# Relevance tests — boost scoring, DSL help, search cache keys (no API needed)
npm run test:relevance

# Format tests — output cap + truncation behaviour (no API needed)
npm run test:format

# OAuth modes smoke — Mode B header rejection + Mode C /connect elicitation path
npm run test:oauth-modes

# Run everything
npm run test:all

スイート

テスト数

カバレッジ

統合

70

すべてのツール、ページネーションのエッジケース、include/fieldsメカニクス、分析・レポートツール

シナリオ

55

エージェントの朝のブリーフ、購入者検索、リードのトリアージ、FKチェーン、パイプラインレポート

ワークフロー

39

リスティングライフサイクル、リードファネル、営業パイプライン、内見、取引、メディア、アクティビティ、スキーマ

キャッシュ

22

読み取りスルーキャッシュ、シングルフライト合体、LRUエビクション、キー正規化、検索ページキー(ライブAPIなし)

関連性

23

ブースト評価/スコア/ランク(オポチュニティ/連絡先シェイプを含む)、fields[]+boostユニオン、DSLヘルプテキスト、検索キャッシュキーの安定性(ライブAPIなし)

形式

7

formatResult出力上限、ページネーション切り詰め、expand/media圧縮(kept_rows>=1)、result_too_large絞り込みガード、フォールバックトレーラー、環境変数の上書き(ライブAPIなし)

クライアントソート

7

normalizeSort + buildQobrixUrl がOpenAPI sort[]= を出力(Qobrixが無視するスカラーsort=ではない)

OAuthモード

4

モードBヘッダー、モードC /connect、モードD PRM/401/Bearer


アーキテクチャ

src/
├── index.ts          # MCP server entry point + RESO workflow instructions
├── http.ts           # Streamable HTTP transport (Modes B / C)
├── modes.ts          # Auth mode resolution (env / headers / oauth / oauth-claude)
├── client.ts         # QobrixClient — HTTP + read-through response cache
├── auth-context.ts   # AsyncLocalStorage per-request credentials
├── oauth-client.ts   # Mode C self-service OAuth client + session vault
├── oauth-rs.ts       # Companion AS metadata + introspection helpers
├── request-context.ts# ALS for McpServer (elicitation capability detection)
├── cache.ts          # LRU memory tier, optional Redis, single-flight coalescing
├── relevance.ts      # Boost scoring + cached candidate pager for search
├── search-dsl.ts     # Full SearchExpression DSL reference + field cheatsheets
├── types.ts          # TypeScript interfaces
├── schemas.ts        # Zod schemas with rich LLM-facing descriptions
└── tools/
    ├── index.ts      # Tool registration hub + formatResult / errorResult
    ├── properties.ts # Listing Lifecycle + relevance search
    ├── contacts.ts   # Lead-Contact Lifecycle tools
    ├── agents.ts     # RESO Member tools
    ├── opportunities.ts # Sales Pipeline tools
    ├── viewings.ts   # Showing Lifecycle tools
    ├── tasks.ts      # Follow-up & Pipeline Management tools
    ├── media.ts      # Media Lifecycle tools
    ├── projects.ts   # Project/Development + relevance search
    ├── offers.ts     # Transaction Lifecycle tools
    ├── contracts.ts  # Transaction close tools
    ├── activities.ts # Activity Tracking (calls, meetings, emails)
    ├── analytics.ts  # qobrix_count, qobrix_top_values, qobrix_top_records, qobrix_aggregate
    ├── deals.ts      # qobrix_deals (flexible Contracts shortcut)
    ├── reports.ts    # qobrix_timeseries (bucketed metric + YoY), qobrix_days_on_market
    ├── pipeline.ts   # qobrix_funnel, qobrix_stale_leads, qobrix_win_loss
    ├── productivity.ts # qobrix_rep_scorecard
    ├── customers.ts  # qobrix_cohort (repeat buyers/sellers/leads)
    ├── cache.ts      # qobrix_cache_stats, qobrix_cache_clear
    ├── audit.ts      # change log / field history / top changers
    └── meta.ts       # Schema discovery + qobrix_search_dsl_help
test-suite/
├── integration.test.mjs  # Live API smoke tests
├── scenarios.test.mjs    # Multi-step CRM scenarios
├── workflows.test.mjs    # RESO workflow coverage
├── cache.test.mjs        # Cache unit tests (incl. search-page keys)
├── relevance.test.mjs    # Boost scoring + DSL help unit tests
├── format.test.mjs       # Output-cap / truncation tests
└── oauth-modes.test.mjs  # Mode B/C auth smoke tests

LLMの学習方法

サーバーは3つのレベルでLLMに教えます:

  1. サーバー手順 — MCP initializeレスポンスの最上位のinstructionsフィールドは、完全なデータモデル、ツールレシピ付きの6つの標準ワークフロー、検索構文、FK解決戦略、既知の癖を提供します。

  2. ツールの説明 — 各ツールの説明には、標準ワークフローの役割、RESO相当、検証済みのinclude[]オプション、FKフィールドマッピング、レスポンスシェイプ、検索例が含まれます。関連性検索ツールは2層のsearch + boostレシピを文書化し、qobrix_search_dsl_helpはオンデマンドで完全なDSLを公開します。

  3. パラメータの説明 — Zodスキーマは、具体的な例、有効な列挙値、ツール間の参照を含むパラメータごとのヘルプを提供します。


テクノロジー

コンポーネント

テクノロジー

ランタイム

Node.js ≥ 20

言語

TypeScript 5.7

MCP SDK

@modelcontextprotocol/sdk 1.26

検証

Zod 3.24

オプションのキャッシュ

redis 4.x (node-redis)(QOBRIX_REDIS_URL が設定されている場合)

トランスポート

stdio(デフォルト)・ Streamable HTTP(モード B / C)

API 認証

モード A/B: X-Api-User + X-Api-Key ・ モード C: セルフサービス Enterprise OAuth(/connect URL)

テスト

Node.js 組み込みテストランナー(node:test)

ライセンス

Apache License 2.0 — Copyright 2025–2026 SharpSir Group

モード A と B はこのオープンソースパッケージに含まれています。モード C は SharpSir の Enterprise OAuth 認可サーバー(SSO / ユーザーごとの ID)と連携します — これはリクエストに応じて提供される別の商用製品です — sharpsir.group ・ dev@sharpsir.group。


Available Tools

64 tools
qobrix_aggregateA

Sum / avg / min / max / count of a numeric field across all matching records — optionally grouped by another field (top-N buckets). Paginates server-side (cap 20,000 rows) and computes in-process, which is how to get totals on Qobrix fields the API won't sort. Example uses: Total 2026 closed-sale volume: resource='contracts', field='final_selling_price_amount', op='sum', search='contract_type == "cos" and contract_status == "agreed" and date_of_contract >= "2026-01-01" and date_of_contract < "2027-01-01"'. Agent leaderboard by volume: same search, group_by='commission_to_2', top=5. Average list price by property type: resource='properties', field='list_selling_price_amount', op='avg', group_by='property_type', search='status == "available"'.

Inputs: op (required), field (required), resource (required), top, +3 more.

qobrix_cache_clearA

Invalidate cached Qobrix responses. Use this when CRM data was edited in Qobrix and you need fresh reads before the TTL (default 300s) expires. Without 'prefix': clears the whole cache (memory + Redis). With 'prefix': clears only matching keys, e.g. 'v1:request:opportunities' to refresh lead lists, or 'v1:request:properties' to refresh listings. Returns the number of cleared entries in each tier.

Inputs: prefix.

qobrix_cache_statsA

Inspect the response cache: hits/misses, in-memory size, in-flight coalesced requests, TTL (seconds), and Redis tier status. Use to verify the cache is paying off (high hits, low misses on repeated workflows) or to diagnose why a query feels slow (cold cache, Redis degraded). Stats are process-local; restart resets them.

Inputs: no named parameters.

qobrix_cohortA

Find contacts that appear on multiple deals or opportunities — the 'repeat customer' report every CRM analyst gets asked for. Three modes: 'buyers' (default) walks closed contracts → opportunity_id → opportunities.contact_name to identify the buyer behind each closed sale. 'sellers' walks contracts → property_id → properties.seller. 'leads' groups all opportunities by contact_name regardless of close. Returns each repeat contact with deal_count, total_volume, total_commission, first_deal, last_deal, and a deals[] breakdown. Example uses: 2026 repeat buyers: { kind: 'buyers', year: 2026, min_count: 2 }. All-time loyal customers: { kind: 'buyers', min_count: 3 }. Recurring sellers this year: { kind: 'sellers', year: 2026 }. Frequent enquirers (any close): { kind: 'leads', since_days: 365 }.

Inputs: to, top, from, kind, +5 more.

qobrix_countA

Count records matching a search expression — returns just the total count, no data payload. Faster and lighter than fetching records when you only need a number. Example uses: Total active sale listings: resource='properties', search='status == "available" and sale_rent == "for_sale"'. Q1 closed-won opportunities: resource='opportunities', search='status == "closed_won" and last_status_change >= "2026-01-01" and last_status_change < "2026-04-01"'. Contacts created this month: resource='contacts', search='created >= THIS_MONTH'.

Inputs: resource (required), search.

qobrix_days_on_marketA

Days-on-market analytics. Joins Contracts to Properties on property_id and computes the (close_date - listing_date) duration in days, then aggregates count / mean / median / p75 / p90 / min / max. Defaults: kind='sold' (cos + agreed), listing_date_field='listing_date' with per-row fallback to website_listing_date then created. Use group_by to break down by property_type, city, agent, or commission_to_2 (broker). Set include_outliers=true for the 5 longest and 5 shortest deals. Example uses: Overall DOM for 2026 sales: { kind: 'sold', year: 2026 }. DOM by property type: { kind: 'sold', year: 2026, group_by: 'property_type' }. DOM by city (with outliers): { year: 2026, group_by: 'city', include_outliers: true }. Reservation cycle: { kind: 'reserved', year: 2026 }.

Inputs: to, top, from, kind, +6 more.

qobrix_dealsA

Flexible 'deals' tool over the Contracts table — covers sales, rentals, listing agreements, and pipeline reservations in a single call. Defaults: kind='sale', contract_statuses=['agreed'] (so a no-arg call still means 'closed sale contracts'). Every default is overridable via kind / contract_types / contract_statuses / include_reserved / date_field / min_price / max_price / party filters / raw search. Sorts in-process across the matching set (for a single page of highest prices you can also use list/search with sort='-final_selling_price_amount') and resolves property_id, agent, commission_to, lawyers, bank, etc. to readable names. Example uses: Best 2026 closed sales: { year: 2026, top: 5 }. Best 2026 rentals: { kind: 'rental', year: 2026, top: 5 }. Under-contract pipeline value: { contract_statuses: ['reserved'], year: 2026 }. My deals: { assigned_to: 'CURRENT_USER', year: 2026 }. All revenue deals >€1M last 90 days: { kind: 'any_revenue', since_days: 90, min_price: 1000000 }. Agent leaderboard (by commission): { year: 2026, by: 'commission', top: 10 }.

Inputs: by, to, top, desc, +15 more.

qobrix_field_change_historyA

Build a chronological timeline of edits to one field on one CRM record. Paginates GET /{resource}/{id}/changes and filters rows where the field appears in original or changed. Returns [{timestamp, user_id, user_name?, type, before, after}] sorted oldest-first. Use for: 'who changed source on this opportunity and when?'

Inputs: id (required), field (required), resource (required), max_pages, +1 more.

qobrix_funnelA

Canonical sales funnel in one call. Six stages with conversion %: Leads (opportunities created in window) → Qualified (status in [open,won]) → Viewing (property-viewings created in window) → Offer (offers created in window) → Reserved (contracts with contract_status=reserved) → Closed (contracts cos + agreed). Each stage is scoped by the same date window and (optional) assigned_to / agent. Use stage_overrides to substitute a tenant-specific definition for any stage. Example uses: 2026 funnel: { year: 2026 }. My funnel last 90 days: { assigned_to: 'CURRENT_USER', since_days: 90 }. Agent Vera's funnel: { agent: '', year: 2026 }.

Inputs: to, from, year, agent, +3 more.

qobrix_get_agentA

Get a single agent by UUID — resolve a RESO Member/ListAgent from a listing or lead. Returns { data: { id, ref, ... } }. Verified include: PrimaryContactContacts, User, Brands, AgencyAgents (parent brokerage). Agent 360° pattern: 1. Active listings: qobrix_search_properties with agent == '' and status == "available" 2. Active leads: qobrix_search_opportunities with agent == '' and status == "open" 3. Pipeline deals: qobrix_search_offers / qobrix_search_contracts linked to agent's opportunities 4. Activity: search Tasks, Calls, Meetings by the agent FK

Inputs: id (required), include.

qobrix_get_callA

Get a single call record by UUID — call detail in the Activity Tracking workflow. Returns { data: { id, ... } }. Include: AssignedToUsers, ContactContacts, RelatedOpportunityOpportunities, RelatedAgentAgents, CreatedByUsers.

Inputs: id (required), include.

qobrix_get_changesA

Retrieve audit / change-log entries for a single CRM record (Qobrix LogAudit). Calls GET /api/v2/{resource}/{id}/changes. Each row has original (before), changed (after), user_id (who), timestamp, type (create/update/delete). IMPORTANT: LogAudit.source is the resource name (e.g. 'Opportunities'), NOT the lead marketing source field. Field-level before/after for e.g. lead source are keys inside original and changed objects. For a filtered timeline of one field use qobrix_field_change_history.

Inputs: id (required), resource (required), page, sort, +3 more.

qobrix_get_contactA

Get a single contact by UUID — the person/company detail view in the Lead-Contact Lifecycle. Returns { data: { id, first_name, last_name, email, phone, ... } }. Verified include: AssignedToUsers (RESO OwnerMember), User, Language, Organizations. To build the full contact journey (canonical 360° view): 1. Leads: qobrix_search_opportunities with contact_name == '' 2. Tasks: qobrix_search_tasks with contact == '' 3. Calls: qobrix_search_calls (search by contact FK) 4. Meetings: qobrix_search_meetings (search by contact FK) 5. Seller listings: qobrix_search_properties with seller == '' This contact 360° pattern is the core of Lead-Contact Lifecycle and Follow-up workflows.

Inputs: id (required), include.

qobrix_get_contractA

Get a single contract by UUID — the deal close detail view in the Transaction Lifecycle. Returns { data: { id, ... } }. Verified include: Contacts (buyer/seller), PropertyIdProperties (the listing), OpportunityIdOpportunities (the lead), PaymentInstallments (payment schedule), ContractParties (all signatories), CreatedByUsers. Use include=['PaymentInstallments'] to audit the payment timeline.

Inputs: id (required), include.

qobrix_get_email_messageA

Get a single email message by UUID — email detail in the Activity Tracking workflow. Returns { data: { id, ... } }. Include: Properties, ContactContacts, RelatedOpportunityOpportunities, Agent, Campaign.

Inputs: id (required), include.

qobrix_get_field_optionsA

Get dropdown/enum field options — discover valid values for status fields, types, and categories. Essential for building correct search expressions in any workflow. Returns { data: [...], pagination: { ... } }. Each item has: id, resource, field, label, value. Key examples for canonical workflows: Listing statuses: search='resource == "Properties" and field == "status"' → available/reserved/sold/withdrawn. Lead statuses: search='resource == "Opportunities" and field == "status"' → new/open/won/closed_lost. Property types: search='resource == "Properties" and field == "property_type"'. Task types: search='resource == "Tasks" and field == "task_type"'. Pair with qobrix_get_schema for complete field discovery.

Inputs: page, limit, search.

qobrix_get_lead_propertiesA

Get properties linked to a lead — the 'demand-side matching' tool in the Sales Pipeline. Answers: 'What properties does this buyer want?' by returning properties attached to an opportunity. This is the canonical property suggestion pattern (RESO Demand/Solution matching). Reverse of qobrix_get_leads_by_property (which finds leads for a property). For free-language / ranked demand→supply (incl. projects), use qobrix_search_properties / qobrix_search_projects with search+boost derived from the lead's criteria. In the 8-stage buyer journey, use at the Solution/Viewing stage to prepare showing candidates. The id is the Opportunity UUID.

Inputs: id (required).

qobrix_get_leads_by_propertyA

Get matching leads for a property — the 'supply-side matching' tool in the Sales Pipeline. Answers: 'Who is interested in this listing?' by returning leads whose criteria match the property. This is the canonical buyer-property matching pattern (RESO Prospecting). Use after listing a new property to find potential buyers in the existing lead database. Complement with qobrix_get_lead_properties for the reverse (demand-side) match, or qobrix_search_opportunities with boost for ranked matching (incl. projects). The propertyId is the Property UUID. Returns paginated results.

Inputs: propertyId (required), page, limit.

qobrix_get_mediaA

Get a single media item by UUID — media detail view in the Media Lifecycle. Returns media metadata including URL/path. Optionally specify size variant for images: 'thumbnail', 'medium', 'large'. Use 'thumbnail' for preview grids, 'large' for full-resolution display.

Inputs: id (required), size.

qobrix_get_meetingA

Get a single meeting by UUID — meeting detail in the Activity/Showing Lifecycle. Returns { data: { id, ... } }. Include: AssignedToUsers, ContactContacts, ViewingPropertyViewings (if it wraps a showing), CreatedByUsers.

Inputs: id (required), include.

qobrix_get_offerA

Get a single offer by UUID — offer detail view in the Transaction Lifecycle. Returns { data: { id, ... } }. Include: OpportunityOpportunities (the lead/buyer intent), PropertyProperties (the listing), CreatedByUsers, ModifiedByUsers. Use to trace the deal chain: Offer → Opportunity → Contact + Property → Contract.

Inputs: id (required), include.

qobrix_get_opportunityA

Get a single lead/opportunity by UUID — drill into a pipeline deal in the Sales Pipeline workflow. Returns { data: { id, ref, status, enquiry_type, contact_name, agent, ... } }. RESO mapping: status 'new' = Lead, 'open' = Active/SQL, 'won' = Closed Won, 'closed_lost' = Lost. Verified include: ContactNameContacts (the person), Properties (linked listings), AgentAgents (assigned broker, RESO ListAgent), PropertyTypes, ClosedLostReason, User, OwnerUsers. Canonical deal drill-down pattern: 1. Get the lead with include=['ContactNameContacts','Properties','AgentAgents'] 2. Check showing history: qobrix_list_viewings (search by related property) 3. Check offers: qobrix_search_offers for this lead 4. Check activity: search Tasks, Calls, Meetings linked to this opportunity FK: contact_name → Contacts, agent → Agents, owner → Users.

Inputs: id (required), include.

qobrix_get_projectA

Get a single project by UUID — development detail view for off-plan/new-build listings. Returns { data: { id, ... } }. Verified include: Agents, Developer, Translations, LocationLocations, Assignee, Recommended, Favorites. To see project units: qobrix_search_properties with project == ''. To see project media: qobrix_list_media with related_model='Projects' and related_id=.

Inputs: id (required), include.

qobrix_get_project_coordinatesA

Get lat/lng coordinates for projects, useful for map display. Optionally filter with a search expression.

Inputs: search.

qobrix_get_properties_by_leadA

Get properties explicitly linked to a lead — the 'demand-side view' in the Sales Pipeline. Shows which properties a lead/opportunity has been matched to or expressed interest in. The id parameter is the Opportunity UUID (not the property UUID). In the canonical buyer journey: after Qualification, use this to review Solution/Viewing candidates. Alternative: qobrix_get_opportunity with include=['Properties'] for inline expansion. Complement with qobrix_get_leads_by_property for the reverse (supply-side) match.

Inputs: id (required), page, limit.

qobrix_get_propertyA

Get a single property by UUID — the listing detail view in the Listing Lifecycle. Returns { data: { id, name, status, ... } }. RESO StandardStatus: 'available' = Active, 'reserved' = Pending, 'sold' = Closed, 'withdrawn' = Withdrawn. Use include[] to expand related entities inline: Verified: Agents, PropertyTypes, PropertySubtypes, PropertyViewings, Opportunities, Translations, SalespersonUsers, CreatedByUsers, LocationLocations, AgentAgents, SellerContacts, ProjectProjects. Workflow tips: include=['PropertyViewings'] → see showing history (Showing Lifecycle). include=['Opportunities'] → see interested leads (Sales Pipeline). include=['AgentAgents'] → listing agent (RESO ListAgent). include=['SellerContacts'] → seller/owner (RESO OwnerMember). FK fields: agent → Agents, seller → Contacts, project → Projects, salesperson → Users.

Inputs: id (required), expand, include.

qobrix_get_property_coordinatesA

Get lat/lng coordinates for properties, useful for map display. Optionally filter with a search expression to get coordinates for a subset. Returns array of { id, coordinates } objects.

Inputs: search.

qobrix_get_schemaA

Get the full field schema for any CRM resource — the Schema Discovery tool. CALL THIS FIRST when unsure about field names for search, fields[], or sort. Returns every field with name, type, label, and validation rules (RESO Data Dictionary equivalent). Resources (case-sensitive): Properties, Contacts, Opportunities, Agents, Tasks, PropertyViewings, Projects, Offers, Contracts, Calls, Meetings, EmailMessages, Media, PropertyTypes, PropertySubtypes, PropertyFeatures, Locations. Canonical use: before building search expressions for any workflow (Listing, Sales Pipeline, Follow-up), call this to discover the correct field names. The schema is the source of truth. Pair with qobrix_get_field_options to see allowed enum values for dropdown fields. For search grammar, prefer qobrix_search_dsl_help.

Inputs: resource (required).

qobrix_get_taskA

Get a single task by UUID — task detail for pipeline management and follow-up audit. Returns { data: { id, ... } }. Include: AssignedToUsers (who), ContactContacts (for whom), Properties (which listing), RelatedOpportunityOpportunities (which deal), RelatedAgentAgents, TaskStatus, TaskTypes.

Inputs: id (required), include.

qobrix_get_viewingA

Get a single viewing by UUID — the showing detail view in the Showing Lifecycle. Returns { data: { id, ... } }. Verified include: PropertyViewingViewing. After retrieving, use the property and contact FKs to trace back to the listing and lead.

Inputs: id (required), include.

qobrix_list_agentsB

List agents (RESO Member resource) — real estate brokers managing listings and leads. Agents are the central actor across all workflows: they manage the Listing Lifecycle, drive the Sales Pipeline, and own Follow-up activities. Referenced by property.agent and opportunity.agent FKs. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Verified include: PrimaryContactContacts, User, Brands, AgencyAgents (parent agency). Workflow: to see an agent's full portfolio, search Properties and Opportunities by agent == ''.

Inputs: page, sort, limit, fields, +2 more.

qobrix_list_callsA

List call records — part of the Activity Tracking / Follow-up workflow. Calls are touchpoints in the Lead-Contact Lifecycle; zero tolerance on missed follow-ups. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Include: ContactContacts (who was called), AssignedToUsers (who made the call), RelatedOpportunityOpportunities (which lead), RelatedAgentAgents, RelatedContractContracts. Workflow: use with qobrix_list_meetings and qobrix_list_email_messages for a complete activity timeline. To audit a contact's engagement: search calls, meetings, and emails by their contact UUID.

Inputs: page, sort, limit, search, +1 more.

qobrix_list_contactsA

List contacts (RESO Contacts resource) from Qobrix CRM — the people/companies in the CRM. Core to the Lead-Contact Lifecycle: a Contact becomes a Lead when an Opportunity is created for them. RESO ContactType mapping: use opportunity.enquiry_type and property.seller FK to determine Buyer/Seller/Tenant role. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Key fields (42 total): first_name, last_name, name, email, phone, city, country, assigned_to (UUID → user, RESO OwnerMember), role, is_company, nationality, preferred_language, preferred_contact_method, consent fields, created, modified. Cross-references: property.seller → Contact UUID, opportunity.contact_name → Contact UUID, task.contact → Contact UUID, call/meeting.contact → Contact UUID. Workflow: to see a contact's full journey, search Opportunities, Tasks, Calls, and Meetings by their UUID.

Inputs: page, sort, limit, fields, +3 more.

qobrix_list_contractsA

List contracts (RESO TransactionManagement close) — the 'Deal Signing / Payment / Close' stage of the Sales Pipeline. A Contract finalizes the transaction: it links the Property, buyer/seller Contacts, and the Opportunity. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Verified include: Contacts, PropertyIdProperties, OpportunityIdOpportunities, PaymentInstallments (payment schedule), ContractParties (all signatories), CreatedByUsers. Canonical chain: Offer → Contract → Payment → Close. After contract signing, the property status moves to 'reserved' (Pending), then 'sold' (Closed).

Inputs: page, sort, limit, search, +1 more.

qobrix_list_email_messagesA

List email messages — part of the Activity Tracking / Follow-up workflow and marketing campaigns. Emails are touchpoints in the Lead-Contact Lifecycle for nurturing and communication. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Include: ContactContacts (recipient/sender), Properties (listing references), Campaign (marketing campaign), RelatedOpportunityOpportunities, RelatedAgentAgents. Use with qobrix_list_calls and qobrix_list_meetings for a complete contact engagement timeline.

Inputs: page, sort, limit, search, +1 more.

qobrix_list_mediaA

List media items (RESO Media resource) — photos, documents, floor plans attached to any entity. Core to the Media Lifecycle: every listing needs photos and floor plans; projects need brochures. NOTE: Returns { data: [...] } WITHOUT pagination metadata (unlike other endpoints). Must provide BOTH related_model AND related_id together, or omit both for global media. Listing media: related_model='Properties', related_id=''. Contact documents: related_model='Contacts', related_id=''. Project brochures: related_model='Projects', related_id=''. Alternative: qobrix_list_properties with media=true (default) embeds media in property responses. Each item has: id, media_type, reference_id, display_order, category, created.

Inputs: page, limit, related_id, related_model.

qobrix_list_meetingsA

List meetings — bridges the Activity Tracking and Showing Lifecycle workflows. Meetings can wrap property viewings (RESO Showing ↔ Meeting). Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Include: ContactContacts, ViewingPropertyViewings (linked showings), AssignedToUsers, RelatedOpportunityOpportunities, RelatedAgentAgents, CreatedByUsers, ModifiedByUsers. Workflow: include=['ViewingPropertyViewings'] to see which meetings are property showings vs general meetings. The first meeting/showing is the canonical trigger that moves a lead from follow-up to active sales.

Inputs: page, sort, limit, search, +1 more.

qobrix_list_offersA

List offers (RESO TransactionManagement) — the 'Decision Making' stage of the Sales Pipeline. An Offer formalizes a buyer's intent: it links an Opportunity (the lead) to a Property (the listing) with a price. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Include: OpportunityOpportunities (the lead), PropertyProperties (the listing), CreatedByUsers, ModifiedByUsers. Canonical transaction chain: Lead → Viewing → Offer → Contract → Close. After an offer is accepted, the next step is Contract creation (qobrix_list_contracts).

Inputs: page, sort, limit, search, +1 more.

qobrix_list_opportunitiesA

List opportunities/leads from Qobrix CRM — the central entity of the Sales Pipeline and Lead-Contact Lifecycle. In Qobrix, leads ARE opportunities. Each represents a buyer/renter/investor enquiry. RESO funnel mapping: 'new' = MQL/Lead, 'open' = SQL/Active, 'won' = Closed Won, 'closed_lost' = Lost. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. IMPORTANT: Avoid include=['Locations']. Safe verified includes: ContactNameContacts, Properties, AgentAgents, PropertyTypes, ClosedLostReason, User, OwnerUsers. Key fields (77 total): status, enquiry_type (buy/rent/invest), buy_rent, contact_name (UUID → Contact), agent (UUID → Agent), owner (UUID → user), source, area_of_interest, bedrooms_from/to, price ranges, next_follow_up_date, enquiry_date. Workflow patterns: Pipeline overview: group by status to see funnel distribution. Overdue follow-ups: status == "open" and next_follow_up_date <= NOW. New leads this week: created >= THIS_WEEK and status == "new". Two-way matching: demand→supply via qobrix_search_properties with lead criteria; supply→demand via this tool with boost against a listing (or native qobrix_get_leads_by_property).

Inputs: page, sort, limit, fields, +2 more.

qobrix_list_projectsA

List projects (property developments/complexes) — RESO Project equivalent for off-plan and new-build listings. Projects group multiple property units under one development, relevant in the Listing Lifecycle for new-builds. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Properties reference their project via the 'project' FK. Verified include: Agents, Developer, Translations, LocationLocations, Assignee, Recommended, Favorites. Workflow: to see units in a project, qobrix_search_properties with project == ''.

Inputs: page, sort, limit, fields, +2 more.

qobrix_list_propertiesA

List properties (RESO Property resource) from Qobrix CRM. Core tool for the Listing Lifecycle — use to browse active inventory, track status changes, or audit listings. Returns { data: [...], pagination: { count, current_page, has_next_page, has_prev_page, page_count, limit } }. RESO StandardStatus mapping: 'available' = Active, 'reserved' = Pending/Under Contract, 'sold' = Closed, 'withdrawn' = Withdrawn. Key fields (184 total): name, ref, status, sale_rent (for_sale/for_rent), property_type, property_subtype, city, country, list_selling_price_amount, list_rental_price_amount, bedrooms, bathrooms, covered_area_amount, plot_area_amount, agent (UUID → qobrix_get_agent), seller (UUID → qobrix_get_contact), project (UUID → qobrix_get_project), salesperson (UUID → user). Workflow recipes: Active inventory → search: status == "available" and sale_rent == "for_sale". Recent listings → sort: '-created'. Buyer-property match → prefer qobrix_search_properties with search + boost for free-language demand. Listing media → follow up with qobrix_list_media(related_model='Properties'). PAYLOAD DEFAULTS: expand=false and media=false — FKs come back as UUIDs and media is not inlined (set expand=true / media=true explicitly when full nested objects or media URLs are needed). Prefer include[] for surgical expansion of specific associations. Default limit 10, max 100.

Inputs: page, sort, limit, media, +4 more.

qobrix_list_tasksA

List tasks — the operational backbone of all canonical workflows: Follow-up, Pipeline Management, and Listing Checklists. Tasks drive daily agent cadence: overdue follow-ups, listing prep, closing steps, payment tracking. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Include: AssignedToUsers (task owner), ContactContacts (related person), Properties (listing), RelatedOpportunityOpportunities (lead), RelatedAgentAgents, RelatedContractContracts, TaskStatus, TaskTypes, CreatedByUsers, ModifiedByUsers. Canonical patterns: My open tasks: search with assigned_to == CURRENT_USER and status != "completed". Overdue: search with due_date <= NOW and status == "pending". Tasks for a lead: search with related opportunity FK. Listing checklist: search tasks linked to a property UUID.

Inputs: page, sort, limit, search, +1 more.

qobrix_list_viewingsA

List property viewings (RESO ShowingAppointment) — the Showing/Viewing Lifecycle tool. Viewings are the pivot between Follow-up and Active Sales: the first viewing marks a lead as actively engaged. Returns { data: [...], pagination: { count, current_page, has_next_page, ... } }. Each viewing links a property, a contact, and an agent/creator. Verified include: PropertyViewingViewing. Workflow patterns: This week's viewings: search with created >= THIS_WEEK. Property's showing history: qobrix_get_property with include=['PropertyViewings']. Meetings linked to viewings: qobrix_list_meetings with include=['ViewingPropertyViewings']. After a showing, the next pipeline step is Offer → Contract → Close.

Inputs: page, sort, limit, search, +1 more.

qobrix_rep_scorecardA

Per-rep productivity roll-up. One call returns a wide row for a single user or a top-N leaderboard (default). Counts calls/meetings/emails/tasks/viewings/opportunities and deals closed; sums total_volume + total_commission from closed contracts. Bucketed by assigned_to across every resource. Example uses: Leaderboard 2026 by volume: { year: 2026 }. My scorecard last 30 days: { user: 'CURRENT_USER', since_days: 30 }. Top 5 by activities this quarter: { from: '2026-01-01', to: '2026-04-01', sort_by: 'activities', top: 5 }.

Inputs: to, top, from, user, +3 more.

qobrix_search_agentsA

Relevance-ranked agent search (F1-optimized). TWO-TIER: search = hard must-haves; boost[] = soft weighted preferences; limit/max_scan control top-N and pool size. With boost: _relevance + _matched; pagination.mode='ranked'. Call qobrix_search_dsl_help({resource:'Agents'}) for DSL + fields. Example: boost=[{field:'ref',op:'contains',value:'LIM',weight:2}], limit=10, max_scan=100.

Inputs: page, sort, boost, limit, +3 more.

qobrix_search_changesA

Search tenant-wide audit log for a CRM resource (Qobrix LogAudit). Calls GET /api/v2/{resource}/changes. Use to find who changed what across all records. Search examples: timestamp >= DAYS_AGO(30), user_id == "", primary_key == "". Pair with qobrix_top_field_changers for leaderboards or qobrix_field_change_history for one record.

Inputs: resource (required), page, sort, limit, +2 more.

qobrix_search_contactsA

Relevance-ranked contact search (F1-optimized). TWO-TIER: search = hard must-haves; boost[] = soft weighted preferences scored over up to max_scan candidates; limit = top-N returned. With boost: rows get _relevance + _matched; pagination.mode='ranked'. Call qobrix_search_dsl_help({resource:'Contacts'}) for DSL + fields. Examples: search='country == "CY"', boost=[{field:'city',op:'==',value:'Limassol',weight:2},{field:'is_company',op:'==',value:false,weight:1}], limit=10, max_scan=100. Hard-only: assigned_to == CURRENT_USER; name contains "Smith"; created >= THIS_MONTH.

Inputs: page, sort, boost, limit, +3 more.

qobrix_search_contractsA

Relevance-ranked contract search (F1-optimized). TWO-TIER: search = hard must-haves; boost[] = soft weighted preferences; limit/max_scan for top-N and pool. With boost: _relevance + _matched; pagination.mode='ranked'. Call qobrix_search_dsl_help({resource:'Contracts'}) for fields. Example: search='contract_type == "cos" and contract_status == "agreed"', boost=[{field:'final_selling_price_amount',op:'>=',value:300000,weight:2}], limit=10, max_scan=150. Prefer qobrix_deals for common closed-deal questions.

Inputs: page, sort, boost, limit, +3 more.

qobrix_search_dsl_helpA

Return the full Qobrix Search Expression DSL reference so you can build correct search strings and boost[] clauses for ANY qobrix_search_* tool (properties, projects, contacts, agents, opportunities, viewings, tasks, offers, contracts). Includes operators, functions, date helpers, association paths, and the two-tier relevance recipe (hard search filter + soft boost ranking + limit/max_scan). Optional resource (e.g. 'Properties', 'Opportunities', 'Contacts') appends a field cheatsheet and live schema field names (schema fetch is response-cached). Call before composing free-language queries.

Inputs: resource.

qobrix_search_offersA

Relevance-ranked offer search (F1-optimized). TWO-TIER: search = hard must-haves; boost[] = soft weighted preferences; limit/max_scan for top-N and pool. With boost: _relevance + _matched; pagination.mode='ranked'. Call qobrix_search_dsl_help({resource:'Offers'}) for fields. Example: search='created >= THIS_MONTH', boost=[{field:'created',op:'>=',value:'2026-01-01',weight:1}], limit=10, max_scan=100.

Inputs: page, sort, boost, limit, +3 more.

qobrix_search_opportunitiesA

Relevance-ranked lead/opportunity search (F1-optimized) — primary pipeline filter AND supply→demand matching. TWO-TIER: search = hard must-haves; boost[] = soft weighted preferences scored over max_scan candidates; limit = top-N. With boost: _relevance + _matched; pagination.mode='ranked'. Call qobrix_search_dsl_help({resource:'Opportunities'}) for DSL + buyer-criteria fields. Pipeline recipes: status == "open"; created >= THIS_WEEK and status == "new"; next_follow_up_date <= NOW and status == "open". Supply→demand (who wants this listing?): search='status in ["new","open"] and buy_rent == "buy"', boost=[{field:'area_of_interest',op:'contains',value:'Limassol',weight:3},{field:'bedrooms_from',op:'<=',value:3,weight:2},{field:'list_selling_price_to',op:'>=',value:400000,weight:2}], limit=15, max_scan=200. Works for projects too (native by-property does not).

Inputs: page, sort, boost, limit, +3 more.

qobrix_search_projectsA

Highly relevant project (development) search for free-language demand (F1-optimized). TWO-TIER RECIPE: (1) search = hard DSL must-haves (server filter → precision). (2) boost[] = soft weighted nice-to-haves scored over up to max_scan candidates (recall + ranking). (3) limit = how many ranked rows to return (default 10, max 100). With boost: top-N with _relevance and _matched; pagination.mode='ranked'. Without boost: fast path single cached page; pagination.mode='fast'. Call qobrix_search_dsl_help({resource:'Projects'}) for DSL + field cheatsheet. Example: search='city contains "Paphos"', boost=[{field:'starting_price_from',op:'<=',value:400000,weight:2},{field:'construction_stage',op:'==',value:'under_construction',weight:1}], limit=10, max_scan=150. When expand=true or media=true, max_scan is auto-capped at 100. If status='result_too_large' with _refine_required, ask the user to narrow then retry. All upstream pages are response-cached.

Inputs: page, sort, boost, limit, +5 more.

qobrix_search_propertiesA

Highly relevant property search for free-language buyer demand (F1-optimized). TWO-TIER RECIPE: (1) search = hard DSL must-haves (server filter → precision). (2) boost[] = soft weighted nice-to-haves scored client-side over up to max_scan candidates (recall + ranking → better precision@top). (3) limit = how many ranked rows to return (default 10, max 100) — raise for more options, keep modest to avoid context overload. With boost: returns top-N with _relevance (score) and _matched (which boosts hit); pagination.mode='ranked' and pagination.scanned shows pool size. Without boost: fast path — single cached list page (pagination.mode='fast'). Call qobrix_search_dsl_help({resource:'Properties'}) before composing queries. Examples: Hard only: search='status == "available" and sale_rent == "for_sale" and city contains "Limassol"'. Demand match: search='status == "available" and sale_rent == "for_sale"', boost=[{field:'sea_view',op:'==',value:true,weight:3},{field:'bedrooms',op:'>=',value:3,weight:2},{field:'list_selling_price_amount',op:'in',value:'200000..600000',weight:2}], limit=15, max_scan=200. PAYLOAD: keep expand=false / media=false for search; when either is true, max_scan is auto-capped at 100. If a result returns status='result_too_large' with _refine_required, ask the user to narrow the query (filters, fields[], smaller limit, drop expand/media) then retry. All upstream pages are response-cached (QOBRIX_CACHE_TTL, default 300s).

Inputs: page, sort, boost, limit, +5 more.

qobrix_search_tasksA

Relevance-ranked task search (F1-optimized) — daily ops for pipeline and follow-up. TWO-TIER: search = hard must-haves; boost[] = soft weighted preferences; limit/max_scan for top-N and pool. With boost: _relevance + _matched; pagination.mode='ranked'. Call qobrix_search_dsl_help({resource:'Tasks'}) for fields. Recipes: search='assigned_to == CURRENT_USER and status != "completed"', boost=[{field:'due_date',op:'<=',value:'2026-12-31',weight:3}], limit=15, max_scan=100. Overdue hard filter: due_date <= NOW and status == "pending".

Inputs: page, sort, boost, limit, +3 more.

qobrix_search_viewingsA

Relevance-ranked viewing search (F1-optimized). TWO-TIER: search = hard must-haves; boost[] = soft weighted preferences; limit/max_scan for top-N and pool. With boost: _relevance + _matched; pagination.mode='ranked'. Call qobrix_search_dsl_help({resource:'PropertyViewings'}) for fields. Example: search='created >= THIS_WEEK', boost=[{field:'created',op:'>=',value:'2026-01-01',weight:1}], limit=10.

Inputs: page, sort, boost, limit, +3 more.

qobrix_sign_inA

Start interactive Qobrix sign-in (Mode C only). When not connected, returns a Sign In to Qobrix link (or native URL elicitation) for the user to complete login + 2FA + consent. When already connected, reports the current identity. In Mode A/B this is a no-op — credentials come from env / request headers. Mode C uses a per-user encrypted session vault keyed by the chat identity (X-Chat-Platform / X-Chat-User-Id). Deliver the Sign In link only to that individual — never post it into a shared/group thread.

Inputs: no named parameters.

qobrix_sign_outA

Sign out of Qobrix (Mode C only). Fully revokes the current user's session: calls the Authorization Server /disconnect (deletes the minted Qobrix API key and clears AS tokens/vault), then clears this user's local encrypted session vault. Other users' vaults on this MCP process are not affected. In Mode A/B there is no interactive session to clear.

Inputs: no named parameters.

qobrix_stale_leadsA

Find live opportunities (default status in [new,open]) that have no recent activity. An opportunity is 'stale' when no call/meeting/email/task touched it within since_days AND the opportunity itself wasn't modified within that window. Sorted oldest-modified first. Example uses: Silent leads (default, 30d): {}. Aggressive cadence: { since_days: 7 }. My silent leads: { assigned_to: 'CURRENT_USER' }.

Inputs: top, statuses, since_days, assigned_to.

qobrix_timeseriesA

Time-bucketed metric (count / sum / avg / min / max) over any resource. Paginates once over the window, buckets in-process by day/week/month/quarter/year (default 'month'). Per-resource default date_field: contracts→date_of_contract, opportunities/properties/calls/etc.→created. Use search to filter (e.g. only closed sales). Set compare_to_prior=true to also fetch the prior identical-length window for YoY %. Example uses: Monthly 2026 closed-sale volume with YoY: resource='contracts', metric='sum', field='final_selling_price_amount', year=2026, search='contract_type == "cos" and contract_status == "agreed"', compare_to_prior=true. Weekly lead intake last 90 days: resource='opportunities', bucket='week', metric='count', since_days=90. Quarterly listing additions 2026: resource='properties', bucket='quarter', year=2026, metric='count'.

Inputs: resource (required), to, from, year, +7 more.

qobrix_top_field_changersA

Leaderboard: which users most often edited a given field (tenant-wide audit scan). Paginates GET /{resource}/changes, counts rows where field appears in changed, groups by user_id. Returns [{user_id, user_name?, change_count, latest_change_at, sample_record_ids}]. Use for: 'who rewrites lead source to direct most often in the last 6 months?'

Inputs: field (required), resource (required), limit, since, +3 more.

qobrix_top_recordsA

Top-N rows of any resource sorted by a numeric or ISO-date field. Paginates server-side (cap 20,000 rows), sorts in-process, and resolves common FK fields (property_id, agent, owner, assigned_to, commission_to, commission_to_2, contact_name, salesperson, seller, project, developer_id, campaign_id) into readable names so the agent doesn't have to chain lookups. Use this for full-dataset top-N, or when list/search sort returns no rows on a nullable/computed field (e.g. opportunities.budget). For a single page of highest list prices, prefer qobrix_list_properties / qobrix_search_properties with sort='-list_selling_price_amount'. Example uses: Top 2026 closed sales: resource='contracts', sort_by='final_selling_price_amount', search='contract_type == "cos" and contract_status == "agreed" and date_of_contract >= "2026-01-01" and date_of_contract < "2027-01-01"'. Largest active listings (full scan): resource='properties', sort_by='list_selling_price_amount', search='status == "available" and sale_rent == "for_sale"'. Most recently modified leads: resource='opportunities', sort_by='modified'.

Inputs: sort_by (required), resource (required), top, desc, +4 more.

qobrix_top_valuesA

Aggregate records by a field and return the top N most-frequent values with counts. This tool paginates through all matching records server-side — no client-side scripting needed. Caps at 20,000 records for safety; use a search filter to narrow large datasets. Example uses: Top listing developers: resource='properties', field='developer_id', search='status == "available" and sale_rent == "for_sale"', resolve=true. Lead sources: resource='opportunities', field='source', search='created >= "2026-01-01"'. Agent workload: resource='opportunities', field='owner', search='status == "open"', resolve=true. Property type mix: resource='properties', field='property_type', search='status == "available"'. Set resolve=true to convert UUIDs (developer_id, agent, owner, etc.) to human-readable names.

Inputs: field (required), resource (required), top, search, +1 more.

qobrix_whoamiA

Return the current Qobrix user profile, capabilities, and portals (GET /api/v2/session/). In Mode C with no session for this chat identity, surfaces a Sign In link so the user can authenticate first. Also includes the OAuth subject when available. Use to confirm which CRM identity the agent is acting as for this user.

Inputs: no named parameters.

qobrix_win_lossA

Win-rate analytics over opportunities. Globally returns counts of new / open / won / closed_lost plus win_rate_pct = won / (won + closed_lost). Optional group_by slices by source, enquiry_type, owner, agent, or closed_lost_reason_id (multi-dim arrays supported). Window applied to last_status_change (fallback modified). Set include_top_losses=true to also receive the 10 most-recent closed_lost opportunities with reason labels and details. Example uses: Overall 2026 win rate: { year: 2026 }. Win rate by lead source: { year: 2026, group_by: 'source' }. Top loss reasons last 90 days: { since_days: 90, group_by: 'closed_lost_reason_id' }. My win rate: { assigned_to: 'CURRENT_USER', year: 2026 }. Forensic loss review: { year: 2026, include_top_losses: true }.

Inputs: to, top, from, year, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 64 tools

    Disambiguation4/5

    Most tools are clearly distinct by resource (contacts, properties, opportunities, etc.) and action (list, get, search). However, there are some overlaps: qobrix_get_properties_by_lead and qobrix_get_lead_properties appear to do the same thing (both return properties for a lead), and qobrix_search_offers / qobrix_search_contracts vs qobrix_deals may be confused for deal queries. Also, qobrix_count, qobrix_top_values, qobrix_top_records, qobrix_aggregate, qobrix_timeseries all perform analytics over resources, requiring agents to read carefully to choose the right one.

    Naming Consistency5/5

    Tool names follow a consistent verb_noun pattern: list_<resource>, get_<resource>, search_<resource>, plus a few domain-specific verbs like count, aggregate, timeseries, funnel, win_loss, etc. All are snake_case with clear resource identifiers. The few exceptions (qobrix_deals, qobrix_funnel, qobrix_win_loss) are still consistent with the verb-based style (e.g., deals is a verb-like noun). Overall, the naming is predictable and uniform.

    Tool Count3/5

    64 tools is on the heavier side, but the server covers a full CRM domain with core entities (contacts, properties, opportunities, viewings, tasks, media, projects, offers, contracts, calls, meetings, emails) plus analytics and admin tools. While a 64-tool surface may be overwhelming for agents, the tools are organized and each serves a specific purpose. The count is borderline high but justified by the breadth of functionality. It is not an extreme mismatch (like 100+ or a single trivial tool).

    Completeness4/5

    The tool surface covers the primary CRM lifecycle: list/get/search for all main entities, plus creation/update/delete appears missing for most resources—only search/list/get are provided. However, the server is likely read-only (no create/update/delete tools, except for auth). Given that the domain is CRM data retrieval and analytics, the coverage is quite complete for read operations: all key resources are represented, and advanced analytics (funnel, win_loss, stale_leads, cohort) fill gaps. Some missing operations like creating a contact or updating an opportunity are absent, but the server appears designed as a read/analytics layer rather than a full CRUD tool, so this is a minor gap.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive Model Context Protocol server for real estate data management that provides tools and resources for property listings, agent management, market analysis, client relationships, and area intelligence.
      72
      AGPL 3.0
    • A
      license
      A
      quality
      D
      maintenance
      Read-only MCP server for the Daktela contact center REST API, providing 40 tools to access tickets, calls, emails, chats, contacts, CRM records, campaigns, and real-time agent status.
      45
      1
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      Enterprise-level MCP server integrating with Vista CRM (Loft Edition) for real estate operations, offering 40+ tools for property search, pipeline management, lead capture, and agenda control.
      42
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP server for Moody's Commercial Real Estate API, providing 37 tools for property lookups, market analytics, comps, CMBS data, tax records, and more.
      -