Update DSN
update_dsnModify a Sentry project's DSN client key by renaming it, enabling or disabling event intake, adjusting rate limits, or changing JavaScript Loader Script settings.
Instructions
Update a DSN (client key) on a Sentry project: rename it, activate or deactivate it, set or remove its rate limit, or change JavaScript Loader Script options. Returns the settings Sentry saved; tell the user if any requested setting did not change.
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": {
"projectSlug": "<projectSlug>",
"keyId": "<keyId>"
},
"name": "update_dsn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New key name. | |
| keyId | Yes | Client key ID from find_dsns. | |
| isActive | No | False stops the key from accepting events. | |
| regionUrl | No | ||
| projectSlug | Yes | The project slug. In `org/project` notation, the part after the slash. | |
| loaderHasDebug | No | Loader Script: use the debug bundle with SDK logging. | |
| rateLimitCount | No | Maximum events accepted per window. Requires rateLimitWindow. | |
| loaderHasReplay | No | Loader Script: enable Session Replay. | |
| rateLimitWindow | No | Rate limit window in seconds. Requires rateLimitCount. | |
| disableRateLimit | No | True removes the rate limit. Do not combine with rateLimitWindow or rateLimitCount. | |
| organizationSlug | No | The organization slug, from `find_organizations`. In `org/project` notation, the part before the slash. | |
| browserSdkVersion | No | JavaScript SDK version the Loader Script serves, such as `latest` or `8.x`. | |
| loaderHasFeedback | No | Loader Script: enable User Feedback. | |
| loaderHasPerformance | No | Loader Script: enable tracing (performance monitoring). | |
| loaderHasLogsAndMetrics | No | Loader Script: enable logs and metrics. Requires SDK 10.0.0 or later. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsn | Yes |