/servicenow:debugging-mutationsfrom ServiceNow
Verifies ServiceNow mutations after tool calls using sys_audit, logs, Flow Designer execution traces, and HTTP transaction inspection. Essential for debugging what changed and why.
Ships in ServiceNow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When you've executed a tool against a ServiceNow instance and need to verify what actually happened — or diagnose why something didn't — these tools answer "what really changed and why". Use them after the fact, never as a substitute for picking the right tool in the first place.
| Tool | Purpose |
|---|---|
snow_inspect_mutations | Inspect record changes (INSERT/UPDATE/DELETE) since a timestamp via sys_audit |
snow_get_logs | Query platform logs with a time filter. Pass log_table to switch source: syslog (default), syslog_app_scope (scoped-app log), syslog_transaction (HTTP transactions), sys_script_execution_history (background-script traces) |
snow_session_context | Dump the authenticated user, roles, current update set, domain. Use before ACL-sensitive debugging — "is this failing because I lack a role?" |
snow_get_script_output | Output of previously executed scripts |
snow_trace_execution | Server-side script execution tracing |
snow_get_flow_execution_logs | Flow Designer execution history |
snow_get_inbound_http_logs | Inbound REST API call logs |
snow_get_outbound_http_logs | Outbound REST API call logs |
snow_audit_trail_analysis | Audit trail analysis with anomaly detection |
snow_manage_flow (with verify=true) | Verify a Flow Designer mutation immediately after running it |
"30s"snow_inspect_mutations with since=<timestamp> or since="30s"Flow Designer uses GraphQL mutations against sys_hub_* tables, which sys_audit does not record. Use the Flow Designer tool's own verification path instead:
verify=true to any snow_manage_flow mutation action — you get automatic post-mutation verificationsnow_manage_flow action=check_execution flow_id=<id> to inspect execution contexts, runs, and outputscheck_execution returns state, status, timing, errors, and output values from sys_flow_context, sys_hub_flow_run, and sys_hub_flow_output| Symptom | Tool to reach for |
|---|---|
| Script error | snow_get_logs with level="error" |
| Scoped-app log output | snow_get_logs with log_table="syslog_app_scope" |
snow_execute_script ran, output lost | snow_get_script_output with the execution_id — see background-script-execution |
| A human's Scripts - Background run, output lost | snow_get_logs with log_table="sys_script_execution_history" (only holds runs where "Record for rollback?" was ticked; never holds a Serac execution) |
| Permission-denied / unexpected 403 | snow_session_context to verify caller's roles + update set |
| Did the flow mutation work? | snow_manage_flow with verify=true |
| What's the flow execution status? | snow_manage_flow action=check_execution |
| What did the Table API actually change? | snow_inspect_mutations with a time window |
| Operation FAILED — what happened? | snow_inspect_mutations with include_syslog=true and include_transactions=true |
| Flow never started? | snow_get_flow_execution_logs |
| Outbound REST call failed? | snow_get_outbound_http_logs |
| Who did what when? | snow_audit_trail_analysis |
sys_audit — never expect to see them via snow_inspect_mutations. Use verify=true and check_execution instead.sys_audit only captures successful Table API / REST record changes. Failed operations leave no audit trail.sys_transaction_log (HTTP 4xx/5xx responses).sys_audit field values are limited to 255 characters — snow_inspect_mutations warns when values appear truncated.snapshot_record to fetch the current state of a record alongside the audit trail when you need the full picture.tables filter to focus on specific tables and reduce noise when there's a lot of activity on the instance.Debugging tools verify, they don't replace getting it right the first time. If you find yourself reaching for snow_inspect_mutations after every call, the underlying issue is usually:
snow_execute_script with raw GlideRecord instead of a dedicated tool"pending", "TBD") where real sys_ids are requiredFix the upstream pattern, then use these tools sparingly for the genuinely unclear cases.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub serac-labs/serac --plugin servicenow70 skills in this plugin
/acl-securityCreate and debug ServiceNow ACLs (record, field, REST, script-include). Covers role/condition/script patterns, which ACL names can apply to a table or field, field-level visibility, and impersonation testing for row- and field-level security./agent-workspaceBuild ServiceNow Agent Workspace configurations — workspaces, lists, forms, contextual side panels, Agent Assist similar-record finders, and workspace-specific UI actions on sys_aw_* tables./agile-developmentServiceNow Agile Development 2.0 — the rm_team → rm_sprint → rm_story → rm_epic model, the state and point values ServiceNow actually accepts, how a story is attached to a sprint, and the reporting tools (board, burndown, velocity, capacity, standup, retrospective)./approval-workflowsConfigure ServiceNow approval rules and sysapproval_approver records — manager/group/script approvers, multi-level routing, delegation via sys_user_delegate, and parent-record state rollup./asset-managementManage ServiceNow hardware assets, software licenses, and lifecycle states on alm_hardware/alm_license — license allocation, CMDB-to-asset linking, warranty tracking, inventory aggregation (HAM/SAM)./atf-testingBuild ServiceNow Automated Test Framework tests and suites — impersonation, form steps, assertions, server-side script steps, test parameters, and execution via snow_create_atf_test / snow_execute_atf_test.Other plugins' skills for the same job