check_credentials
Validate GAM OAuth credentials and scopes at session start to avoid operation failures. Re-authorize if invalid.
Instructions
Verify that the GAM OAuth credentials for a network are still valid and have required scopes.
MODE: read-only AUTH: OAuth 2.0 required CREDITS: 0 (free) OUTPUT: Returns {valid: boolean, scopes: string[], expires_at: datetime, error?: string} WHEN TO USE: Call at the start of a session to verify credentials before running operations. If valid=false, call initiate_gam_auth to re-authorize.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network_code": "<network_code>"
},
"name": "check_credentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_code | Yes | GAM network code to check. |