support queries via agent api calls