sn_mcp_delete_server
Deletes an MCP Server Console server and, by default, removes its related OAuth, AutoGen, ACL, and ServiceNow-created records. Refuses out-of-box servers and returns undeletable records as leftovers.
Instructions
Delete an MCP Server Console server and, by default, the OAuth client, AutoGen provider/alias/connection/credential, WDF mapping, execute ACL and AI Control Tower records ServiceNow created for it. Tool definitions are detached, not deleted. Out-of-box (scoped) servers are refused. Records this user cannot delete (the ACL needs security_admin) are returned as leftovers with sys_ids. REQUIRES WRITE_ENABLED=true.
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": {
"server": "<server>"
},
"name": "sn_mcp_delete_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name, label or sys_id | |
| cleanup_auto_created | No | Also delete the records ServiceNow auto-created on activation (default true) |