How is it forbidden? I tell agents to use my wrappers in AGENTS but they ignore it half the time and use the naked tool.
~/agent-shims/mvn:
#!/bin/bash
echo "Usage of 'mvn' is forbidden. Use build.sh or run-tests.sh"
That way it is prevented from using the wrong tools, and can self-correct when it tries.