Upsert integration
upsert_integrationStore OAuth credentials for one organization-wide integration, keyed by name: creates the record, or overwrites the access token, refresh token and expiry of an existing one, so repeat calls never duplicate. Saving marks the integration connected and clears its failure count, which revives one that needed reconnecting. Admin only (403 for members). Returns { name, expiresAt, updatedAt }; tokens are not echoed. Use get_integration to check what is stored.
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": {
"name": "<name>",
"accessToken": "<accessToken>",
"refreshToken": "<refreshToken>"
},
"name": "upsert_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Integration key, unique per organization, e.g. "eloovor". An existing record with this name is overwritten. | |
| expiresAt | No | When the access token expires, as an ISO 8601 date string. Omitting it clears any stored expiry. | |
| accessToken | Yes | OAuth access token issued by the third-party service; replaces any stored one. | |
| refreshToken | Yes | OAuth refresh token issued by the third-party service; replaces any stored one. |