Set ServiceNow credentials
servicenow_set_credentialsSave ServiceNow connection credentials to the env file for later REST API requests; set auth method, profile, and host, and pass secrets via elicitation, not arguments.
Instructions
Save connection credentials to the env file for later requests (any subset; auth / oauth_client_id / oauth_grant pick the method). Secrets are never arguments: list them in request_secrets for elicitation. See 'instance' for host changes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "servicenow_set_credentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Stored as SN_AUTH (default: inferred). | |
| user | No | ServiceNow username. | |
| profile | No | Profile (default active); a new name creates one. | |
| instance | No | Instance host, e.g. 'dev12345'. A change needs the new host's auth in the same call (Basic: user + password, else CREDENTIALS_INCOMPLETE) and elicitation confirmation unless SN_ALLOW_UNCONFIRMED_CREDENTIAL_CHANGE=1. | |
| password | No | ServiceNow password. | |
| oauth_grant | No | Stored as SN_OAUTH_GRANT. | |
| oauth_client_id | No | OAuth client id (not a secret). | |
| request_secrets | No | Secrets to enter through elicitation (never as arguments). |