1.1 KiB
1.1 KiB
| description | allowed-tools |
|---|---|
| Show the MozOut API key mode, its permissions and the AI credit balance, without printing the key. | Bash(curl:*), Bash(test:*) |
Check the user's MozOut setup and give a short summary. Never print, echo or log the key.
- Run
test -n "$MOZOUT_API_KEY" && echo set || echo missing. - If it is set, run:
curl -sS "https://api.mozout.com/v1/token" -H "Authorization: Bearer $MOZOUT_API_KEY"and reportdata.mode(sandbox or production),data.permissions,data.expires_atand the spending limit indata.spending. Do not showdata.suffixor any part of the key. - If the
mozout-aiMCP server is connected, call itsget_balancetool and report the AI credits. Otherwise run:curl -sS "https://api.mozout.com/v1/ai/balance" -H "Authorization: Bearer $MOZOUT_API_KEY" - If the key is missing or answers
401, explain how to create one in the API Center (https://www.my.mozout.com/api-center.php) and set it withexport MOZOUT_API_KEY="sandbox_...".
Answer in the language the user writes in, in five lines or fewer.