curl --request POST \
--url https://app.splox.io/api/v1/mcp-tools/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mcp_server_id": "0199e001-a23b-7c8d-1234-567890abcdef",
"tool_slug": "search_documents",
"args": {
"query": "latest release notes"
}
}
'{
"result": {
"content": [
{
"type": "text",
"text": "Found 3 matching documents"
}
],
"isError": false
},
"is_error": false
}Executes a tool directly on an MCP server configured by the authenticated user.
curl --request POST \
--url https://app.splox.io/api/v1/mcp-tools/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mcp_server_id": "0199e001-a23b-7c8d-1234-567890abcdef",
"tool_slug": "search_documents",
"args": {
"query": "latest release notes"
}
}
'{
"result": {
"content": [
{
"type": "text",
"text": "Found 3 matching documents"
}
],
"isError": false
},
"is_error": false
}curl -X POST https://app.splox.io/api/v1/mcp-tools/execute \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mcp_server_id": "0199e001-a23b-7c8d-1234-567890abcdef",
"tool_slug": "search_documents",
"args": {
"query": "latest release notes"
}
}'
| Field | Type | Required | Description |
|---|---|---|---|
mcp_server_id | string (uuid) | Yes | ID of the user MCP server to execute against. Must belong to the authenticated user. |
tool_slug | string | Yes | Tool name/slug to execute on that MCP server. |
args | object | No | Tool input arguments. Defaults to an empty object. |
{
"result": {
"content": [
{
"type": "text",
"text": "Found 3 matching documents"
}
],
"isError": false
},
"is_error": false
}
result object is passed through from the MCP server and may include fields like content, structuredContent, and isError.API token generated from your Splox account settings. Create tokens at https://app.splox.io/account?tab=settings