curl --request POST \
--url https://mcp.enkryptai.com/mcp-playground/call-tool \
--header 'Content-Type: application/json' \
--header 'X-Enkrypt-MCP-Registry-Server: <x-enkrypt-mcp-registry-server>' \
--header 'apikey: <api-key>' \
--data '
{
"tool_name": "read_file",
"tool_arguments": {
"path": "/tmp/test.txt"
}
}
'{
"success": true,
"error": "<string>",
"details": "<string>",
"data": {
"saved_name": "<string>",
"server_version": "<string>",
"server_name": "<string>",
"description": "<string>",
"tool_name": "<string>",
"tool_arguments": {},
"result": {
"content": [
{
"type": "<string>",
"text": "<string>",
"data": "<string>",
"mimeType": "<string>"
}
],
"isError": true
},
"executed_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}🧪 MCP Playground API
Call MCP Server Tool
Executes a tool call on an MCP server — the playground API for testing and debugging tools by directly invoking them with parameters.
The target server is identified by the X-Enkrypt-MCP-Registry-Server header — the gateway fetches its config from GET /mcp-registry/get-server using your apikey and uses the cloud’s 200/401/403 response as the authentication gate.
The request body carries the tool invocation: tool_name (required) and optional tool_arguments.
POST
/
mcp-playground
/
call-tool
curl --request POST \
--url https://mcp.enkryptai.com/mcp-playground/call-tool \
--header 'Content-Type: application/json' \
--header 'X-Enkrypt-MCP-Registry-Server: <x-enkrypt-mcp-registry-server>' \
--header 'apikey: <api-key>' \
--data '
{
"tool_name": "read_file",
"tool_arguments": {
"path": "/tmp/test.txt"
}
}
'{
"success": true,
"error": "<string>",
"details": "<string>",
"data": {
"saved_name": "<string>",
"server_version": "<string>",
"server_name": "<string>",
"description": "<string>",
"tool_name": "<string>",
"tool_arguments": {},
"result": {
"content": [
{
"type": "<string>",
"text": "<string>",
"data": "<string>",
"mimeType": "<string>"
}
],
"isError": true
},
"executed_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Headers
Registry server saved_name
Maximum string length:
32Example:
"my-filesystem-server"
Registry server version (defaults to "v1")
Example:
"v1"
Body
application/json

