Query
query PreviewMcpToolPresetImport($input: McpToolPresetImportInput!) {
previewMcpToolPresetImport(input: $input) {
token
canImport
errors
entries {
index
name
action
targetId
toolCount
errors
}
externalServers {
key
name
transport
selectedServerId
suggestedServerId
candidates {
id
name
url
transport
toolNamePrefix
headers {
__typename
}
}
}
}
}Variables
{
"input": {
"document": "string"
}
}Response
{
"data": {
"previewMcpToolPresetImport": {
"token": "string",
"canImport": true,
"errors": [
"string"
],
"entries": [
{
"index": 1,
"name": "string",
"action": "CREATE",
"targetId": "id",
"toolCount": 1,
"errors": [
"string"
]
}
],
"externalServers": [
{
"key": "string",
"name": "string",
"transport": "STREAMABLE_HTTP",
"selectedServerId": "id",
"suggestedServerId": "id",
"candidates": [
{
"id": "id",
"name": "string",
"url": "string",
"transport": "STREAMABLE_HTTP",
"toolNamePrefix": "string",
"headers": [
{
"__typename": "ExternalMcpServerHeader"
}
]
}
]
}
]
}
}
}Queries
previewMcpToolPresetImport
Validate an import without saving changes.
QUERY
previewMcpToolPresetImport(input: McpToolPresetImportInput!): McpToolPresetImportPreview!Arguments
input
required
The portable document and reviewed import choices.
Returns
token
String!
Fingerprint of this document, choices, and current validated state.
canImport
Boolean!
True when all selected entries can be imported without errors.
errors
[String!]!
Validation errors that must be resolved before importing.
entries
Per-preset validation results in document order.
externalServers
External server references that may require a local mapping.
Query
query PreviewMcpToolPresetImport($input: McpToolPresetImportInput!) {
previewMcpToolPresetImport(input: $input) {
token
canImport
errors
entries {
index
name
action
targetId
toolCount
errors
}
externalServers {
key
name
transport
selectedServerId
suggestedServerId
candidates {
id
name
url
transport
toolNamePrefix
headers {
__typename
}
}
}
}
}Variables
{
"input": {
"document": "string"
}
}Response
{
"data": {
"previewMcpToolPresetImport": {
"token": "string",
"canImport": true,
"errors": [
"string"
],
"entries": [
{
"index": 1,
"name": "string",
"action": "CREATE",
"targetId": "id",
"toolCount": 1,
"errors": [
"string"
]
}
],
"externalServers": [
{
"key": "string",
"name": "string",
"transport": "STREAMABLE_HTTP",
"selectedServerId": "id",
"suggestedServerId": "id",
"candidates": [
{
"id": "id",
"name": "string",
"url": "string",
"transport": "STREAMABLE_HTTP",
"toolNamePrefix": "string",
"headers": [
{
"__typename": "ExternalMcpServerHeader"
}
]
}
]
}
]
}
}
}