Choose MCP tools
SDK platic.tools.mcp.syncTools()
Choose which server tools are installed in the catalog. Missing tools are installed; tools omitted from the list are uninstalled. First verify the server with test an MCP server.
Example
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"] }' await platic.tools.mcp.syncTools("mcp_123", { tools: ["search_docs"] }); 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 | ✓ |
{
"tools": ["create_issue", "search_issues"]
} 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.
Response
data has the full server, with the fields in get an MCP server. The server ends up connected.
{
"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 |
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 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:
PUT /v1/agents/{agentId}/tools/{toolId}, with anidfrominstalledTools. - A tool that was already installed keeps its
toolIdand its connections to agents. - If the server stopped offering a tool, take it out of the list: sending it answers
409 UNKNOWN_TOOL.