We don't use the context_id value, but we do reference the custom_canvas_course_id in the URL, such as "https://canvas.icommons.harvard.edu/courses/5958/external_tools/148", i.e., where the custom_canvas_course_id is: u'custom_canvas_course_id': u'5958'.  This is the value that gets saved to the Canvas database.