public function get_item($request)
{
$tools = $this->get_tools();
if (empty($tools[$request['id']])) {
return new WP_Error('woocommerce_rest_system_status_tool_invalid_id', __('Invalid tool ID.', 'woocommerce'), array('status' => 404));
}
$tool = $tools[$request['id']];
return rest_ensure_response($this->prepare_item_for_response(array('id' => $request['id'], 'name' => $tool['name'], 'action' => $tool['button'], 'description' => $tool['desc']), $request));
}