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

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

Path parameters

ParameterTypeDescriptionRequired
mcpIdstringId of the MCP server✓

Request body

FieldTypeDescriptionRequired
toolsstring[]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"]
}

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

FieldTypeDescription
installedTools[].idstringThe toolId of each tool in the catalog
installedTools[].namestringThe name the agent sees
installedTools[].mcpToolNamestring | nullThe original name on the server
The rest—See get an MCP server

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTtools is missing or is not a list of names. details.issues has the list of problems
400TOOLS_REQUIREDThe list is not valid
403FORBIDDENThe 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
404NOT_FOUNDThe server does not exist in this workspace
409VERIFICATION_REQUIREDThere is no current test: it was never tested, or the connection or a secret changed afterwards. Test and retry
409UNKNOWN_TOOLA name in the list is not among the tools the server offered in the last test
409NAME_CONFLICTA tool would produce a name another tool in the workspace already uses
409RESOURCE_CHANGEDThe 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 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.