# الأدوات المسموح بها

Canonical URL: https://developers.iagenify.com/ar/sdk/mcp/allowed-tools/
Language: ar

لا يُسمح بأي شيء حتى تقول ذلك ، لا تحذر — حسابيا : الاعلان يكلف الرسومات على كل دورة من كل جولة .

Status: none by default · chosen per connection · the cost is per turn

## الحساب {#arithmetic}

> **كل أداة مُمرسة مع كل دور**
>
> خادم يعرض تسعين أداة ، مسموح بها كلها ، يضيف تكلفة ثابتة كبيرة لكل خطوة من كل جولة تستخدمه — يدفعها صاحب الحساب ، على كل جواب ، سواء كان اسم واحد في أي وقت مضى أو لا .

ولهذا السبب فإن التقصير ليس قائماً، ولماذا يتم الاختيار عند الربط بدلاً من الركض: فهو قرار بشأن ما يدفع الحساب باستمرار.

## يُسيّرهم {#choosing}

```javascript
// At connection
await api.mcp.connect({ url, name: "example", tools: ["search_docs", "get_issue"] });

// Later — the list is replaced, not added to
const server = await api.mcp.get("example");
const allowed = server.tools.filter((t) => t.allowed).map((t) => t.name);
await api.mcp.update("example", { tools: [...allowed, "create_issue"] });
```

## مراقبو المجموع {#watching}

```javascript
const servers = await api.mcp.list();
const perTurn = servers.reduce((n, s) => n + s.allowed, 0);
console.log(perTurn, "MCP tools declared on every turn");
```

## الأدوات الجديدة التي تم الوصول إليها دون {#new-tools}

يُحدّث خادماً يجلب ما يضيفه من أيًّا كان، مع `allowed: false`الخادم لا يستطيع أن يوسّع سطحه الخاص بشحن المزيد من الأدوات.

## جاري تشغيل خادم {#off}

`tools: []` و ما هو إلاّ دليل على وجود صلة و رمزها و لا يعلن شيئاً قابل للإلغاء و لا يكلف شيئاً في الوقت الحالي

## نونوو إيقاع {#narrow}

ثلاثة أدوات اختيارية جيدة تجعل من أفضل عامل من تسعين: النموذج يقرأ كل وصف على كل منعطف، وقائمة طويلة من الأسماء القريبة من بعضها البعض هي سبب لاختيار واحد خاطئ.

- [update()](/ar/sdk/ref/mcp/update): تغيير القائمة.
- [الخيارات · الأدوات والمكتبة](/ar/sdk/ref/agents/options/tools): نفس الحساب للأدوات المدمجة

```python
# At connection
api.mcp.connect(url=url, name="example", tools=["search_docs", "get_issue"])

# Later — the list is replaced, not added to
server = api.mcp.get("example")
allowed = [t["name"] for t in server["tools"] if t["allowed"]]
api.mcp.update("example", tools=[*allowed, "create_issue"])
```

```python
servers = api.mcp.list()
per_turn = sum(s["allowed"] for s in servers)
print(per_turn, "MCP tools declared on every turn")
```
