servicenow-nodejs
v2.1.1Multi-instance ServiceNow MCP server with 40+ tools and intelligent schema discovery
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
SN-Set-Instance
Switch to a different ServiceNow instance. Use this at the start of your session to target a specific instance (dev, test, prod, etc.). Lists available instances if no name provided.
| Parameter | Type | Description |
|---|---|---|
instance_name | string | Name of the instance to switch to (e.g., "dev", "prod", "test"). Leave empty to list available instances. |
SN-Get-Current-Instance
Get information about the currently active ServiceNow instance
SN-Query-Table
Query any ServiceNow table by name with flexible filtering
| Parameter | Type | Description |
|---|---|---|
table_name * | string | ServiceNow table name (e.g., "incident", "sys_user", "cmdb_ci") (required) |
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-priority" for descending) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=1^priority=1") (optional) |
SN-Create-Record
Create a record in any ServiceNow table by name. WARNING: For catalog_ui_policy_action table, fields ui_policy and catalog_variable cannot be set via REST API - use SN-Execute-Background-Script with setValue() after creation.
| Parameter | Type | Description |
|---|---|---|
data * | object | Record data as key-value pairs (e.g., {"short_description": "Test", "priority": 1}) (required) |
table_name * | string | ServiceNow table name (e.g., "incident", "sys_user", "cmdb_ci") (required) |
SN-Get-Record
Get a specific record from any ServiceNow table by sys_id
| Parameter | Type | Description |
|---|---|---|
sys_id * | string | System ID of the record to retrieve (required) |
table_name * | string | ServiceNow table name (e.g., "incident", "sys_user", "cmdb_ci") (required) |
fields | string | Comma-separated list of fields to return (optional) |
SN-Update-Record
Update a record in any ServiceNow table by sys_id
| Parameter | Type | Description |
|---|---|---|
data * | object | Record data to update as key-value pairs (e.g., {"state": 6, "resolution_notes": "Fixed"}) (required) |
sys_id * | string | System ID of the record to update (required) |
table_name * | string | ServiceNow table name (e.g., "incident", "sys_user", "cmdb_ci") (required) |
SN-Get-Table-Schema
Get the schema/metadata for any ServiceNow table including required fields, common fields, and field descriptions
| Parameter | Type | Description |
|---|---|---|
table_name * | string | ServiceNow table name (required) |
SN-List-Available-Tables
List all available ServiceNow tables with their descriptions and capabilities
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category: "core_itsm", "platform", "service_catalog", "cmdb", or "all" (optional) |
SN-List-Incidents
List Incident records with filtering and pagination
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-priority" for descending) (optional) |
priority | number | Filter by priority (1-5) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=1^priority=1") (optional) |
state | string | Filter by state (e.g., "New", "In Progress", "Resolved") (optional) |
SN-Create-Incident
Create a new Incident
| Parameter | Type | Description |
|---|---|---|
short_description * | string | short description (required) |
assigned_to | string | assigned to (optional) |
assignment_group | string | assignment group (optional) |
caller_id | string | caller id (optional) |
category | string | category (optional) |
description | string | description (optional) |
impact | string | impact (optional) |
priority | string | priority (optional) |
state | string | state (optional) |
subcategory | string | subcategory (optional) |
sys_created_by | string | sys created by (optional) |
sys_created_on | string | sys created on (optional) |
sys_updated_by | string | sys updated by (optional) |
sys_updated_on | string | sys updated on (optional) |
urgency | string | urgency (optional) |
work_notes | string | work notes (optional) |
SN-Get-Incident
Get a Incident by ID
| Parameter | Type | Description |
|---|---|---|
sys_id * | string | System ID |
SN-List-SysUsers
List Sys User records with filtering and pagination
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-priority" for descending) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=1^priority=1") (optional) |
SN-List-CmdbCis
List Cmdb Ci records with filtering and pagination
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-priority" for descending) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=1^priority=1") (optional) |
SN-List-SysUserGroups
List Sys User Group records with filtering and pagination
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-priority" for descending) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=1^priority=1") (optional) |
SN-List-ChangeRequests
List Change Request records with filtering and pagination
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-priority" for descending) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=1^priority=1") (optional) |
state | string | Filter by change state (optional) |
type | string | Filter by change type (e.g., "Normal", "Emergency") (optional) |
SN-Set-Update-Set
Generate a fix script to set the current update set using GlideUpdateSet API. Cannot be done via REST API - creates script file for manual execution in ServiceNow UI.
| Parameter | Type | Description |
|---|---|---|
update_set_sys_id * | string | System ID of the update set to make current (required) |
SN-Get-Current-Update-Set
Get the currently active update set
SN-List-Update-Sets
List available update sets
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-sys_created_on" for descending) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=in progress") (optional) |
SN-Set-Current-Application
Set the current application scope using the UI API. This changes which application is active for development and configuration changes.
| Parameter | Type | Description |
|---|---|---|
app_sys_id * | string | System ID of the application to make current (required) |
SN-List-Problems
List Problem records with filtering and pagination
| Parameter | Type | Description |
|---|---|---|
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
offset | number | Number of records to skip for pagination (optional) |
order_by | string | Field to sort by (e.g., "created_on" or "-priority" for descending) (optional) |
query | string | ServiceNow encoded query string (e.g., "state=1^priority=1") (optional) |
SN-Natural-Language-Search
Search ServiceNow records using natural language queries. Converts human-readable queries into ServiceNow encoded queries and executes them. Supports: Priority (P1-P5, high/low), Assignment (assigned to me, unassigned, assigned to <name>), Dates (created today, last 7 days, recent), States (new/open/closed/in progress), Content (about SAP, containing error), Impact/Urgency (high/medium/low), Numbers (number is INC0012345). Examples: "find all P1 incidents", "show recent problems assigned to me", "high priority changes created last week", "open incidents about SAP", "unassigned P2 incidents cre…
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language query (e.g., "high priority incidents assigned to me", "recent problems about database") (required) |
fields | string | Comma-separated list of fields to return (optional) |
limit | number | Maximum number of records to return (default: 25) |
order_by | string | Field to sort by (e.g., "sys_created_on" or "-priority" for descending) (optional) |
show_patterns | boolean | Include pattern matching details in response (default: true) |
table | string | Target ServiceNow table name (default: "incident"). Common tables: incident, problem, change_request, sys_user, cmdb_ci |
SN-Execute-Background-Script
🚀 EXECUTES background scripts with THREE methods: (1) sys_trigger [DEFAULT & MOST RELIABLE] - Creates scheduled job that runs in 1 second and auto-deletes, (2) UI endpoint (sys.scripts.do) - Attempts direct execution via UI, (3) Fix script - Manual fallback. Use for: setting update sets, complex GlideRecord operations, GlideUpdateSet API calls, etc. The sys_trigger method is most reliable and works consistently!
| Parameter | Type | Description |
|---|---|---|
script * | string | JavaScript code to execute (required) |
description | string | Description of what the script does (optional) |
execution_method | string | Execution method: "trigger" (default - most reliable), "ui" (UI endpoint), "auto" (try trigger then ui then fix script) |
SN-Create-Fix-Script
⚠️ CREATES (not executes) a fix script file for MANUAL execution. ServiceNow REST API does NOT support direct script execution. This tool generates a .js file in /scripts/ directory with full instructions and optional auto-delete flag. You MUST manually copy and run the script in ServiceNow UI: System Definition → Scripts - Background. Use for: linking UI Policy Actions, setting update sets, complex GlideRecord operations that cannot be done via REST API.
| Parameter | Type | Description |
|---|---|---|
script_content * | string | JavaScript code content (required) |
script_name * | string | Name for the script file (e.g., "link_ui_policy_actions") (required) |
auto_delete | boolean | If true, script file will be deleted after you confirm execution (default: false) |
description | string | Description of what the script does (optional) |
SN-Discover-Table-Schema
Deep schema introspection with ServiceNow-specific metadata including type codes, choice tables, and relationships
| Parameter | Type | Description |
|---|---|---|
table_name * | string | ServiceNow table name (required) |
include_business_rules | boolean | Show business rules for this table (optional) |
include_choice_tables | boolean | Show which choice tables to use (optional) |
include_field_constraints | boolean | Show field validations and defaults (optional) |
include_relationships | boolean | Show parent/child table relationships (optional) |
include_type_codes | boolean | Show internal type codes (e.g., 1=Choice, 5=Select Box) (optional) |
include_ui_policies | boolean | Show UI policies affecting this table (optional) |
SN-Batch-Create
Create multiple related records in one operation with variable references and transactional support. Reports progress during execution.
| Parameter | Type | Description |
|---|---|---|
operations * | array | Array of create operations. Each operation can reference previous operations via ${save_as_name} |
progress | boolean | Report progress notifications (default: true) |
transaction | boolean | All-or-nothing transaction (default: true) |
SN-Batch-Update
Update multiple records efficiently in a single operation. Reports progress during execution.
| Parameter | Type | Description |
|---|---|---|
updates * | array | Array of update operations |
progress | boolean | Report progress notifications (default: true) |
stop_on_error | boolean | Stop processing on first error (default: false) |
SN-Explain-Field
Get comprehensive explanation of a specific field including type, constraints, and known issues
| Parameter | Type | Description |
|---|---|---|
field * | string | Field name (required) |
table * | string | Table name (required) |
include_examples | boolean | Include usage examples (default: true) |
SN-Validate-Configuration
Validate catalog item configuration including variables, UI policies, and business rules
| Parameter | Type | Description |
|---|---|---|
catalog_item * | string | Catalog item sys_id (required) |
checks | object | Validation checks to perform |
SN-Inspect-Update-Set
Inspect update set contents and verify completeness
| Parameter | Type | Description |
|---|---|---|
update_set * | string | Update set sys_id (required) |
show_components | boolean | Show component breakdown (default: true) |
show_dependencies | boolean | Show missing dependencies (default: false) |
SN-Create-Workflow
Create a complete ServiceNow workflow with activities, transitions, and conditions. This tool orchestrates the entire workflow creation process: base workflow → version → activities → transitions → publish. Reports progress during creation.
| Parameter | Type | Description |
|---|---|---|
activities * | array | Array of activity definitions |
name * | string | Workflow name (required) |
table * | string | Table this workflow runs against (e.g., "incident", "change_request") |
condition | string | Condition for workflow to trigger (e.g., "state=1^priority=1") (optional) |
description | string | Workflow description (optional) |
progress | boolean | Report progress notifications (default: true) |
publish | boolean | Publish workflow after creation (default: false) |
transitions | array | Array of transition definitions (connects activities) |
SN-Create-Activity
Create a single workflow activity with embedded JavaScript code. Use this for adding activities to existing workflows.
| Parameter | Type | Description |
|---|---|---|
name * | string | Activity name (required) |
workflow_version_sys_id * | string | Workflow version sys_id (required) |
activity_definition_sys_id | string | Activity type sys_id (optional - defaults to generic activity) |
script | string | JavaScript code to execute in this activity (optional) |
x | number | X coordinate on canvas (default: 100) |
y | number | Y coordinate on canvas (default: 100) |
SN-Create-Transition
Create a transition between two workflow activities with optional condition
| Parameter | Type | Description |
|---|---|---|
from_activity_sys_id * | string | From activity sys_id (required) |
to_activity_sys_id * | string | To activity sys_id (required) |
condition_script | string | JavaScript condition for this transition (optional) |
order | number | Transition order (default: 1) |
SN-Publish-Workflow
Publish a workflow version, setting the start activity and making it active
| Parameter | Type | Description |
|---|---|---|
start_activity_sys_id * | string | Starting activity sys_id (required) |
version_sys_id * | string | Workflow version sys_id (required) |
SN-Move-Records-To-Update-Set
Move sys_update_xml records to a different update set. Supports filtering by sys_ids, time range, or source update set. Extremely useful when records end up in wrong update set (e.g., "Default" instead of custom set). Reports progress during move operation.
| Parameter | Type | Description |
|---|---|---|
update_set_id * | string | Target update set sys_id to move records to (required) |
progress | boolean | Report progress notifications (default: true) |
record_sys_ids | array | Array of sys_update_xml sys_ids to move (optional) |
source_update_set | string | Filter by source update set name (e.g., "Default") (optional) |
table | string | Table name (default: sys_update_xml) |
time_range | object | Time range to filter records (optional - format: YYYY-MM-DD HH:MM:SS) |
SN-Clone-Update-Set
Clone an entire update set with all its sys_update_xml records. Creates a complete copy for backup, testing, or branching development work. Reports progress during cloning operation.
| Parameter | Type | Description |
|---|---|---|
new_name * | string | Name for the new cloned update set (required) |
source_update_set_id * | string | Source update set sys_id to clone (required) |
progress | boolean | Report progress notifications (default: true) |
SN-Add-Comment
Add a comment to an incident. Accepts incident number for better UX.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment text to add (required) |
incident_number * | string | Incident number (e.g., "INC0012345") (required) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Add-Work-Notes
Add work notes to an incident. Accepts incident number for better UX.
| Parameter | Type | Description |
|---|---|---|
incident_number * | string | Incident number (e.g., "INC0012345") (required) |
work_notes * | string | Work notes text to add (required) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Assign-Incident
Assign an incident to a user and/or group. Resolves user names automatically.
| Parameter | Type | Description |
|---|---|---|
assigned_to * | string | User name or sys_id to assign to (required) |
incident_number * | string | Incident number (e.g., "INC0012345") (required) |
assignment_group | string | Assignment group name or sys_id (optional) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Resolve-Incident
Resolve an incident with resolution notes and code.
| Parameter | Type | Description |
|---|---|---|
incident_number * | string | Incident number (e.g., "INC0012345") (required) |
resolution_notes * | string | Resolution notes describing the fix (required) |
instance | string | Instance name (optional, uses default if not specified) |
resolution_code | string | Resolution code (e.g., "Solved (Permanently)", "Solved (Work Around)") (optional) |
SN-Close-Incident
Close an incident with close notes and code.
| Parameter | Type | Description |
|---|---|---|
close_notes * | string | Close notes (required) |
incident_number * | string | Incident number (e.g., "INC0012345") (required) |
close_code | string | Close code (e.g., "Solved (Permanently)", "Solved (Work Around)") (optional) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Add-Change-Comment
Add a comment to a change request. Accepts change number for better UX.
| Parameter | Type | Description |
|---|---|---|
change_number * | string | Change request number (e.g., "CHG0012345") (required) |
comment * | string | Comment text to add (required) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Assign-Change
Assign a change request to a user and/or group.
| Parameter | Type | Description |
|---|---|---|
assigned_to * | string | User name or sys_id to assign to (required) |
change_number * | string | Change request number (e.g., "CHG0012345") (required) |
assignment_group | string | Assignment group name or sys_id (optional) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Approve-Change
Approve a change request.
| Parameter | Type | Description |
|---|---|---|
change_number * | string | Change request number (e.g., "CHG0012345") (required) |
approval_comments | string | Comments for the approval (optional) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Add-Problem-Comment
Add a comment to a problem. Accepts problem number for better UX.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment text to add (required) |
problem_number * | string | Problem number (e.g., "PRB0012345") (required) |
instance | string | Instance name (optional, uses default if not specified) |
SN-Close-Problem
Close a problem with resolution information.
| Parameter | Type | Description |
|---|---|---|
problem_number * | string | Problem number (e.g., "PRB0012345") (required) |
resolution_notes * | string | Resolution notes (required) |
instance | string | Instance name (optional, uses default if not specified) |
resolution_code | string | Resolution code (optional) |