I have a question

As stated above, what you provided was not a custom context. You would need a custom context to call the AGI. Or you could call it in the GUI using a Dynamic Route.

Dynamic Routes User Guide - PBX GUI - Documentation (freepbx.org)

Using Dynamic Routes with an AGI file - FreePBX / Tips and Tricks - FreePBX Community Forums

9. The Asterisk Gateway Interface (AGI) - Asterisk: The Future of Telephony, 2nd Edition [Book] (oreilly.com)

You would need to make sure the user asterisk has permissions to run the AGI.