Like
@Oofta indicated, if more detail is required, the DM can call for it. But if it isn't, the DM could let things slide with a simple skill check. (At some point, of course, you wonder why bother if it's just gonna be a low-level-of-detail die roll.)
Player: "I search the room. <rolls die> I got a 27."
DM: "Hold up there sparky. You can't just go rolling ability checks with no context, so that roll doesn't count for anything. How do you go about searching the room? There's a desk, two bookcases, and a wardrobe, among other things."
The player could take that request for detail as a hint that searching the room might be risky, which is metagaming, but all RPGs hit that snare in their own ways.
And of course, the DM could interpret "I search the room" at face value as being pretty exhaustive, meaning the PC did touch the mimic. If they player then complains (after declaring such a sweeping general action and rolling their die without acknolwedgment), the DM is somewhat justified in saying "You should have specified."