Skip to content

Commit d0bf5dd

Browse files
fcursoragent
andauthored
book(ch27): add section on specialized agents behind an MCP tool (#1364)
Adds 'A Tool Can Also Be Another Agent' after the workflows-as-tools section in English and all 16 locales, with AlphaSense SuperAnalyst MCP and GPT Researcher MCP as balanced examples and a Compare contrasting thin retrieval tools with delegating an objective. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent b8cb589 commit d0bf5dd

17 files changed

Lines changed: 289 additions & 0 deletions

‎src/content/book/27-tools-mcp-connectors.mdx‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,23 @@ The trade is between two strengths. The model is flexible: it can read an unusua
8787
after={{ label: "Describing the goal and the trigger", content: "Help customers resolve billing problems. When a customer asks for a refund and you have the order ID, call the refund workflow with that ID and the reason. Report the result it returns. Do not promise a refund before the workflow confirms it." }}
8888
/>
8989

90+
### A Tool Can Also Be Another Agent
91+
92+
A second shape can hide behind a single tool name. Instead of a fixed process, the implementation can be an agent of its own. It receives a request and runs its own loop: it plans, searches, weighs what it finds, may write and run code along the way, and hands back a finished result, such as an answer with citations, a report, or a file. To the agent that called it, all of that looks like one tool call and one response.
93+
94+
That changes what the calling agent has to do. With thin retrieval tools, the outer agent does the research itself. It decides which source to query, reads what comes back, notices a contradiction, and searches again. Every hop happens inside its own context window, and every raw result it reads stays there for the rest of the task. A specialized agent takes an **objective** instead of a sequence of tool calls. The detailed hops happen in the specialist's context rather than yours, so the outer agent's context stays shorter and its attention stays on the larger task: what you asked for, what it already knows, and what to do with the result.
95+
96+
Two recent examples show the idea from different sides. On November 4, 2026, AlphaSense [introduced](https://www.alpha-sense.com/resources/product-articles/superanalyst-mcp/) SuperAnalyst MCP, which it describes as an agent you delegate complex financial and business research to. It plans the research, gathers sources from the company's document library, runs analysis, and returns context with citations that point back to the source passages, in whatever form the request calls for: a direct answer, a spreadsheet, or a cited evidence pack. In open source, the [GPT Researcher MCP server](https://github.com/assafelovic/gptr-mcp) does something similar for the open web. Its `deep_research` tool takes a single query and runs a whole research pass, exploring and validating several sources, which its [documentation](https://docs.gptr.dev/docs/gpt-researcher/mcp-server/getting-started) says takes around 30 to 40 seconds instead of the near-instant reply of a plain search. It returns the gathered context and sources with a research ID, which companion tools such as `write_report` and `get_research_sources` can build on. The same server also offers `quick_search` for when a fast, shallow lookup is enough, a useful reminder that both shapes can live side by side.
97+
98+
Set this beside the workflow from the previous section. A workflow is predictable: the same input leads through the same steps every time, and that is its value. A nested agent is flexible: it chooses its own next step, and that is its value too. But flexibility brings the same questions you would ask of any agent you trust with tools. You see less of each hop, often only the result and whatever trail it chooses to return. You are trusting its sources, its judgment about which ones count, and its own care with misleading content. And a long nested run still costs tokens and time, even when they are spent out of your sight. So decide by asking where the judgment belongs. When weighing sources and choosing what to look at next *is* the expertise, give it to the specialist. When the steps *are* the policy, keep a fixed workflow.
99+
100+
The prompt follows from that. Describe the goal and the form the answer should take, and ask for sources or a note on uncertainty when those matter. Do not list the specialist's internal steps. It has its own, and a second copy written into your prompt will only compete with them.
101+
102+
<Compare
103+
before={{ label: "Running many thin retrieval tools yourself", content: "For each of our three main suppliers, call search_filings, then search_transcripts, then search_news. Read every result, merge duplicates, decide which sources are reliable, search again wherever they disagree, and then summarize the supply risks." }}
104+
after={{ label: "Delegating an objective to a specialized agent", content: "Ask the research tool what the main supply risks are for our three main suppliers over the next year. I need a short evidence pack: each risk in one sentence, a citation for every claim, and a note wherever sources disagree or the evidence is thin. Then use it to draft the risk section of my memo." }}
105+
/>
106+
90107
### When There Is No API, the Screen Becomes the Tool
91108

92109
Every tool so far has had a door built for software: an API, a connector, an MCP server. Many systems have no such door. An old internal portal, a supplier's booking site, a desktop program from another decade: people use them every day, but only through the screen. For these, some models can treat the screen itself as a tool. This is usually called **computer use**.

‎src/content/book/ar/27-tools-mcp-connectors.mdx‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,23 @@
8787
after={{ label: "وصف الهدف ولحظة الاستدعاء", content: "ساعد العملاء على حل مشكلات الفوترة. عندما يطلب عميل استرداد مبلغ ويكون لديك رقم الطلب، استدعِ سير عمل الاسترداد بهذا الرقم وبالسبب. أبلغ بالنتيجة التي يعيدها. لا تَعِد باسترداد قبل أن يؤكده سير العمل." }}
8888
/>
8989

90+
### قد تكون الأداة وكيلاً آخر
91+
92+
قد يختبئ خلف اسم أداة واحدة شكلٌ ثانٍ. فبدلاً من عملية ثابتة، قد يكون التنفيذ نفسه وكيلاً قائماً بذاته. يتلقى هذا الوكيل الطلب ويدير حلقته الخاصة: يخطط، ويبحث، ويوازن بين ما يجده، وربما يكتب شيفرة ويشغّلها في الطريق، ثم يسلّم نتيجة مكتملة، كإجابة موثّقة بالمصادر أو تقرير أو ملف. وفي نظر الوكيل الذي استدعاه، يبدو كل ذلك استدعاءً واحداً لأداة واستجابة واحدة.
93+
94+
وهذا يغيّر ما يتعيّن على الوكيل المستدعي أن يفعله. مع أدوات الاسترجاع الرفيعة، يتولى الوكيل الخارجي البحث بنفسه. يقرر أي مصدر يسأل، ويقرأ ما يعود إليه، ويلاحظ تناقضاً، ثم يبحث من جديد. كل خطوة تجري داخل نافذة سياقه هو، وكل نتيجة خام يقرؤها تبقى هناك حتى نهاية المهمة. أما الوكيل المتخصص فيتلقى **هدفاً** لا سلسلة من استدعاءات الأدوات. تجري الخطوات التفصيلية في سياق المتخصص لا في سياقك، فيبقى سياق الوكيل الخارجي أقصر، ويبقى انتباهه على المهمة الأكبر: ما الذي طلبته، وما الذي يعرفه أصلاً، وماذا يفعل بالنتيجة.
95+
96+
يُظهر مثالان حديثان الفكرة من جانبين مختلفين. في 4 نوفمبر 2026، [قدّمت](https://www.alpha-sense.com/resources/product-articles/superanalyst-mcp/) AlphaSense خدمة SuperAnalyst MCP، ووصفتها بأنها وكيل تُفوَّض إليه أبحاث مالية وتجارية معقدة. فهو يخطط للبحث، ويجمع المصادر من مكتبة وثائق الشركة، ويجري التحليل، ويعيد سياقاً مصحوباً باستشهادات تشير إلى المقاطع الأصلية، بالشكل الذي يتطلبه الطلب: إجابة مباشرة، أو جدول بيانات، أو ملف أدلة موثّق بالمصادر. وفي عالم المصادر المفتوحة، يفعل [خادم MCP الخاص بـ GPT Researcher](https://github.com/assafelovic/gptr-mcp) شيئاً مشابهاً للويب المفتوح. تتلقى أداته `deep_research` استعلاماً واحداً وتجري جولة بحث كاملة تستكشف عدة مصادر وتتحقق منها، وهو ما يستغرق بحسب [توثيقه](https://docs.gptr.dev/docs/gpt-researcher/mcp-server/getting-started) نحو 30 إلى 40 ثانية بدلاً من الرد شبه الفوري للبحث العادي. وتعيد الأداة السياق والمصادر التي جمعتها مع معرّف للبحث، يمكن لأدوات مرافقة مثل `write_report` و`get_research_sources` أن تبني عليه. ويقدّم الخادم نفسه أيضاً أداة `quick_search` للحالات التي تكفي فيها نظرة سريعة وسطحية، وفي ذلك تذكير مفيد بأن الشكلين يمكن أن يتجاورا.
97+
98+
ضع هذا بجانب سير العمل في القسم السابق. سير العمل قابل للتوقع: المدخلات نفسها تمر بالخطوات نفسها في كل مرة، وهنا تكمن قيمته. والوكيل المتداخل مرن: يختار خطوته التالية بنفسه، وهنا تكمن قيمته أيضاً. لكن المرونة تجلب الأسئلة نفسها التي تطرحها على أي وكيل تأتمنه على أدوات. فأنت ترى أقل من كل خطوة، وكثيراً لا ترى إلا النتيجة وما يختار أن يعيده من أثر. وأنت تثق بمصادره، وبحكمه على أيها يُعتدّ به، وبحذره هو أمام المحتوى المضلل. ثم إن التشغيل المتداخل الطويل لا يزال يكلّف رموزاً ووقتاً، حتى لو أُنفقت بعيداً عن نظرك. لذا احسم الأمر بأن تسأل: لمن ينبغي أن يكون الحكم؟ حين تكون الموازنة بين المصادر واختيار ما يُنظر فيه بعد ذلك *هو* الخبرة نفسها، فاتركه للمتخصص. وحين تكون الخطوات *هي* السياسة نفسها، فالتزم بسير عمل ثابت.
99+
100+
ومن هنا يأتي التوجيه. صِف الهدف والشكل الذي ينبغي أن تأتي عليه الإجابة، واطلب المصادر أو ملاحظة عن مواضع الشك حين يكون ذلك مهماً. لا تسرد الخطوات الداخلية للمتخصص. فلديه خطواته، ونسخة ثانية تكتبها في توجيهك لن تفعل سوى منافستها.
101+
102+
<Compare
103+
before={{ label: "تشغيل أدوات استرجاع رفيعة كثيرة بنفسك", content: "لكل واحد من موردينا الثلاثة الرئيسيين، استدعِ search_filings أولاً، ثم search_transcripts، ثم search_news. اقرأ كل نتيجة، وادمج المكرر، وقرّر أي المصادر موثوق، وابحث من جديد حيثما تتعارض، ثم لخّص مخاطر التوريد." }}
104+
after={{ label: "تفويض هدف إلى وكيل متخصص", content: "اسأل أداة البحث عن أبرز مخاطر التوريد لموردينا الثلاثة الرئيسيين خلال العام المقبل. أحتاج إلى ملف أدلة قصير: كل خطر في جملة واحدة، ومصدر لكل ادعاء، وملاحظة حيثما تتعارض المصادر أو تكون الأدلة ضعيفة. ثم استخدمه لكتابة مسودة قسم المخاطر في مذكرتي." }}
105+
/>
106+
90107
### حين لا توجد واجهة API، تصبح الشاشة هي الأداة
91108

92109
كل أداة رأيناها حتى الآن كان لها باب صُنع للبرمجيات: واجهة API، أو موصّل، أو خادم MCP. لكن أنظمة كثيرة لا تملك باباً كهذا. بوابة داخلية قديمة، وموقع حجوزات لدى أحد الموردين، وبرنامج مكتبي من عقد مضى: يستخدمها الناس كل يوم، لكن عبر الشاشة وحدها. ومع أنظمة كهذه، تستطيع بعض النماذج أن تعامل الشاشة نفسها على أنها أداة. ويُسمّى هذا عادةً **استخدام الحاسوب** (computer use).

‎src/content/book/az/27-tools-mcp-connectors.mdx‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,23 @@ Burada iki güclü tərəf arasında seçim edirsiniz. Model çevikdir: qeyri-ad
8787
after={{ label: "Məqsədi və çağırış anını təsvir edən prompt", content: "Müştərilərə ödəniş problemlərini həll etməkdə kömək et. Müştəri pulun qaytarılmasını istəsə və sifariş nömrəsi səndə varsa, geri qaytarma iş axınını həmin nömrə və səbəblə çağır. İş axınının qaytardığı nəticəni bildir. İş axını təsdiqləməmiş pulun qaytarılacağını vəd etmə." }}
8888
/>
8989

90+
### Alətin Arxasında Başqa Bir Agent da Ola Bilər
91+
92+
Tək bir alət adının arxasında ikinci bir forma da gizlənə bilər. Kodun yerində sabit bir proses deyil, özü də bir agent dura bilər. Bu agent sorğunu alır və öz dövrünü işlədir: plan qurur, axtarır, tapdıqlarını ölçüb-biçir, lazım olsa yol boyu kod yazıb işə salır və sonda hazır nəticə təhvil verir. Bu, mənbələri göstərilmiş cavab, hesabat və ya fayl ola bilər. Onu çağıran agentin gözündə bütün bunlar bir alət çağırışı və bir cavabdan ibarətdir.
93+
94+
Bu, çağıran agentin üzərinə düşən işi dəyişir. Yalnız məlumat gətirən nazik alətlərlə araşdırmanı xarici agent özü aparır. Hansı mənbəyə müraciət edəcəyinə qərar verir, gələn nəticəni oxuyur, ziddiyyət görür, yenidən axtarır. Hər addım onun öz kontekst pəncərəsində baş verir və oxuduğu hər xam nəticə tapşırığın sonunadək orada qalır. İxtisaslaşmış agent isə alət çağırışları ardıcıllığı deyil, bir **məqsəd** qəbul edir. Təfərrüatlı addımlar sizin deyil, mütəxəssisin kontekstində atılır. Belə olanda xarici agentin konteksti qısa qalır, diqqəti də əsas işdə qalır: sizin nə istədiyiniz, onun artıq nə bildiyi və gələn nəticə ilə nə ediləcəyi.
95+
96+
Yaxın vaxtların iki nümunəsi bu ideyanı fərqli tərəflərdən göstərir. AlphaSense 4 noyabr 2026-cı ildə SuperAnalyst MCP-ni [təqdim etdi](https://www.alpha-sense.com/resources/product-articles/superanalyst-mcp/) və onu mürəkkəb maliyyə və biznes araşdırmalarını həvalə edə biləcəyiniz agent kimi təsvir etdi. O, araşdırmanı planlaşdırır, mənbələri şirkətin sənəd kitabxanasından toplayır, təhlil aparır və konteksti mənbə parçalarına geri işarə edən istinadlarla qaytarır. Nəticənin forması da sorğuya uyğun dəyişir: birbaşa cavab, cədvəl və ya istinadlı sübut paketi. Açıq mənbə tərəfində [GPT Researcher MCP serveri](https://github.com/assafelovic/gptr-mcp) açıq veb üçün oxşar iş görür. Onun `deep_research` aləti tək sorğu qəbul edir və bir neçə mənbəni araşdırıb yoxlayan tam bir araşdırma turu aparır. [Sənədlərinə](https://docs.gptr.dev/docs/gpt-researcher/mcp-server/getting-started) görə bu, adi axtarışın demək olar ki, ani cavabı əvəzinə təxminən 30-40 saniyə çəkir. Alət topladığı konteksti və mənbələri araşdırma identifikatoru ilə birlikdə qaytarır, `write_report` və `get_research_sources` kimi köməkçi alətlər də həmin identifikator üzərində işi davam etdirə bilir. Eyni server sürətli və səthi baxışın kifayət etdiyi hallar üçün `quick_search` alətini də təklif edir. Bu, iki formanın yan-yana yaşaya biləcəyini yaxşı xatırladır.
97+
98+
Bunu əvvəlki bölmədəki iş axını ilə müqayisə edək. İş axını proqnozlaşdırılandır: eyni giriş hər dəfə eyni addımlardan keçir və onun dəyəri də budur. İç-içə işləyən agent isə çevikdir: növbəti addımı özü seçir və onun dəyəri də budur. Amma çeviklik alət etibar etdiyiniz istənilən agentə verəcəyiniz sualları da gətirir. Hər addımı daha az görürsünüz, çox vaxt yalnız nəticəni və agentin göstərməyi seçdiyi izləri. Onun mənbələrinə, hansılarının önəmli olduğuna dair mühakiməsinə və yanıldıcı məzmun qarşısındakı ehtiyatına güvənirsiniz. Uzun daxili iş də, siz görməsəniz belə, token və vaxt sərf edir. Ona görə qərarı mühakimənin kimə aid olduğunu soruşaraq verin. Mənbələri ölçüb-biçmək və növbəti nəyə baxılacağını seçmək *elə ekspertizanın özüdürsə*, işi mütəxəssisə verin. Addımlar *elə siyasətin özüdürsə*, sabit iş axınında qalın.
99+
100+
Prompt da buna uyğun qurulur. Məqsədi və cavabın hansı formada gəlməli olduğunu təsvir edin, mənbələr və ya qeyri-müəyyənlik qeydi önəmlidirsə, onları da istəyin. Mütəxəssisin daxili addımlarını sadalamayın. Onun öz addımları var və promptunuza yazılan ikinci nüsxə yalnız onlarla yarışacaq.
101+
102+
<Compare
103+
before={{ label: "Çoxlu nazik aləti özün işlətmək", content: "Üç əsas təchizatçımızın hər biri üçün əvvəlcə search_filings, sonra search_transcripts, sonra search_news çağır. Hər nəticəni oxu, təkrarları birləşdir, hansı mənbələrin etibarlı olduğuna qərar ver, mənbələrin ziddiyyət təşkil etdiyi hər yerdə yenidən axtar və sonra təchizat risklərini xülasə et." }}
104+
after={{ label: "Məqsədi ixtisaslaşmış agentə həvalə etmək", content: "Araşdırma alətindən üç əsas təchizatçımız üçün gələn ilin başlıca təchizat risklərinin nələr olduğunu soruş. Mənə qısa sübut paketi lazımdır: hər risk bir cümlədə, hər iddia üçün istinad və mənbələrin ziddiyyət təşkil etdiyi və ya sübutun zəif olduğu hər yerdə qeyd. Sonra bundan istifadə edərək memomun risk bölməsinin qaralamasını yaz." }}
105+
/>
106+
90107
### API Olmayanda Ekran Alətə Çevrilir
91108

92109
İndiyə qədər gördüyümüz hər alətin proqram təminatı üçün açılmış bir qapısı vardı: API, bağlayıcı, MCP serveri. Bir çox sistemlərin isə belə qapısı yoxdur. Köhnə daxili portal, təchizatçının bron saytı, başqa bir onillikdən qalmış masaüstü proqram: insanlar onlardan hər gün istifadə edir, amma yalnız ekran vasitəsilə. Belə sistemlər üçün bəzi modellər ekranın özünü alət kimi işlədə bilir. Buna adətən **kompüterdən istifadə** (computer use) deyilir.

0 commit comments

Comments
 (0)