Improved get_schema to use request params