POST /mltk/mcp_connection/tools
POST /mltk/mcp_connection/tools
List the tools exposed by a saved or inline MCP connection.
AGENT_CONNECTION_CAPABILITIES
Description. List the tools exposed by a saved or inline MCP connection. Same body shape as /test. For ATLASSIAN with is_auto_refresh_enabled=true the OAuth token is automatically refreshed when older than 20 minutes.
Response (200).
{
"success": true,
"status": "success",
"message": "Retrieved 5 tool(s) from MCP server",
"data": {
"mcp_name": "splunk_mcp",
"mcp_type": "SPLUNK",
"mcp_server_url": "https://mcp.example.com/services/mcp",
"response_time_ms": 312,
"tool_count": 5,
"tools": [
{ "name": "search", "description": "Execute Splunk search" },
{ "name": "get_fields", "description": "Get field definitions" }
]
}
}
Example.
curl -sk -u "$SPLUNK_USER:$SPLUNK_PASSWORD" -X POST
-H "Content-Type: application/json"
--data '{"name":"splunk_mcp"}'
"$SPLUNK_HOST/servicesNS/nobody/Splunk_ML_Toolkit/mltk/mcp_connection/tools?output_mode=json"
Source. bin/rest_handlers/mcp_connection.py, bin/connection_config_manager/mcp/mcp_util.py.