Create OAuth Tool Credential
lyzr_create_oauth_tool_credentialCreate an OAuth credential for a provider, defining client details, scopes, and grant type to enable authenticated tool access.
Instructions
Create an OAuth tool credential for a provider.
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": {
"credential_name": "<credential_name>",
"user_id": "<user_id>",
"provider_uuid": "<provider_uuid>"
},
"name": "lyzr_create_oauth_tool_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | OAuth scope string | |
| user_id | Yes | Owning user id | |
| client_id | No | OAuth client id | |
| tenant_id | No | Tenant id, if applicable | |
| token_url | No | OAuth token URL | |
| grant_type | No | OAuth grant type (default authorization_code) | |
| credentials | No | Additional credential payload | |
| redirect_url | No | OAuth redirect URL | |
| client_secret | No | OAuth client secret | |
| provider_uuid | Yes | Provider identifier | |
| credential_name | Yes | Name for the credential |