# createMcpTools()

Canonical URL: https://developers.iagenify.com/sdk/ref/mcp-client/create-mcp-tools/
Language: en

`createMcpTools(servers, { clients? }) → object`

Turns connected servers into engine-shaped tools — the same shape as customTools, so they are permissioned and counted like everything else.

Status: engine shape · category from the server · clients are reused

```javascript
import { createMcpTools } from "iagenify";

const servers = await api.mcp.forAgent(["example"]);
const tools = createMcpTools(servers);
// { example_search_docs: { description, parameters, category, run } }
```

## The shape {#shape}

| Field | From |
| --- | --- |
| `description` | The server's tool description. |
| `parameters` | Its schema, sanitised. |
| `category` | **The server's**, not the tool's. |
| `run` | Calls the server, carrying any header annotations. |

## The category is the server's {#category}

> **The protocol's read-only hint is not used**
>
> It is declared by the server about itself, which is not proof. A third-party tool running without a permission in auto mode would be the worst possible regression here, so the category comes from the connection — exec by default.

## clients reuses connections {#clients}

Pass a map and the clients built for each server are kept in it, so a run calling several tools of one server shakes hands once.

## The engine does this itself {#engine}

`agents.create({ mcp })` calls `forAgent()` and then this, every run. Use it directly only when you are assembling a tool catalogue of your own.

- [forAgent()](/sdk/ref/mcp/for-agent): What it takes.
- [customTools](/sdk/agent/bridges/custom-tools): The shape it produces.

```python
from iagenify import create_mcp_tools

servers = api.mcp.for_agent(["example"])
tools = create_mcp_tools(servers)
# {"example_search_docs": {"description", "parameters", "category", "run"}}
```
