create_login_grant
Generate a one-time SSO login URL for a user to access AgencyAnalytics without a password, enabling embedded reports or custom login pages.
Instructions
Generate an SSO login token for a user.
Creates a one-time login URL that can be used to log a user into AgencyAnalytics without requiring their password. Useful for embedding reports or creating custom login pages.
Args: user_id: The user ID to generate a login token for
Returns: JSON object with login token, URL, and expiration info
Examples: - create_login_grant(user_id=456) - Generate SSO link for user 456
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": {
"user_id": "<user_id>"
},
"name": "create_login_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |