1,1 KiB
1,1 KiB
| description | allowed-tools |
|---|---|
| Show the Interweb Mozambique API key mode, its permissions and the AI credit balance, without printing the key. | Bash(curl:*), Bash(test:*) |
Check the user's Interweb Mozambique setup and give a short summary. Never print, echo or log the key.
- Run
test -n "$INTERWEB_API_KEY" && echo set || echo missing. - If it is set, run:
curl -sS "https://api.interweb.co.mz/v1/token" -H "Authorization: Bearer $INTERWEB_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
interweb-aiMCP server is connected, call itsget_balancetool and report the AI credits. Otherwise run:curl -sS "https://api.interweb.co.mz/v1/ai/balance" -H "Authorization: Bearer $INTERWEB_API_KEY" - If the key is missing or answers
401, explain how to create one in the API Center (https://www.meu.interweb.co.mz/api-center.php) and set it withexport INTERWEB_API_KEY="sandbox_...".
Answer in the language the user writes in, in five lines or fewer.