Skip to main content
POST
Import and remove an MCP server's tools

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Path Parameters

id
string
required

The unique identifier for the MCP server.

Query Parameters

projectId
string
required

The unique identifier for the project.

Body

application/json

The tools to import and the tools to remove.

import
string[]

The names of the remote tools to import, exactly as discovery reports them. If a tool is already imported and changed on the server, the request refreshes it.

Example:
remove
string[]

The referenceId values of the imported tools to remove. Removing a tool also detaches it from every agent and skill that uses it. If you omit a tool, the request doesn't remove it.

Example:
reviewedToolNames
string[]

The names of all remote tools that your client showed to the user, whether the user imported them or not. The API uses them to record which tools the user has seen, so newSinceReview flags only tools that the user hasn't seen. If you omit the field, the API uses the tools that it discovers during this request. Send [] only if the server offered no tools.

Example:

Response

Sync completed. Individual items can still be rejected, and each rejected item has an error.

items
object[]

The outcome for each distinct requested item: imports first, then removals, in request order.

total
integer

The number of items in items.

Example:

2