agent: Prevent the use of the InternalQueryPrefix