---
docId: doc_ca609d3238554afe8983784118cbcab4
title: Choose MCP tools
description: "Replace the installed tool selection for an MCP server."
api:
  group: herramientas/servidores-mcp
  auth: bearer
  operations:
    - operationId: syncMcpServerTools
      method: POST
      path: '/v1/tools/mcp/{mcpId}/tools/sync'
      postmanName: Choose MCP tools
---

<script>
  import { Ways, Note } from '$lib/components';
</script>

# Choose MCP tools

Choose which server tools are installed in the [catalog](/api-reference/tools/list). Missing tools are installed; tools omitted from the list are uninstalled. First verify the server with [test an MCP server](/api-reference/mcp-servers/test).

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X POST https://api.platic.ai/v1/tools/mcp/$MCP_ID/tools/sync \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "tools": ["search_docs"] }'
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.tools.mcp.syncTools("mcp_123", { tools: ["search_docs"] });
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `mcpId` | string | Id of the MCP server | ✓ |

## Request body

| Field | Type | Description | Required |
|-------|------|-------------|----------|
| `tools` | string[] | The complete list of tools that must stay installed, with their original names (`discoveredTools[].name`). Up to 100. An empty list uninstalls them all | ✓ |

```json
{
  "tools": ["create_issue", "search_issues"]
}
```

<Note type="warning">

Send the complete list of tools you want to keep. Omitted tools are removed from the catalog and disconnected from their agents. To add a tool, include the current ones and the new one.

</Note>

## Response

`data` has the full server, with the fields in [get an MCP server](/api-reference/mcp-servers/get#response-fields). The server ends up `connected`.

```json
{
  "status": "success",
  "message": "MCP tools synced successfully",
  "data": {
    "id": "QZPHpckDPC58JIVLQA3Z",
    "name": "Linear",
    "description": "Support team issues",
    "url": "https://mcp.linear.app/mcp",
    "transport": "streamable-http",
    "slug": "a1b2c3",
    "authType": "bearer",
    "auth": { "type": "bearer" },
    "status": "connected",
    "lastError": null,
    "serverInfo": { "name": "linear-mcp", "version": "1.4.0" },
    "customHeaderNames": [],
    "discoveredToolsCount": 2,
    "installedToolsCount": 2,
    "lastSyncAt": null,
    "createdAt": "2026-10-28T12:02:11.410Z",
    "updatedAt": "2026-10-28T12:06:40.000Z",
    "version": 2,
    "verified": true,
    "secrets": [
      {
        "slot": "auth.token",
        "state": "authorized",
        "secretId": "5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c"
      }
    ],
    "discoveredTools": [
      {
        "name": "create_issue",
        "description": "Create a new issue in Linear",
        "inputSchema": {
          "type": "object",
          "properties": {
            "title": { "type": "string" },
            "teamId": { "type": "string" }
          },
          "required": ["title", "teamId"]
        },
        "installed": true
      },
      {
        "name": "search_issues",
        "description": "Search issues by text query",
        "inputSchema": {
          "type": "object",
          "properties": { "query": { "type": "string" } }
        },
        "installed": true
      }
    ],
    "installedTools": [
      { "id": "8fK2mQpLxT4vNbRc", "name": "mcp_create_issue_a1b2c3", "mcpToolName": "create_issue" },
      { "id": "Lm9RtWq3ZxYvBn2P", "name": "mcp_search_issues_a1b2c3", "mcpToolName": "search_issues" }
    ],
    "nextStep": "Connected. Give a tool to an agent with PUT /v1/agents/{agentId}/tools/{toolId} and a toolId from installedTools."
  }
}
```

### Response fields

| Field | Type | Description |
|-------|------|-------------|
| `installedTools[].id` | string | The `toolId` of each tool in the catalog |
| `installedTools[].name` | string | The name the agent sees |
| `installedTools[].mcpToolName` | string \| null | The original name on the server |
| The rest | — | See [get an MCP server](/api-reference/mcp-servers/get#response-fields) |

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `400` | `INVALID_REQUEST` | `tools` is missing or is not a list of names. `details.issues` has the list of problems |
| `400` | `TOOLS_REQUIRED` | The list is not valid |
| `403` | `FORBIDDEN` | The person behind the token does not have access to Integrations, or does not have access to an agent that uses a tool that is about to be removed |
| `404` | `NOT_FOUND` | The server does not exist in this workspace |
| `409` | `VERIFICATION_REQUIRED` | There is no current test: it was never tested, or the connection or a secret changed afterwards. [Test](/api-reference/mcp-servers/test) and retry |
| `409` | `UNKNOWN_TOOL` | A name in the list is not among the tools the server offered in the last test |
| `409` | `NAME_CONFLICT` | A tool would produce a name another tool in the workspace already uses |
| `409` | `RESOURCE_CHANGED` | The server changed while it was being saved. Get it again and retry |

## Notes

- Installing a tool does not give it to any agent. Connect each one with [connect a tool](/api-reference/agents/tools/connect): `PUT /v1/agents/{agentId}/tools/{toolId}`, with an `id` from `installedTools`.
- A tool that was already installed keeps its `toolId` and its connections to agents.
- If the server stopped offering a tool, take it out of the list: sending it answers `409 UNKNOWN_TOOL`.
