faostat_refresh_token
Refresh expired FAOSTAT API authentication token to resolve 401 Unauthorized errors. Logs in with configured credentials to obtain a fresh JWT token.
Instructions
Force-refresh the FAOSTAT API authentication token.
Use this tool when other FAOSTAT tools fail with 401 Unauthorized or token-expiry errors. It logs in with the configured credentials (FAOSTAT_USERNAME + FAOSTAT_PASSWORD) and obtains a fresh JWT token.
Requires FAOSTAT_USERNAME and FAOSTAT_PASSWORD to be configured — either as environment variables or via faostat_setup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |