servicenow-mcp-ai
An MCP server that lets an MCP client read, analyze, document, and (plan-first) modify a ServiceNow instance through its REST APIs.
Query and read records from any table (
servicenow_query_table,servicenow_get_record) with encoded queries, field selection, pagination, CSV output andfetchAll.Write records safely — create, update, delete (
servicenow_create_record,servicenow_update_record,servicenow_delete_record), plan-by-default with a non-mutating before/after preview unlessapply: true.Inspect schema and metadata with
servicenow_list_tablesandservicenow_describe_table(columns, types, references).Run server-side aggregates (count, avg, min, max, sum, grouping, HAVING) via
servicenow_aggregate, avoiding full row fetches.Manage attachments — list, read metadata, download (base64) and upload/delete files on records.
Configure credentials and profiles —
servicenow_set_credentials,servicenow_list_instances,servicenow_use_instanceto switch instances per call or session.Verify and audit the connection —
servicenow_test_connection,servicenow_get_status(auth mode, policy, telemetry, no secrets) andservicenow_check_capabilitiesfor readable sys_* tables.Go far beyond the core set (README's 97 tools): script intelligence and where-used, flow/event tracing, CMDB, Service Catalog, Change Management, Knowledge, Import Sets, Batch API, linting/code health, drift comparison, Mermaid diagram and docs generation, update sets, change history, ops/data health, directory lookups, ATF runs, journaled revert, and reusable prompts/skills.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@servicenow-mcp-aiShow me all open incidents with priority 1"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
servicenow-mcp-ai — ServiceNow MCP Server
A Model Context Protocol server that lets an MCP client (VS Code, Claude Desktop, etc.) run commands against a ServiceNow instance through its REST APIs — Table, Aggregate, Attachment, Import Set, Batch and CMDB, plus the Service Catalog, Change Management and Knowledge plugin APIs. Credentials are kept in a local env file and can be updated at runtime through a tool.
Upgrading from 2.x? 3.0 has breaking defaults (plan tokens for destructive applies, protected system tables, a smaller default tool set). Run
npx servicenow-mcp-ai migrate --writeonce: it carries your env file and MCP client config over and addsSN_COMPAT=2, which keeps every 2.x default you have not set. See the CHANGELOG → "Migration at a glance" for each change.
Upgrading from 1.x? v2.0 makes writes plan-by-default:
create/update/deleteand the other record-write tools return a non-mutating preview unless you passapply: true(or setSN_WRITE_MODE=applyto restore the v1 "execute immediately" behaviour). See the CHANGELOG → 2.0.0 for the full migration note.
Contents: Quick demo · Features · Requirements · Setup · Configure credentials · Run / debug · Develop · Tools · Resources · Prompts · Project structure · Security notes · Project documentation · Support
Built and maintained in my own time — if it helps, a GitHub Sponsors tip keeps it going. Full Support options are near the end.
Quick demo
Three things the platform makes hard, one call each. Point your MCP client at an instance (Setup) and ask:
1. "Where is this field actually used?" — every script, business rule, client script, UI policy/action and ACL that touches it, as JSON or a Mermaid graph. The IDE-grade find usages ServiceNow has no button for:
// servicenow_where_used
{
"kind": "field", // "table" | "field" | "script"
"name": "u_cost_center",
"mermaid": true, // also render a reference graph
}2. "What runs when I save this record?" — the full automation chain in execution order (display → before → after → async business rules, then flows, workflows and notifications), each with its condition — a logical test that runs nothing:
// servicenow_trace_table_event
{
"table": "incident",
"operation": "update", // insert | update | delete | query
}3. "What drifted between dev and prod?" — a Markdown diff of tables, columns, scripts (matched by sys_id then name, with a unified diff of every changed script) and plugins between two configured profiles — plus, on request, properties, choices, ACLs, notifications, flows, catalog items and roles — with a CI-friendly exit code so a pipeline can block a risky deploy:
servicenow-mcp-ai drift dev prod # report on stdout; exit 1 on drift, 0 if cleanAll three are read-only and work against any instance — including a free PDI — with the model and client of your choice.
Related MCP server: @onlyflows/servicenow-mcp
Features
Full Table API: query, read, create, update and delete records on any table, with encoded queries, field selection and pagination.
Extra ServiceNow APIs: Aggregate (Stats), Attachment (list/upload/download/delete), Import Set, Batch (many REST calls in a single request), plus table/column metadata (
sys_db_object,sys_dictionary).Process & plugin APIs: CMDB (class-aware CI CRUD + meta, relationship reads from
cmdb_rel_ci, IRE identify-and-reconcile with an identify-only plan), Service Catalog (browse/order items), Change Management (typed creation + conflict detection) and Knowledge (article search). Plugin-scoped APIs report clearly when not active on the instance.Script intelligence: read and search the instance's own code (business rules, script includes, client scripts, UI policies/actions, scheduled jobs, transform/REST scripts, ACLs, Service Portal widgets, UI pages/scripts/macros, processors, email/fix/ validation scripts, script actions, data sources, REST message functions, transform maps/entries, catalog client scripts and dictionary calculations / defaults) and get a table's full automation picture — all read-only over the Table API.
servicenow_search_codereturns every matching line per artefact (up to 20, with a line of context either side) and, likeservicenow_where_used, takes an optional applicationscope.servicenow_where_usedalso finds structural references — dictionary reference fields, list and form layouts, catalog variables, flow inputs and reports — in a separatestructuralsection.Flow tracing & code checking (Phase 8): deterministically trace what a table operation runs (
flowspackage — business rules, flows, workflows and notifications, in order, with a Mermaid flowchart), read Flow Designer flows and run history, explain Process Automation Designer playbooks (servicenow_explain_flowwithkind: "playbook"— lanes as Mermaid subgraphs, activities, triggers, variants), and lint scripts against a local rule set with an aggregate code-health report (codecheck;domains: trueadds the flow, Service Portal and legacy-workflow analysers). Run ATF tests via the CI/CD API (atf, opt-in, non-default — the run tools execute on the instance).Journal-based undo (
revert): list the local write journal and revert one applied create/update/delete — with a drift check against later edits.Generic artifact reads (
artifacts, opt-in): list and read any registered artifact type — UI policies with their actions, portal pages with their layout, flows, catalog items and more — with scope and SDK-managed status.Update-set awareness (
updatesets, opt-in): list update sets, summarise one set per artefact, compare it with another profile or a snapshot — and bind applied Table writes to a named update set (update_set/SN_UPDATE_SET), restoring the user's current set afterwards.Operations and data health (
ops, opt-in): bounded "why is it slow" reads of the system log, the scheduler queue, the outbound email queue and semaphores, plusservicenow_check_data_health— duplicate keys, orphaned and stale references for one table, from Aggregate API counts.Operations reads (opt-in): a record's change history from
sys_auditandsys_journal_field(history— including the comments and work notes the Table API reads back empty), system properties with masked secrets and a journaled, revertible set (properties), and user / group / role lookups with memberships (directory). ATF runs can wait for their result (wait_seconds), and Import Set inserts report the transform run and maps.Self-documentation: a local Markdown knowledge base (read/write/search) plus deterministic Mermaid generators (ER diagrams from references, record-lifecycle flowcharts from business rules) so the server builds durable, reusable context.
Prompts: ready-made workflows (incident triage, change impact analysis, document a table, diagnose a slow instance, safe write, drift review, schema impact, instance discovery) that orchestrate the tools; every plugin skill has a prompt twin for clients without the plugin.
Tool packages: load only the tool groups you need via
SN_TOOL_PACKAGES(default profilediscovery;allenables everything).Basic or OAuth 2.0 authentication over HTTPS; the password/token is never echoed back.
Least-privilege controls: table allow/deny lists and a global read-only mode.
Resilience: per-request timeout, retry with backoff and
Retry-After, SSRF guard, and a result-size guard.MCP tool annotations and resources, structured error payloads, and structured logging on stderr.
Credentials in an env file (project,
~/.config, orSN_ENV_FILE), updatable at runtime viaservicenow_set_credentials.
Requirements
Node.js 22.12+ (enforced:
engines+ a runtime guard with a clear message; the project targets the version in.nvmrc).
Setup
From source (for development):
npm install
npm run buildOr run the published package directly, without cloning:
npx servicenow-mcp-aiInstall in your MCP client
Every client launches the same stdio command, npx -y servicenow-mcp-ai (Node.js 22.12+),
under the server name servicenow. The one-click links and snippets below carry no
credentials: keep them in the env file (~/.config/servicenow-mcp-ai/.env, see
Configure credentials), run the one-time
npx servicenow-mcp-ai login for OAuth, or ask the assistant to call
servicenow_set_credentials once the server is connected. A real environment variable
set in a client config overrides the env file, so only add an env block when you
mean it — and never put SN_PASSWORD or other secrets into a client config you share
or commit (see SECURITY.md).
Client | One line | Config file |
VS Code (Copilot Chat) | Button above, or |
|
VS Code Insiders | Button above, or |
|
Claude Code |
|
|
Claude Desktop | — (edit the config file) |
|
Cursor | Button above, or the |
|
Windsurf | — (edit the config file) |
|
Cline | — (MCP Servers → Configure MCP Servers) |
|
Zed | — (edit settings) |
|
JetBrains AI Assistant | — (Settings → Tools → AI Assistant → Model Context Protocol) | JSON dialog ( |
Gemini CLI | — (edit settings) |
|
Codex CLI |
|
|
The zero-config route is the ServiceNow MCP extension from the Marketplace
(code --install-extension ivanbbaev.servicenow-mcp-ai); it registers the server in
Copilot Chat (agent mode) automatically, no mcp.json. Source: extension/.
Without the extension, add the server from a terminal (user profile):
code --add-mcp '{"name":"servicenow","command":"npx","args":["-y","servicenow-mcp-ai"]}'
code-insiders --add-mcp '{"name":"servicenow","command":"npx","args":["-y","servicenow-mcp-ai"]}'The raw deeplinks behind the buttons (paste into a browser address bar):
vscode:mcp/install?%7B%22name%22%3A%22servicenow%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22servicenow-mcp-ai%22%5D%7D
vscode-insiders:mcp/install?%7B%22name%22%3A%22servicenow%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22servicenow-mcp-ai%22%5D%7DOr a workspace file, .vscode/mcp.json:
{
"servers": {
"servicenow": {
"type": "stdio",
"command": "npx",
"args": ["-y", "servicenow-mcp-ai"]
}
}
}Plugin (zero-config — installs the server wired up):
/plugin marketplace add IvanBBaev/servicenow-mcp-ai
/plugin install servicenow-mcp-aiThe plugin also ships eight workflow skills, two read-only subagents and three hooks — see Plugin skills.
CLI — --scope user makes it available in every project; --env sets a
non-secret variable (the instance host) and leaves the secrets in the env file. A value set
this way wins over the env file, so drop --env if you switch instances with
servicenow_set_credentials:
claude mcp add servicenow --scope user --env SN_INSTANCE=your-instance.service-now.com -- npx -y servicenow-mcp-aiclaude_desktop_config.json — macOS ~/Library/Application Support/Claude/, Windows
%APPDATA%\Claude\ (Settings → Developer → Edit Config):
{
"mcpServers": {
"servicenow": {
"command": "npx",
"args": ["-y", "servicenow-mcp-ai"]
}
}
}Restart Claude Desktop after saving.
Use the button above, or open the deeplink directly:
cursor://anysphere.cursor-deeplink/mcp/install?name=servicenow&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNlcnZpY2Vub3ctbWNwLWFpIl19Or edit ~/.cursor/mcp.json (global) / .cursor/mcp.json (project) with the same
mcpServers block as Claude Desktop.
All three take the Claude Desktop mcpServers block unchanged:
Windsurf —
~/.codeium/windsurf/mcp_config.json(Cascade → MCP servers → View raw config), then refresh the server list.Cline — MCP Servers icon → Configure MCP Servers opens
cline_mcp_settings.json.JetBrains AI Assistant — Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add → As JSON, paste the block.
{
"mcpServers": {
"servicenow": {
"command": "npx",
"args": ["-y", "servicenow-mcp-ai"]
}
}
}In Zed's settings.json (Zed → Settings → Open Settings):
{
"context_servers": {
"servicenow": {
"source": "custom",
"command": "npx",
"args": ["-y", "servicenow-mcp-ai"],
"env": {}
}
}
}~/.gemini/settings.json (user) or .gemini/settings.json (project):
{
"mcpServers": {
"servicenow": {
"command": "npx",
"args": ["-y", "servicenow-mcp-ai"]
}
}
}Check it with /mcp inside a Gemini CLI session.
codex mcp add servicenow --env SN_INSTANCE=your-instance.service-now.com -- npx -y servicenow-mcp-aiOr ~/.codex/config.toml:
[mcp_servers.servicenow]
command = "npx"
args = ["-y", "servicenow-mcp-ai"]
# Optional, non-secret only — secrets stay in ~/.config/servicenow-mcp-ai/.env:
# env = { SN_INSTANCE = "your-instance.service-now.com" }Prefer a global install (npm install -g servicenow-mcp-ai)? Replace
"command": "npx", "args": ["-y", "servicenow-mcp-ai"] with
"command": "servicenow-mcp-ai" in any snippet. The
MCP Inspector works the same way:
npx @modelcontextprotocol/inspector npx -y servicenow-mcp-ai.
The one-click links are generated from package.json by scripts/install-links.mjs
(node scripts/install-links.mjs prints them); test/install-links.test.js fails if
this README or the docs site drift from the generated strings.
Install via MCP bundle (.mcpb)
An MCP bundle is one .mcpb file with the
server and its dependencies; Claude Desktop (or any MCPB host) installs it in one click, with
no npm / npx. Its form asks for the connection keys (only SN_INSTANCE is required) and
SN_TOOL_PACKAGES; secrets are marked sensitive (kept in the OS keychain). An empty field
falls back to the env file. Not published yet (O-22) — build it with npm run mcpb:pack
(dist/mcpb/; -- --validate runs the official validator).
Docker
The repository ships a multi-stage Dockerfile (distroless Node 22 runtime, non-root
uid 65532). The image contains exactly what npm pack publishes plus production
dependencies, and starts the HTTP transport on 0.0.0.0:3000 by default. No image
is published to a registry yet — build it locally:
docker build -t servicenow-mcp-ai .
# Secrets as files (Docker / Kubernetes secrets), mounted read-only
mkdir -p secrets && printf '%s' 'your-password' > secrets/sn_password
openssl rand -hex 32 > secrets/sn_http_token
docker run --rm -p 127.0.0.1:3000:3000 \
-e SN_INSTANCE=your-instance.service-now.com -e SN_USER=your.user \
-e SN_PASSWORD_FILE=/run/secrets/sn_password \
-e SN_HTTP_TOKEN_FILE=/run/secrets/sn_http_token \
-v "$PWD/secrets:/run/secrets:ro" -v sn-data:/data \
servicenow-mcp-aiSN_HTTP_TOKENis required for any non-loopback bind. The image binds0.0.0.0so the published port works; without a token (or OAuth) the server refuses to start (3.0, B6).SN_HTTP_REQUIRE_TOKEN=0lets it start with a warning, and then every client that reaches the port drives your instance with the configured credentials. Clients sendAuthorization: Bearer <token>; terminate TLS in front of the container.OAuth instead of a shared token (N-17): set
SN_HTTP_OAUTH_ISSUER(your OIDC provider) andSN_HTTP_OAUTH_RESOURCE(this server's public URL, e.g.https://mcp.example.com/mcp). Clients discover the issuer from/.well-known/oauth-protected-resourceand send its JWT access tokens; the token must name the resource as its audience. Optional:SN_HTTP_OAUTH_SCOPES,SN_HTTP_OAUTH_AUDIENCE,SN_HTTP_OAUTH_JWKS_URI. For an issuer that hands out opaque tokens, setSN_HTTP_OAUTH_INTROSPECTION_URIplus its client id and secret (RFC 7662). By default the instance is still called with the configured service account.Per-user ServiceNow access (N-17 phase 2): add
SN_HTTP_OAUTH_USER_TOKENS=true, a 32-byteSN_HTTP_OAUTH_TOKEN_KEY(base64 or hex, e.g.openssl rand -base64 32) and an OAuth client on the instance (SN_OAUTH_CLIENT_ID/SN_OAUTH_CLIENT_SECRET, refresh tokens enabled) whose redirect URL is/oauth/servicenow/callbackon theSN_HTTP_OAUTH_RESOURCEorigin. The first call from a user returns a link to the instance's sign-in page (URL elicitation; a 2025 session gets-32042, a client without URL elicitation and a background task get an error carrying the link). After the user signs in, the server checks that the account'ssys_userfield matches the token's claim (SN_HTTP_OAUTH_USER_MATCH, defaultemail=email), keeps the refresh token AES-256-GCM encrypted inSN_HTTP_OAUTH_TOKEN_STORE, and from then on calls the instance as that user, so ServiceNow ACLs apply per user. A user drops their own links withDELETE /oauth/servicenow/link(their bearer token; answers{ unlinked, revoked }); the refresh tokens are also revoked on the instance, best effort. Replicas behind oneSN_HTTP_OAUTH_RESOURCEcan each complete a link when they shareSN_HTTP_OAUTH_TOKEN_KEYand the store. Limit: requests authorized withSN_HTTP_TOKENstill use the shared credential./dataholds the docs directory (SN_DOCS_DIR=/data/docs) and the env file (SN_ENV_FILE=/data/.env); mount a volume there to keep them.Every
<KEY>_FILEsecret source is described in Secrets from files.For an MCP client that spawns the container over stdio, pass
-i -e SN_TRANSPORT=stdio(docker run --rm -i -e SN_TRANSPORT=stdio -e SN_INSTANCE=… servicenow-mcp-ai).The
HEALTHCHECKis a TCP liveness probe.GET /healthz(liveness) andGET /readyz(credentials configured) answer without the token for orchestrator probes;GET /readyz?probe=1also calls the instance and sits behind the token, like every MCP route. SetSN_HTTP_ALLOWED_HOSTSto the name clients use so the Host header is checked on a0.0.0.0bind.smithery.yamldescribes the same image for Smithery (stdio, config keys mapped to theSN_*settings).
HTTP transport: sessions, probes and shutdown
With SN_TRANSPORT=http every MCP session (one initialize) gets its own server:
Per-session state. Enabled packages, the MCP logging level, list-changed notifications, plan tokens, tasks and write caps belong to the session. Connection pools, OAuth tokens and the schema cache are shared and keyed by profile + host.
servicenow_use_instanceis session-scoped over HTTP. It switches the profile of the calling session only; other sessions keep theirs and nothing is written. Passpersist: trueto also writeSN_ACTIVE_PROFILEto the env file (journaled) — that changes the default for sessions that have not switched. Over stdio the switch lasts until the process exits;persist: truewrites it there too (3.0, B12).Lifetime. A session ends on
DELETEor afterSN_HTTP_SESSION_TTL_SECidle (default 30 min); a request with an ended session id gets 404 and the client re-initializes. At mostSN_HTTP_MAX_SESSIONS(64) are open at once.DNS-rebinding protection. The
Hostheader must matchSN_HTTP_ALLOWED_HOSTS(default: the loopback names on a loopback bind) and a browserOriginmust matchSN_HTTP_ALLOWED_ORIGINS(default: loopback origins); otherwise 403.Probes.
GET /healthz→200 {"status":"ok"}while serving.GET /readyz→ 200 when credentials are configured, 503 otherwise. Both answer without the token.GET /readyz?probe=1(behind the token) also reads onesys_userrow and returns 503 when the instance is unreachable; the result is cached for 5 s.Shutdown. On SIGTERM / SIGINT the listener stops accepting connections, new requests get 503, in-flight tool calls get up to 5 s to finish, then every session is closed and the process exits 0.
Keep-alive. Open SSE streams get a comment every
SN_HTTP_KEEPALIVE_MS(25 s).
Quickstart
The fastest path is three lines of Basic auth — set these (in the env file or the real environment) and you are connected:
SN_INSTANCE=dev12345.service-now.com
SN_USER=your.username
SN_PASSWORD=your-passwordEverything else is optional tuning; see the full Environment variables reference for the rest.
Past a quick try, prefer OAuth over a stored password. For anything shared or long-lived, run the one-time
npx servicenow-mcp-ai logininstead — it stores a refresh token, not your password. See Configure credentials → OAuth 2.1.
Verify your setup
Once the three variables are set, confirm the connection before you start:
Run the
servicenow_test_connectiontool — it reads onesys_userrecord and reportsok, HTTP status and latency.Run
servicenow_check_capabilities— it previews which admin-restrictedsys_*tables the connected user can actually read.
Or do both from the shell in one shot:
npx servicenow-mcp-ai doctor # checks credentials, reachability and capabilitiesPrefer to be asked? npx servicenow-mcp-ai init prompts for the instance, the
auth method and the credentials, writes the env file and runs doctor — see
Command-line interface.
Configure credentials
Credentials live in ~/.config/servicenow-mcp-ai/.env (or the file SN_ENV_FILE names):
SN_INSTANCE=your-instance.service-now.com
SN_USER=your.username@example.com
SN_PASSWORD=your-passwordSN_INSTANCE accepts dev12345, dev12345.service-now.com or a full https:// URL.
You can also set or change them at runtime by calling the
servicenow_set_credentials tool — the new values are written straight back to the env file.
Moving a configured profile to a different instance requires user and password in the same
call (the stored secrets are never sent to another host), and the change must be confirmed by
the client — clients without elicitation support are refused unless
SN_ALLOW_UNCONFIRMED_CREDENTIAL_CHANGE=1 is set.
The tool also sets the auth method (auth), the OAuth client id (oauth_client_id) and grant
(oauth_grant). Secrets — the API key and the OAuth client secret — are never tool arguments:
list them in request_secrets and the server asks for them through an elicitation prompt, so
they never appear in a logged tool call, the result or the write journal. A client without
elicitation support is refused (the opt-out above does not apply to secrets); set those keys in
the env file instead. The instance-change rule follows the resulting auth method: an API-key
profile needs a new API key, an OAuth client_credentials profile a new client secret, the
OAuth password grant user, password and client secret, Basic / none user and password;
bearer-token, refresh_token and jwt_bearer profiles cannot be moved with this tool.
servicenow_get_status (authWarnings), servicenow_list_instances and doctor evaluate each
profile against its own auth method — an API-key profile needs no password — and report the
method, the OAuth grant, the refresh-token state and the write mode, never a secret value. When
the refresh-token grant returns a rotated refresh token, it is written back to the env key it
was read from; if the env file cannot be written, the new token is kept in memory (lost on
restart) and a warning is logged and shown by get_status / doctor. Values the server writes
keep Windows paths literal (backslashes are single-quoted) and a CRLF env file stays CRLF. On
Windows the env file inherits its folder's ACL — restrict it yourself (for example
icacls .env /inheritance:r /grant:r "%USERNAME%:F"); the server only warns, it never runs
icacls.
The env file is resolved in this order: SN_ENV_FILE, then
~/.config/servicenow-mcp-ai/.env (XDG). A project-root .env is deprecated (3.0, B5):
if one exists while neither of the two is in use, it is still read and startup warns where to move it.
A global/npx install therefore writes to your user config rather than into
node_modules. Real environment variables always take precedence over the file.
First run: the model configures itself
At initialize the server sends instructions built from the live configuration: the enabled
packages and tool count, the write mode, the active profile and, when nothing is configured,
what is missing and how to fix it — plus pointers to the prompts, the reference resources
and large-result handling (paging, format "file"). Until then every instance tool fails with
code: "NOT_CONFIGURED" and a hint naming servicenow_set_credentials. A first session
with an empty env file looks like this (abridged):
instructions Credentials: NOT configured (missing instance, user, password). Instance tools
fail with code NOT_CONFIGURED until fixed. To configure: ask the user for
the instance and credentials, call servicenow_set_credentials, then
servicenow_test_connection. Never guess or echo a password.
user How many open P1 incidents do we have?
model Which instance, user and password should I connect with?
user dev12345, admin, ••••••
tool call servicenow_set_credentials { instance: "dev12345", user: "admin", password: … }
tool result { message: "Credentials saved", profile: "default", configured: true, password: "***" }
tool call servicenow_test_connection {}
tool result { ok: true, … }
tool call servicenow_aggregate { table: "incident", query: "active=true^priority=1" }
model There are 7 open P1 incidents.servicenow_get_status then shows the live state: server version, uptime and transport,
policy.summary, limits, redaction, the docs directory, write counters, the profile source and
profileDetails (per-profile auth mode, write mode and missing keys) — never a secret value.
OAuth 2.1 (Authorization Code + PKCE) — recommended
Register an Authorization Code OAuth API endpoint in ServiceNow with a
loopback redirect URL (e.g. http://localhost:53682/callback), set
SN_OAUTH_CLIENT_ID (and SN_OAUTH_CLIENT_SECRET for a confidential client),
then run the one-time interactive login:
npx servicenow-mcp-ai loginIt opens the browser, you approve, and the obtained refresh token is stored in your env file. The server then runs non-interactively (refresh_token grant) — no password is ever stored. PKCE (S256) is always used.
The OAuth 2.0 password grant (ROPC) is deprecated in OAuth 2.1 and disabled on many instances; prefer
login.client_credentialsandrefresh_tokengrants remain supported for service accounts. See .env.example.
Supported authentication methods
Every inbound REST auth method ServiceNow offers is covered:
Method |
| Set | Notes |
Basic |
|
| Default. |
OAuth 2.1 — Authorization Code + PKCE |
|
| Recommended. Interactive, stores a refresh token. |
OAuth — Client Credentials |
|
| Service-to-service. |
OAuth — Refresh Token |
|
| Set by |
OAuth — JWT Bearer |
|
| RS256 assertion; no password. |
OAuth — Password (ROPC) |
|
| Deprecated. |
API Key |
|
|
|
Bearer token |
|
| Pre-obtained token, used verbatim. A rejected token (401) re-reads |
Mutual TLS (client cert) |
|
| Cert maps to a user; needs optional |
Environment variables
All settings are read from the env file (SN_ENV_FILE, else
~/.config/servicenow-mcp-ai/.env) or the real process environment, which takes
precedence. Only the first three are required; the rest are optional tuning knobs.
See .env.example for a template. Every value is validated at
startup: an invalid one stops the server with an error that names every offending key
(3.0, B5), or — with SN_STRICT_SETTINGS=0 — is logged as a warning and the setting keeps
its default.
These tables are generated from the settings manifest
(src/core/settings-manifest.ts) — edit the manifest, then run
npm run docs:env.
Connection and authentication
The instance and its credentials. Only SN_INSTANCE is always required; the auth method is auto-detected from the keys present (API key -> bearer token -> OAuth -> Basic) unless SN_AUTH names it.
Variable | Required | Default | Since | Description |
| yes | — | 1.0.0 | Instance name, host, or |
| yes | — | 1.0.0 | ServiceNow username for Basic auth. |
| yes | — | 1.0.0 | ServiceNow password. Never logged or returned by any tool. |
| no | auto | 1.1.0 | Auth method: |
| no | — | 1.1.0 | ServiceNow Inbound API Key, sent as the |
| no | — | 1.1.0 | A pre-obtained bearer token, sent verbatim as |
| no | — | next | File holding the bearer token (enables |
| no | — | next | ISO 8601 expiry of the bearer token. |
| no | — | 1.1.0 | OAuth client id (its presence enables OAuth). |
| no | — | 1.1.0 | OAuth client secret. |
| no |
| 1.1.0 | OAuth grant: |
| no | — | 1.1.0 | Refresh token for the |
| no | 1.1.0 | Loopback redirect URL for the PKCE | |
| no | — | 1.1.0 | Optional OAuth scope requested during |
| no | — | 1.1.0 | PEM private key for the |
| no | — | 1.1.0 | Path to the PEM private key for the |
| no | client id | 1.1.0 |
|
| no |
| 1.1.0 |
|
| no |
| 1.1.0 |
|
| no | — | 1.1.0 |
|
| no |
| 1.1.0 | Lifetime of the JWT-bearer assertion in seconds. |
| no |
| next | H-2: operator opt-out — lets |
Secrets from files
Container secrets (D-5): FILE=/path loads from that file at startup (one trailing newline is trimmed). Setting both and FILE is a startup error; so is an unreadable or empty file. A value loaded this way is never written back to the env file. Per profile: SN_PROFILE_FILE for the ServiceNow secrets.
Variable | Required | Default | Since | Description |
| no | — | next | D-5: read |
| no | — | next | D-5: read |
| no | — | next | D-5: read |
| no | — | next | D-5: read |
| no | — | next | D-5: read |
| no | — | next | D-5: read |
| no | — | next | D-5: read |
| no | — | next | D-5: read |
Profiles and the env file
The bare SN_INSTANCE / SN_USER / SN_PASSWORD keys are the 'default' profile. More instances live under SN_PROFILE__* keys; switch with SN_ACTIVE_PROFILE or the servicenow_use_instance tool.
Variable | Required | Default | Since | Description |
| no | — | 1.1.0 | Named connection profiles: |
| no |
| 1.1.0 | Which profile tools use. Switch at runtime with |
| no |
| 1.1.0 | Explicit path to the env file to read/write. Otherwise the server uses |
Network, TLS and resilience
Timeouts, retries, the host allow-list, the outbound proxy, mutual TLS and the per-host queue and circuit breaker. They govern every REST client of the server. The proxy and mutual TLS need the optional undici package.
Variable | Required | Default | Since | Description |
| no |
| 1.1.0 | Per-request timeout in milliseconds. |
| no |
| 1.1.0 | Retries for transient failures (429/5xx, network errors). Non-idempotent writes are only retried on connect errors. |
| no |
| next | Upper bound honoured for a |
| no | max(120000, 2 × | next | Total wall-clock budget for one logical request across retries, backoff, queue wait and OAuth re-auth. A retry that cannot fit into the remaining budget is not attempted — the call fails with code |
| no | — | 1.1.0 | Comma-separated allow-list of permitted hosts (for custom or sovereign-cloud domains). When set, only matching hosts are contacted. When unset, only |
| no |
| next | Largest response body (bytes) read into memory; a larger declared or streamed body fails with |
| no | — | next | Outbound HTTPS proxy URL ( |
| no | — | next | Extra token appended to the |
| no | — | 1.1.0 | Client certificate (PEM) for mutual TLS (or |
| no | — | 1.1.0 | Path to the client certificate (PEM) for mutual TLS. |
| no | — | 1.1.0 | Private key (PEM) for the client certificate (or |
| no | — | 1.1.0 | Path to the private key (PEM) for the client certificate. |
| no | — | 1.1.0 | Optional CA bundle (PEM) to trust (or |
| no | — | 1.1.0 | Path to the CA bundle (PEM) to trust. |
| no |
| 1.1.0 |
|
| no |
| 1.1.0 | Maximum parallel HTTP requests to the instance (simple in-process semaphore). |
| no |
| next | Maximum requests waiting per host for a free slot beyond |
| no |
| next | Longest a request waits for a slot before failing with code |
| no |
| next | Opt-in per-host circuit breaker: after this many consecutive failed requests (transport error, deadline, 5xx) further requests fail fast with code |
| no |
| next | How long an open circuit breaker rejects requests before letting a trial request through; the first failure re-opens it, the first success closes it. |
Tool packages
Which tools are registered. The admin tools (set_credentials, get_status, use_instance) are always on.
Variable | Required | Default | Since | Description |
| no |
| 1.0.0 | Comma/space-separated tool packages or profiles to enable. Profiles: |
| no | — | 1.0.0 | Comma/space-separated packages to exclude even if enabled by |
| no | — | 1.0.0 | Comma/space-separated packages whose write tools are not registered; their read tools stay. Per-package complement to the global |
| no |
| 1.1.0 | Opt in to the Code Search API ( |
| no |
| next | M-9, experimental: |
| no |
| next | N-50, MCP Apps (SEP-1865): |
| no |
| next | M-7 (B2), deprecated bridge for one minor cycle: every tool name renamed by the v3 naming convention is an alias of its new name — it dispatches to the new tool, accepts the old parameter names, and logs a one-time deprecation warning. Off (the default): the aliases still answer |
Access policy and write safety
Least-privilege table policy, plan-and-apply writes, destructive-write confirmation, per-session caps, prod profiles, update-set binding and the upload / email / SDK-managed-scope guards.
Variable | Required | Default | Since | Description |
| no | — | 1.1.0 | Comma-separated table allowlist; when set, only these tables are reachable. |
| no | — | 1.1.0 | Comma-separated table denylist; always wins over the allowlist. |
| no |
| 1.1.0 | When truthy, refuse every create/update/delete. |
| no |
| 2.0.0 |
|
| no |
| next | Upgrade bridge (owner, 2026-10-14): |
| no |
| next | H-3: confirmation for a destructive |
| no |
| next | H-3: lifetime of a |
| no |
| next | H-4: a |
| no |
| next | H-4: most sub-requests one |
| no |
| next | H-11: writes to the built-in protected tables (identity, roles, ACLs, |
| no |
| next | H-11: patterns ( |
| no | 500 per HTTP session, none on stdio | next | H-11: most applied instance writes per session (the process on stdio, one MCP session over HTTP; a batch counts its write sub-requests). Past it, writes fail with |
| no |
| next | H-11: most applied deletes per session ( |
| no |
| next | H-11: most write (non-GET) sub-requests in one |
| no | — | next | H-11: marks the default profile |
| no | — | next | H-11: |
| no | — | next | S-6: update set (sys_id or exact name) that applied Table-tool writes (create / update / upsert / delete) land in; a per-call |
| no | — | next | Recipient domains |
| no |
| next | Largest decoded attachment upload, checked on the base64 length before decoding ( |
| no | — | next | Optional allow-list of upload content types (exact, or |
| no | — | next | P-3: comma/space-separated application scopes (namespace such as |
| no |
| next | P-22: writes into an SDK-managed scope (a record whose |
| no | — | next | P-3: directories (separated by commas or the platform path delimiter) scanned read-only for SDK projects: each |
Results, redaction and exports
Result size budgets, output shaping, redaction of record values, the write journal and CSV export safety.
Variable | Required | Default | Since | Description |
| no |
| 1.1.0 | Hard cap on records returned by a |
| no |
| 1.1.0 | Character budget for a tool result (48,000 since O-21 (b), under Claude Code's 50,000 threshold). A larger result goes to a file while |
| no |
| next | S-11 / N-61 (default on since O-21 (b)): write a |
| no |
| next | N-65 (default on, O-21 (c)): the large readers ( |
| no |
| next | N-39 (default on, O-21 (d)): tools with an output shape publish |
| no |
| 1.1.0 | Reference fields come back without their |
| no |
| 1.1.0 | Tool results are compact JSON by default (pretty-printing ~doubles tokens). Set |
| no | — | 2.0.0 | DF-5: mask these field values before records reach the model (comma/space-separated). |
| no |
| 2.0.0 | DF-5: also mask email/phone/national-id patterns inside string values. Since H-5 both redaction settings apply deeply to every tool result (success and error) and to the write journal. |
| no |
| next | H-5: size (bytes, default 20 MiB) at which |
| no |
| next | H-5: prefix CSV text cells that start with |
| no |
| next | H-5: prepend a UTF-8 BOM to |
Caching
The schema reads cache and the capability / plugin-API probes.
Variable | Required | Default | Since | Description |
| no |
| next | N-10: poll interval of a record-watch subscription ( |
| no |
| next | N-10: record-watch subscriptions one client session may hold; one more is refused with |
| no |
| next | N-10: record-watch subscriptions across the process (every session); one more is refused with |
| no |
| 1.1.0 | TTL for the near-static schema reads cache ( |
| no |
| next | Maximum entries in the schema reads cache; when full, the least-recently-used entry is evicted. Counters ( |
| no |
| next | How long a successful capability probe is cached — the |
| no |
| next | How long a failed capability probe (HTTP 401/403/404/5xx) or a missing plugin API is cached before it is tried again. Transport errors are never cached. |
Docs store and diagrams
The local Markdown docs store (also home of the write journal — keep it out of version control) and the generated Mermaid diagrams.
Variable | Required | Default | Since | Description |
| no |
| 1.0.0 | Directory the |
| no |
| next | Per-file size cap for the docs tools: larger writes are refused, reads return the first bytes with |
| no |
| next |
|
| no |
| next | Most matches |
| no |
| next | Node cap for the generated Mermaid diagrams (table flow, event trace, where-used; tables in a detailed ER diagram). Nodes past it fold into one |
HTTP transport
stdio (default, one local client) or Streamable HTTP for remote and agent clients. Securing the HTTP endpoint (TLS, auth, network) is the operator's job.
Variable | Required | Default | Since | Description |
| no |
| 2.0.0 | DF-6: |
| no |
| 2.0.0 | DF-6: TCP port for the http transport. |
| no |
| 2.0.0 | DF-6: bind address for the http transport (loopback by default). |
| no | — | 2.0.0 | DF-6: when set, http requests must send |
| no | — | next | N-17: issuer of the OAuth 2.1 / OpenID Connect authorization server whose JWT access tokens the http transport accepts (signature checked against its JWKS; |
| no | — | next | N-17: this server's canonical public URI (RFC 8707 resource indicator). A token is accepted only when its |
| no | — | next | N-17: extra |
| no | — | next | N-17: the issuer's JWKS URI. Unset = discovered from the issuer's OpenID Connect or RFC 8414 metadata. |
| no | — | next | N-17: the issuer's RFC 7662 introspection endpoint. Set = opaque (non-JWT) access tokens are accepted when it answers |
| no | — | next | N-17: this server's client id at the introspection endpoint (HTTP Basic, |
| no | — | next | N-17: this server's client secret at the introspection endpoint. |
| no | — | next | N-17: scopes every request's token must carry; published as |
| no | off | next | N-17: call ServiceNow as the OAuth subject instead of the shared profile credential. Each subject links its own ServiceNow account once (Authorization Code + PKCE through a URL elicitation, callback at |
| no |
| next | N-17: |
| no | — | next | N-17: the AES-256-GCM key (32 bytes, base64 or hex) that encrypts the per-user refresh tokens at rest. Rotating it drops every link. |
| no |
| next | N-17: the encrypted per-user token store (written 0600, its directory 0700). |
| no | on | next | H-7 / B6: refuse to start the http transport on a non-loopback |
| no |
| next | H-7: idle TTL of an http session in seconds; an idle session is closed and its runtime disposed. |
| no |
| next | H-7: cap on concurrent http sessions; a new session beyond it is refused with 503. |
| no |
| next | H-7: interval of the SSE keep-alive comment on an open stream (below common proxy idle timeouts). |
| no | — | next | H-7: |
| no | — | next | H-7: browser |
| no | off | next | E-5: HTTP transport only — serve Prometheus metrics at |
Logging
The stderr log, the optional log file and the log lines mirrored to the MCP client.
Variable | Required | Default | Since | Description |
| no |
| 1.1.0 | Log verbosity on stderr: |
| no |
| next | E-5: stderr log line format — |
| no | — | next | E-5: also append every log line (JSON Lines, redacted, mode 0600) to this file, with size-based rotation ( |
| no |
| next | E-5: rotation threshold for |
| no |
| next | M-8: log notifications per second and client session over the MCP logging capability (burst 50, or the rate if larger). Lines over it are counted and reported in one "N log messages suppressed" warning per minute; stderr is never throttled. |
| no | off | next | N-55: map the tool-call and HTTP |
| no | off | next | N-55: send W3C |
Settings validation
Every setting is validated at startup. An invalid safety value is a startup error; an invalid tuning value is logged as a warning and the setting keeps its default (see SN_STRICT_SETTINGS).
Variable | Required | Default | Since | Description |
| no | safety settings only | next | E-4 / B5: which invalid setting values (a non-number, an unknown enum value, an out-of-range port…) stop the server with a startup error that names every offending key. Unset: only safety settings — connection, profiles, packages, policy, transport and the trust / privacy keys ( |
Standard variables
Conventional variables outside the SN_ namespace that the server also honours.
Variable | Required | Default | Since | Description |
| no | — | next | Standard proxy for HTTPS traffic, honoured when |
| no | — | next | Fallback proxy when |
| no | — | next | Hosts that bypass |
| no |
| 1.1.0 | Base directory of the default env file ( |
Secrets from files
Every secret setting can be read from a file, the convention of Docker, Compose / Swarm and Kubernetes secrets: set <KEY>_FILE to a path and the server loads <KEY> from it at startup. This covers SN_PASSWORD, SN_API_KEY, SN_BEARER_TOKEN, SN_OAUTH_CLIENT_SECRET, SN_OAUTH_REFRESH_TOKEN and SN_HTTP_TOKEN, plus the per-profile forms (SN_PROFILE_PROD_PASSWORD_FILE, SN_PROFILE_PROD_API_KEY_FILE, …).
One trailing newline is trimmed, so
echo secret > fileworks; other whitespace is kept.Setting both
<KEY>and<KEY>_FILEis a startup error that names the pair — the server never picks one silently.An unreadable or empty file is a startup error that names the setting and the reason, never the content.
A value loaded from a file is never written back to the env file:
servicenow_set_credentialsand OAuth refresh-token rotation refuse to persist it (a rotated refresh token stays in memory with a warning) — update the file.The existing file settings keep their meaning:
SN_TOKEN_FILE(bearer token re-read on a 401),SN_OAUTH_JWT_KEY_FILEand theSN_TLS_*_FILEPEM paths are paths the server reads itself, not<KEY>_FILEsources.
Two-axis access policy
Access is controlled on two independent axes: tables and tool packages.
Axis | Enable / deny / read-only | Example |
Tables |
|
|
Packages |
|
|
Since H-4 the plugin-backed tools (Change, Catalog, Knowledge, Email, ATF) and attachments (through the parent record's table) obey the table axis too; the package axis still removes whole surfaces. See Security notes for the full model (including how the Batch API obeys both axes).
List syntax: table lists (SN_TABLES_ALLOW / SN_TABLES_DENY) are
comma-separated; package lists (SN_TOOL_PACKAGES, SN_PACKAGES_DENY,
SN_PACKAGES_READONLY) accept commas or whitespace. Surrounding spaces are
trimmed in both, and table matching is case-insensitive — so
SN_TABLES_DENY=Change_Request, sys_user works. Since H-11 a table entry may be
a pattern (* any run, ? one character): SN_TABLES_DENY=sys_* blocks
sys_user and leaves incident alone. The order is: an exact deny, an exact
allow, a pattern deny, the protected tables (writes; since 3.0 they need the
call's own apply: true — SN_PROTECTED_TABLES_WRITE=confirm; deny refuses
them, allow lifts the rule), then the allowlist's
patterns. Ask
servicenow_explain_policy({table, action}) which rule decides, or read
servicenow://policy.
Run / debug
VS Code: open the Command Palette and start the server defined in .vscode/mcp.json, then use it from Chat.
MCP Inspector:
npm run inspectorDirectly:
npm start
Observability
Status.
servicenow_get_statuscarries anobservabilityblock: per-tool{count, errors, p50, p95, totalMs}(percentiles in ms over each tool's last 256 calls — memory stays bounded) plus result sizes{bytesTotal, textBytes, structuredBytes, bytesP50, bytesP95}(UTF-8 bytes of the text blocks and ofstructuredContent, the wire cost of each tool), schema-cache hits/misses, per-host retry counters, queue limits and occupancy, circuit-breaker state and the lastX-RateLimit-*headers each host sent. It never calls the instance.Logs. Logs go to stderr only (stdout is the MCP protocol).
SN_LOG_FORMAT=textswitches from JSON lines to a human-readable format;SN_LOG_FILEalso appends JSON lines to a size-rotated file. Credential-named fields (password,token,authorization, …) are masked in every sink, and theSN_REDACT_FIELDS/SN_REDACT_PIIrules and the secret-column masking apply on top.Tracing hooks. Every tool call and the request loop publish on
node:diagnostics_channel, so an OpenTelemetry (or any) subscriber can attach without a dependency on this server. Messages are built only while a channel has a subscriber:Channel
When
Message fields
servicenow-mcp:mcp.tool.call.starta tool call begins
id,tool,package,requestId, andsessionId/traceparent/tracestatewhen knownservicenow-mcp:mcp.tool.call.endit returned a successful result
the start fields plus
profile,outcome(ok),ms,resultBytesservicenow-mcp:mcp.tool.call.errorit returned an error result or threw
the start fields plus
profile,outcome(error/cancelled),ms, andcode/resultBytesorerrorNameservicenow-mcp:http.request.starta logical request begins
id,system,method,host,telemetryKey,url, andprofile/requestId/sessionId/tool/callId/traceparent/tracestatein a callservicenow-mcp:http.request.endit resolved with an OK response
the start fields plus
status,attempts,msservicenow-mcp:http.request.errorit failed
the start fields plus
attempts,ms,status,code,errorName,errorMessageservicenow-mcp:http.request.retryan attempt is replayed (backoff, 401 re-auth)
id,system,method,host,url,attempt,reason,waitMsurlnever includes the query string; headers, bodies and credentials are never published, anderrorMessagepasses through the redaction rules.Tool arguments and results are never published (only the result's byte count).
callIdon an HTTP message is theidof the tool call that made it.traceparent/tracestateare the W3C Trace Context the client sent in the call'sparams._meta; a malformed value is dropped.OpenTelemetry spans.
SN_OTEL=1maps those channels to spans through@opentelemetry/api, an optional peer dependency (npm install @opentelemetry/apinext to the server, plus your SDK and exporter registered withnode --import). Without the package the server logs one warning and runs without spans; withSN_OTELoff the package is never loaded.Each tool call is a
SERVERspan namedtools/call <tool>, a child of the client'straceparentwhen it sent one. Attributes:mcp.method.name,gen_ai.operation.name(execute_tool),gen_ai.tool.name,jsonrpc.request.id,mcp.session.id,network.transport,error.type, plusservicenow_mcp.package/.profile/.outcome/.result.bytes.Each outbound request is a
CLIENTspan named after the method, a child of its tool span:http.request.method,server.address,url.full(no query string),http.response.status_code,http.request.resend_count,error.type, and oneretryevent per replay.The MCP and GenAI semantic conventions are still in development, so these names are provisional and may follow the spec when it changes.
SN_OTEL_PROPAGATE=1(off by default) also sendstraceparent/tracestateheaders on requests to the ServiceNow instance: the HTTP span's context whenSN_OTELis on, otherwise the client's context unchanged. It is opt-in because it hands trace ids to the instance; the OAuth token endpoint never gets them.
Prometheus. With the HTTP transport,
SN_METRICS=1andSN_HTTP_TOKENset,GET /metrics(same bearer token) serves the same figures in the Prometheus text format (servicenow_mcp_*families, labelled bytool/hostonly). Without a token the endpoint stays off and a warning is logged.
Command-line interface
The published servicenow-mcp-ai binary (run it directly, or via
npx servicenow-mcp-ai) starts the MCP server when it is given no command, and
otherwise runs one of the commands below and exits. Connection settings come from
environment variables / the env file (see Environment variables).
servicenow-mcp-ai --help lists everything; --version prints the version. An
unknown command or option prints the usage on stderr and exits 2 — it never
starts the server.
Command | Options | What it does | Exit codes |
| (none) | Starts the MCP server. The transport ( |
|
|
| Interactive setup: asks for the instance, the auth method and its credentials (secrets through a hidden prompt), writes the env file, then runs | the |
|
| Health check: credentials, a live connectivity probe and the capability preflight. The first line names the env file that was used. |
|
|
| One-time OAuth 2.1 Authorization Code + PKCE login: opens the browser, captures the loopback redirect, stores a refresh token. |
|
| (none) | DF-3 CI drift gate: compares the two instances and writes a Markdown diff report. |
|
|
| Writes one JSON file for a bug report and prints its path on stdout. |
|
|
| Carries 2.x settings (env file, MCP client |
|
init writes through the same atomic, owner-only (0600) env-file writer as
servicenow_set_credentials, to the file doctor names (by default
~/.config/servicenow-mcp-ai/.env). It asks, in order: the instance (dev12345
or a full host; a custom domain needs SN_ALLOWED_HOSTS), the auth method
(basic / oauth / apikey / token), then that method's settings — for
oauth the grant (client_credentials, password, or authorization_code,
which ends with a hint to run login). Secrets are never echoed or logged; the
summary lists key names only. With --profile qa the keys are written as
SN_PROFILE_QA_*. An existing profile is overwritten only after a y. The
answers can be piped, one per line, which is how CI and tests drive it:
printf 'dev12345\nbasic\nalice\n%s\n' "$SN_PASSWORD" | npx servicenow-mcp-ai initWithout a terminal and without piped answers, init refuses (exit 2) and
writes nothing.
doctor prints plain ASCII ([ok] / [x] instead of check marks) with
--ascii, when stdout is not a terminal, and on Windows outside Windows Terminal.
--json prints one JSON document instead: envFile, status, summary,
checks[] (name, ok, detail), config, connection, capabilities and
serverStatus (the servicenow_get_status payload) — for example
servicenow-mcp-ai doctor --json | jq .checks. The exit codes are the same.
support-bundle collects the doctor --json payload, every SN_* setting
with secrets masked as ***, npm ls --omit=dev (best effort), the tool
manifest summary (version, tool and package counts, active tools) and the last
200 lines of SN_LOG_FILE when one is set. Every masked value is also scrubbed
from the whole file. The default path is
./servicenow-mcp-ai-support-<timestamp>.json (mode 0600). Instance and user
names are not masked — review the file before you attach it to an issue.
migrate upgrades the settings of a 2.x install. It reads the env file the
server resolves (or --from <file>) without loading it, so a file 3.x would refuse
still migrates, and keeps every key, value and comment except:
a project-root
.env(deprecated, B5) or the--fromfile is copied to~/.config/servicenow-mcp-ai/.env(orSN_ENV_FILE); the original stays;a profile named
capabilities,docs,policy,profiles,reference,schemaorstatus(reserved, B13) becomes<name>_v2, with all itsSN_PROFILE_<NAME>_*keys andSN_ACTIVE_PROFILE, and its docs and write-journal folder<SN_DOCS_DIR>/<name>is renamed with it (a relativeSN_DOCS_DIRresolves against the directory you runmigratein; an existing<name>_v2folder is never overwritten);a value 3.x rejects at startup (B5) is commented out, so the default applies, as it did in 2.x;
a
KEY: valueline (accepted by the 2.x parser, skipped by 3.x) becomesKEY=value;SN_COMPAT=2is appended unless the file sets it or--v3-defaultsis given.
Settings in an MCP client's env block reach the server ahead of the env file,
so migrate also looks for this server in the Claude Desktop, Claude Code
(~/.claude.json, .mcp.json), Cursor, VS Code (user and .vscode/mcp.json)
and Windsurf config files, and applies the same rules to an env block that sets
SN_* keys (an invalid value is removed). A file with comments is reported, not
rewritten; a VS Code envFile is named so you can run migrate --from on it.
Restart the client after a rewrite.
With --write each file rewritten in place is first copied to <file>.v2.bak
(0600); an env file is 0600 too, a client file keeps its mode. Run it once
after the upgrade:
npx servicenow-mcp-ai migrate # review the plan
npx servicenow-mcp-ai migrate --write # apply itlogin operates on the active profile (SN_ACTIVE_PROFILE, default
default) and reads, for that profile:
SN_INSTANCE— required; the target instance.SN_OAUTH_CLIENT_ID— required; client id of an Authorization Code OAuth API endpoint.SN_OAUTH_CLIENT_SECRET— optional; for a confidential client.SN_OAUTH_REDIRECT_URI— optional; loopback URL, defaulthttp://localhost:53682/callback. Must match the redirect registered on the endpoint.SN_OAUTH_SCOPE— optional; requested OAuth scope.
On success it writes SN_AUTH=oauth, SN_OAUTH_GRANT=refresh_token and
SN_OAUTH_REFRESH_TOKEN back to the env file (profile-prefixed when the profile
is not default). The authorization URL is printed on stderr in case the browser
does not open automatically.
drift takes two positional profile names; each must resolve to a configured
profile (SN_PROFILE_<NAME>_*, or the bare SN_INSTANCE / SN_USER /
SN_PASSWORD keys for default). The Markdown report is written to stdout
(capture it as a CI artifact); a one-line drift summary goes to stderr.
CI drift gate (DF-3)
Compare two configured profiles and fail a pipeline on configuration drift:
servicenow-mcp-ai drift dev prod # report on stdout; exit 1 on drift, 0 if clean, 2 on errorThe report shows each changed script as a diff block. The CLI compares tables,
columns, scripts, plugins and apps; record sections (sections on
servicenow_compare_instances) are opt-in, so the exit codes are unchanged.
servicenow_snapshot_instance writes the same material to the docs folder, one
file per section, at most four sections at a time. An interrupted run is marked
partial in index.json; rerun it with resume: true to skip every section whose
files are unchanged.
Develop
npm run check # full gate: build, lint, format check, coverage-gated tests, tarball guard, prod audit
npm test # unit tests only (node:test; needs a prior npm run build)
npm run lint # ESLint (flat config + typescript-eslint)
npm run format # format with PrettierSee CONTRIBUTING.md for the conventions (one commit per task, tests ship with the change, generated docs).
Tools
The full reference — every parameter, the output fields, how each tool writes, and the error codes — is in docs/tools/, one page per package. docs/llms-full.txt bundles this README, SECURITY.md and that reference in one file for LLM context.
Every inputSchema and outputSchema in tools/list is written in JSON Schema 2020-12, the MCP default dialect, without a $schema field. The server supports no other dialect and never reads a schema from the client.
This table is generated from the tool registrations — edit the tool
definitions in src/tools/, then run npm run docs:readme. Every tool
name carries the servicenow_ prefix, left out below.
Package | Default | Read tools | Write tools |
yes |
|
| |
yes |
| — | |
yes |
| — | |
no |
|
| |
no |
|
| |
no | — |
| |
no |
|
| |
no |
|
| |
no |
| — | |
no |
|
| |
no |
| — | |
no |
| — | |
no |
|
| |
no |
|
| |
no |
|
| |
no |
|
| |
no |
|
| |
no |
|
| |
no |
|
| |
no |
| — | |
no | — |
| |
no | — |
| |
no |
| — | |
no |
| — | |
no |
|
| |
no |
| — | |
no |
| — | |
yes |
|
|
All tools carry MCP annotations (readOnlyHint, destructiveHint,
idempotentHint) so clients can apply the right confirmation UX.
Tool names (v3)
Every tool is named servicenow_<verb>_<noun>. Parameters follow one
vocabulary: sys_id is a record id, table is a table name (the CMDB tools
still accept class_name as a deprecated alias), fields is the list of
columns to return, and values is a write payload. Version 3.0 renamed these
tools:
Generated from TOOL_RENAMES in src/mcp/naming.ts — run
npm run docs:readme after changing it.
v2 name | v3 name | Why |
|
| No verb. |
|
| No verb. |
|
| No verb. |
|
| No verb; parallels check_code_health. |
|
| Noun before verb. |
|
| Noun before verb. |
|
| Noun before verb. |
|
| Noun before verb. |
|
| No verb. |
|
| Merged with list_atf_tests (kind: suite). |
|
| Merged with list_atf_suites (kind: test). |
|
| Noun before verb. |
|
| Merged with run_atf_test (kind: suite). |
|
| Merged with run_atf_suite (kind: test). |
|
| No verb. |
A 2.x client keeps working: every old name still answers tools/call as a
hidden, deprecated alias of its new tool and accepts the old parameter names,
at no tools/list cost. Set SN_LEGACY_TOOL_NAMES=1 for one minor release to
also list the aliases in tools/list and accept the old parameter names (attachment_sys_id, item_sys_id,
catalog_sys_id, test_sys_id, suite_sys_id, staging_table, fields as
a write payload, attributes) are accepted. Each use logs one deprecation
warning. The tool manifest lists the renames (toolRenames) and each tool's
accepted aliases.
To keep every 2.x default while you migrate, set SN_COMPAT=2: unset
settings then behave as in 2.x (protected tables writable, no plan token,
unmapped batch rows allowed, old names listed, the core package set). An
explicit setting still wins.
Tool packages
Tools are grouped into packages so you can expose only what a given client needs
(fewer tools keep the model focused). Set SN_TOOL_PACKAGES to a comma/space
separated list of profiles or package names:
discovery(default) —table,schema,aggregate, plus the always-on admin tools;servicenow_find_toolsnames the package for anything else.core, the 2.x default, is discovery plusattachment(B20).all— every package below.Individual packages:
table,schema,aggregate,attachment,importset,batch,catalog,change,knowledge,cmdb,scripts,flows,codecheck,docs,instance,email,atf,revert,artifacts,updatesets,ops,history,properties,directory,ui.
The admin tools (servicenow_set_credentials, servicenow_get_status,
servicenow_enable_package and the rest of the admin package) are always
registered, regardless of the active packages. Unknown names are ignored.
servicenow_get_status reports the resolved enabledPackages.
# Only table + batch tools (plus the always-on admin tools)
SN_TOOL_PACKAGES=table,batchPresets
If you would rather not curate the list yourself, three named presets cover the
common roles. The admin tools are always on, so they are not listed. Each preset
also has a one-word alias — SN_TOOL_PACKAGES=reader|developer|admin — that
expands to the same package set.
Preset |
| For whom |
|
| First contact, analysts, a PDI play — read and query only. |
|
| The core segment: script intelligence, flow tracing, linting, docs and diagrams. |
|
| Everything, including the plugin and write-heavy packages. |
The developer preset builds on the reader set; the docs package includes the
Mermaid diagram generators. Use the alias for brevity or spell the packages out to
add or drop one.
Switching packages at runtime
A client can widen or narrow its surface without a restart:
servicenow_list_packages shows every package with its state for this
session (enabled, configured, denied, read-only, tool count), and
servicenow_enable_package / servicenow_disable_package toggle one. The
server announces the change with notifications/tools/list_changed (and the
prompts / resources equivalents when those change too), one per list per toggle.
A toggle never exceeds the policy axes: a package in SN_PACKAGES_DENY is
refused (PACKAGE_DENIED), a package in SN_PACKAGES_READONLY brings only its
read tools, and the admin tools cannot be disabled. Toggles last for the
session; an HTTP session that closes returns to SN_TOOL_PACKAGES. Nothing
changes unless a client calls these tools.
The server also declares resources.subscribe: after servicenow_use_instance
or servicenow_set_credentials it sends notifications/resources/list_changed
and, to subscribers, notifications/resources/updated for
servicenow://status.
Upsert by key
servicenow_upsert_record({table, key, fields}) creates or updates one record
matched by key, an exact match on one or more field/value pairs (for example
{"u_external_id": "A-17"}; an empty string matches an empty field). No match
creates a record with the key and the fields, exactly one match updates it, and
more than one match is refused with AMBIGUOUS_KEY — so is a match the user
cannot read, since creating another would duplicate it.
The action is decided in the plan: without apply:true the tool returns
create or update (with the sys_id and the before values) plus
apply_with: {expected_action, expected_sys_id}. Pass those back with
apply:true; if the key now resolves differently (the record appeared, went
away or is another one) the call fails with STALE_RECORD and writes nothing.
The applied write is journaled as a create or an update, so
servicenow_revert_write undoes it like a direct create_record /
update_record.
Undo a write (journal-based revert)
Every applied write is recorded in the local, hash-chained write journal
(<SN_DOCS_DIR>/<profile>/write-journal.jsonl). The opt-in revert package
turns it into an undo:
servicenow_list_writes— the journal newest first, filtered byprofile,table,since(ISO date/time),resultandaction. Each row carries the entryidand whether the line alone allows a revert (revertible+reason).servicenow_revert_write—entry_id→ the inverse write through the Table API: an update writes its journaledbeforevalues back, a create is deleted, a delete is re-created from itsbeforerecord (system fields dropped, the originalsys_idrequested; the result reportssys_id_preserved). It follows plan/apply like every write tool: withoutapply:trueit returns the inverse, the record's current state and the drift check, and changes nothing.
Safety rules:
Drift check. The record's
sys_mod_countis compared with the value the journaled write left (after_mod_count, orbefore.sys_mod_count + 1); when no count is available, the written field values are compared instead. If the record changed since — or nothing could be compared — the revert is refused withSTALE_RECORD; passforce:trueto overwrite anyway (the revert's journal line then recordsforce: true).NOT_REVERTIBLE, with the reason, when the entry is unknown, the journal chain is broken, the write was notapplied, the line has nobeforestate, abeforevalue was redacted (SN_REDACT_FIELDS/SN_REDACT_PII), the entry was already reverted, or its origin has no safe inverse: attachment upload/delete,send_email, import set rows, catalog orders, Batch API sub-requests, ATF runs, CMDB creates (IRE may have matched an existing CI) and local/config entries. A redacted value is never restored as[redacted]: the whole entry is refused, with no partial revert — restore those fields by hand.The revert is itself journaled (
reverts: <entry_id>,tool: servicenow_revert_write), so reverting the revert is a redo. Policy applies as for a direct write:SN_READONLY, the table allow/deny lists and the package axes of both the original package andtable. PutrevertinSN_PACKAGES_READONLYto keeplist_writeswithout the undo.
Update sets
The opt-in updatesets package reads update sets (all three tools are
read-only and go through the table policy and redaction like every reader):
servicenow_list_update_sets— optionalstate,namefragment,application(scope namespace,globalor sys_id),query,limit/offset→ sets newest first, with the user's current set marked.servicenow_get_update_set—update_set(sys_id or exact name) → its customer updates (sys_update_xml) per artefact: type, target name, action, table, plus countsby_type/by_action. Payloads are omitted unlessinclude_payload: true; they are then parsed into field values, each capped atpayload_max_chars(default 500), with secret-looking fields masked.servicenow_compare_update_set—update_setpluswith_profile(read live) orwith_snapshot(aservicenow_snapshot_instancesnapshot) → per artefactsame/different(differing field names only) /missing/not_comparable/not_covered/unknown. Only fields in the update payload are compared; audit columns are ignored.
Writes: servicenow_create_record, servicenow_update_record,
servicenow_upsert_record and servicenow_delete_record take an optional
update_set (sys_id or exact name; default SN_UPDATE_SET). The plan
preview names the target set; applying switches the user's sys_update_set
preference (and the scope's updateSetForScope<scope> preference for a
scoped set), runs the write, and restores the previous value — the result
reports update_set: { bound, previous, restored } and the journal entry
records update_set. A set that is not in progress is refused
(UPDATE_SET_NOT_IN_PROGRESS); a data-row table (anything not extending
sys_metadata and without the update_synch attribute) is written without
switching, and the plan says so. Without the argument or the setting nothing
changes. Other write tools (batch, catalog, change…) are not bound.
Operations and data health
The opt-in ops package holds two read-only tools for "the instance is slow"
triage and data quality. Every section reads its own table; an unreadable
table (ACL, table policy, missing table) reports available: false with the
reason instead of failing the call, so a blank section never reads as healthy.
servicenow_read_ops—kind:overview— the counts of every section below in one call.syslog— entries of the lastminutes(default 60, max 1440) at or abovelevel(defaultwarning), optionalsourcefragment: counts by level, top sources and the newest rows (messages capped at 500 chars).jobs— the scheduler queue (sys_trigger) by state, the number of ready jobs more thanoverdue_minutespast their next action, and theoverdue(default),runningorqueuedjobs with their claiming node.email_queue— outboundsys_email: the send-ready backlog and its oldest entry, counts by type in the window and the recent send failures.semaphores—sys_semaphorerows, newest first.
Rows are capped by
limit(default 25, max 200).servicenow_check_data_health— the data twin ofservicenow_check_code_healthfor onetable, optionally scoped byquery(no^NQ/ORDERBY): duplicate groups overkey_fields(Aggregate API grouping, count > 1, capped bylimit), and per reference field (reference_fields, default the first 10 non-system ones) the orphaned references (target row missing) and — when the target has anactivecolumn andstaleis notfalse— the stale references (target inactive), each with the encoded query that lists the rows. Field names are checked against the dictionary first. A target row the user cannot read also counts as orphaned.
The servicenow_why_is_it_slow prompt walks through these reads and, with a
table, the logic that runs on its writes.
Record history, properties and directory
Three opt-in packages cover day-to-day operations questions. Every read goes through the table policy and redaction like every other reader.
servicenow_get_record_history(history) —table+sys_id→ field changes fromsys_auditand journal entries (comments, work notes) fromsys_journal_field, merged newest first.source(all/audit/journal),fields,since(YYYY-MM-DD[ HH:MM:SS]),limit(defaultand
value_max_chars(default 2000) narrow it. Audit rows that repeat a journal entry are skipped. If a source cannot be read (ACL or policy), it is reported undersourcesand the other one is still returned.
servicenow_get_properties(properties) — an exactnameor a nameprefix→sys_propertiesrows. Password-type or secret-looking properties come back as[redacted], and long values are truncated.servicenow_set_property(properties) — sets the value of one existing property. It runs as plan/apply: the plan shows the current and the new value, and apply is journaled.servicenow_revert_writecan undo it, except for secret properties, which are never journaled in clear. It honoursSN_READONLYandSN_PACKAGES_READONLY=properties. A missing property isPROPERTY_NOT_FOUND; the tool never creates one.servicenow_lookup_directory(directory) —kind(user/group/role) plus a searchtermor asys_id. Withinclude_detailsand exactly one match, the result adds:for a user, its roles and groups;
for a group, its members and roles;
for a role, its contained roles and the groups that grant it.
A detail table that cannot be read is listed in
details_unavailable. PutdirectoryinSN_PACKAGES_DENYto remove the user-data surface.
Instance discovery
servicenow_document_instance (docs) takes an optional depth that adds a
discovery folder, <SN_DOCS_DIR>/<profile>/discovery/, next to README.md.
The tiers are cumulative:
| Files |
|
|
| + |
| + one |
The scopes are the named apps, else every non-global sys_app scope, up to
the per-run target cap (the rest are listed as skipped). artifacts-<scope>.md
lists every artefact type with a Collected / not collected and why column:
collected (with a count), capped, unverified (the table is not readable here),
no such table, unreadable for this user, package off, or no records in this
scope. Every read goes through the same policy, redaction, capability preflight
and write journal as the other generators. Without depth the tool behaves as
before.
Plugin skills
The Claude Code plugin (/plugin install servicenow-mcp-ai) ships eight skills
under skills/. Each one only orchestrates this server's tools; none holds
credentials or calls ServiceNow on its own.
Skill | Use it to |
| Map an instance or its custom apps with |
| Investigate a failing record, flow or script (status, history, logic, logs) |
| Assess what a change to a table, field or script would touch (where-used, table logic) |
| Compare two instances or a saved snapshot, or review an update set |
| Make a record change with plan-and-apply, the write journal and a revert path |
| Review a UI Builder page: page map, what a change touches, data broker security, page weight |
| Review upgrade readiness: unresolved skipped records, base vs customer versions, store app updates |
| Explain why a user can or cannot reach a table, record or field; review ACLs, hardening and cross-scope access |
A test (test/plugin-skills.test.js) checks that every servicenow_* name in a
skill exists in the tool manifest. The skills are not part of the npm package.
Subagents
Two read-only subagents ship under agents/. Their tools allowlist names
only this server's read-only tools (readOnlyHint), so neither can plan,
apply, revert or switch the instance; test/plugin-agents.test.js enforces it.
Agent | Use it to |
| Answer a question about the instance (a record, a table's automation, where something is used, a failed flow) and return a short report with its evidence instead of raw records |
| Review a plan preview or an update set before it is applied — target records, table logic, where-used, lint, policy, history — and return a go / hold verdict |
The change reviewer has no servicenow_check_code_health (it writes a local
report); it recommends the scan when a change touches ACLs.
Hooks
hooks/hooks.json registers three plain Node scripts (no dependencies):
Event | Script | What it does |
|
| Adds the active profile, its instance host, the write mode (plan / apply, read-only, a held prod profile), the tool packages and the other profile names to the session. It reads only the environment and the local env file ( |
|
| Refuses a destructive |
|
| When a ServiceNow result says |
Using the skills with other agents
The eight skills are portable Agent Skills: their
SKILL.md frontmatter uses only name and description, and they name tools
by their bare MCP name (servicenow_query_table), so any client that has this
server configured can run them. Copy or symlink the folders under skills/
into a directory the client scans:
Client | Project | Personal |
VS Code (GitHub Copilot) |
|
|
OpenAI Codex |
|
|
Cursor |
|
|
.agents/skills/ works in all three. For example, from a clone of this
repository:
mkdir -p ~/.agents/skills
cp -R skills/sn-* ~/.agents/skills/ # or: ln -s "$PWD"/skills/sn-* ~/.agents/skills/In VS Code, the extension's ServiceNow MCP: Add Agent Skills to Workspace command copies the eight skills into one of the project folders above (it asks before replacing a skill that is already there).
The subagents and hooks are Claude Code plugin features and do not carry over.
Service Portal tree
servicenow_explain_portal (ui, opt-in) explains a Service Portal (portal:
url_suffix or sys_id) or one page (page: page id or sys_id) as a tree.
The tree runs page → container → row → column → widget instance → widget. Instance
widget_parameters are mapped onto the widget's option_schema, and each widget
lists its dependencies, JS / CSS includes, Angular providers and templates. The
theme, menu, header / footer and route maps are included. Nested rows are
followed to depth (default 3, max 6), and the layout is read for the first 5
pages. format is json, markdown, mermaid (layout tree) or file. A
Service Portal table that cannot be read becomes a caveat, not a failure.
UI Builder experience map
servicenow_explain_ui_experience (ui, opt-in) explains a UI Builder
experience or workspace (sys_id or path of sys_ux_page_registry) as a
page map. It reads the page properties, app config, routes, screens (with their
applicability) and each screen's macroponent. The macroponent's composition,
data resources, client state and event wiring are decoded with the
uib-composition decoder, and the tool lists its client scripts and its
transform / scriptlet data brokers, each with its ux_data_broker ACLs. It
also covers the workspace landing page, dashboards, list menus (categories,
lists, applicability) and form action layouts. Reads are bounded, the call
reports progress and can be cancelled. format is json, markdown,
mermaid (page map) or file. Every UI Builder table and field name, and
every macroponent JSON shape, is unverified (U) until it is checked on a live
instance, so results carry verified: false. A table that cannot be read
becomes a caveat, not a failure.
The cmdb package also has servicenow_list_ci_relations (a CI's
cmdb_rel_ci relationships in either direction, with the related CI's name and
class) and servicenow_identify_reconcile, which sends an IRE payload of items
and relations. In plan mode, servicenow_identify_reconcile calls the
identify-only endpoint and shows what IRE would match; when the endpoint is
missing, the plan is marked degraded. Apply is journaled but not revertible,
because IRE decides per item.
servicenow_run_atf (a test, or a suite with kind: "suite") takes
wait_seconds (0–300). The tool polls the CI/CD progress endpoint with progress
notifications, and cancelling the request stops the wait. A run that is still
going when the time is up returns wait.state: "running" with a tracker
for servicenow_get_atf_result.
servicenow_insert_import_set_row also returns import_set_run (the
sys_import_set_run row of the import set) and transform_maps (the staging
table's maps, the ones this row used marked used: true). If either follow-up
read fails, you get warnings instead of an error.
Generic artifact reads
The opt-in artifacts package reads any type in the artifact registry (the
servicenow://artifact-types resource lists them, with their tables, key
fields and child tables):
servicenow_list_artifacts—artifactTypeplus optionalscope(namespace or sys_id),active,queryandlimit→ summaries: sys_id, name, natural key, scope, active flag, SDK-managed verdict and the type's metadata. No script bodies.servicenow_get_artifact—artifactTypeplussys_idor the naturalkey→ the full record, its child records in registry order (a UI policy's actions; a portal page's containers, rows, columns and widget instances; a flow's action instances), its scope and whether that scope is SDK-managed.servicenow_explain_artifact— same identification → a structured explanation: a one-linesummary,whenit runs (the trigger fields that are set), its non-emptyfields, its child records as compactitems, the records itreferences, and its encoded JSON fieldsdecoded(widget parameters, UI Builder props and data, flow label caches). A value that cannot be decoded comes back raw withdecoded: falseand areason— one bad field never fails the call. Long values are capped againstSN_MAX_RESULT_CHARS(a value gets at most a twentieth of it, the whole explanation four fifths);truncatedFields,truncated/previewand a child'somittedcount say what was cut. Flow action values and UI Builder compositions are read with the plain JSON decoder until their dedicated decoders ship (via: "json"). Some types also get anexplanationwithlinesof prose: a state model lists its states andfrom -> totransitions with their conditions, a choice set or table its choices per element in sequence order, and a UI policy or data policy the effect on each field when its condition holds (and, with reverse-if-false, when it does not).servicenow_get_artifact_dependencies— same identification plusdirection(outbound/inbound/both, default),depth(1–3, default 1),limit(rows per inbound source, 1–100) andformat(jsonormermaid) → a dependency graph ofnodesandedges(fromdepends onto, withviaandfield). Outbound edges come from registry reference fields on the record and its children, decoded JSON (flow step values, widget options, UI Builder data) and script text (script-include calls,GlideAjaxclasses, literalGlideRecordtables). Inbound edges come from reverse reference queries and — for a script include — script callers, flow steps whose values call it and the structural pass of the where-used graph. The walk visits each node once (cycles are safe), stops at 150 nodes (truncated), and turns an unreadable source into anunavailableentry instead of an error.
Every table read obeys SN_TABLES_ALLOW / SN_TABLES_DENY; a denied child
table comes back as redacted: true instead of failing the read, and
SN_REDACT_FIELDS / SN_REDACT_PII apply as everywhere. Types whose tables
are not yet confirmed on a live instance carry verified: false and a
caveat; when the instance rejects such a table the result is empty with a
degraded reason instead of an error, plus available: false when
sys_db_object shows that the table does not exist on the instance.
Artifact writes
servicenow_upsert_artifact({artifactType, key, fields, children?}) plans a
primary record and its child records as one unit (S-8 create / update /
noop per record), then applies them parent first, each journaled with one
shared artifact_write id so servicenow_revert_write undoes every line. The
H-11 table policy, the P-22 SDK guard and the H-3 plan token cover every
record of the plan.
Nested children. A child that hangs off another child names it by position with
parent(an earlier index inchildren): a portal page'ssp_container→sp_row→sp_column→sp_instancetree, a catalog variable'squestion_choicerows, a catalog UI policy's actions. A child key may be{sys_id}, so aservicenow_get_artifactresult round-trips unchanged. A wrong or missingparentisCHILD_PARENT_INVALID.SDK pre-flight. Portal widgets, pages, templates, dependencies, providers, headers / footers and portals, and catalog items, record producers, variables, variable sets and categories are checked at plan time the way the ServiceNow SDK checks them:
sp_widget.id(across every table extending it),sp_page.id,sp_portal.url_suffix,sp_dependencyname / module andsp_ng_template.idmust be unique on the instance and within the plan (DUPLICATE_UNIQUE_FIELD, 409); a catalog variable name must be a valid identifier (PREFLIGHT_INVALID); a create into a scoped application whose id lacks the<scope>_prefix gets aSCOPE_PREFIXwarning.Flows. A
flowaccepts only{active}on an existing flow — any other field, a child or a create isFLOW_ACTIVE_ONLY. This is unverified until O-5: that togglingactivethrough the Table API leavesmaster_snapshotunchanged has not been confirmed on a live instance, and every flow plan carries anUNVERIFIEDwarning.
The portal and catalog write fields are unverified until O-5 (verified: false in the registry).
Examples
Query the 5 most recent active incidents:
// servicenow_query_table
{
"table": "incident",
"query": "active=true^ORDERBYDESCsys_created_on",
"fields": ["number", "short_description", "priority", "state"],
"limit": 5,
}Create an incident:
// servicenow_create_record
{
"table": "incident",
"values": {
"short_description": "Printer on 3rd floor is down",
"urgency": "2",
"impact": "2",
},
}Update credentials at runtime:
// servicenow_set_credentials
{
"instance": "dev98765.service-now.com",
"user": "admin",
"password": "••••••",
}Resources
Read-only metadata is also exposed as MCP resources, so clients can attach it declaratively instead of calling a tool:
URI | Description |
| Connection status, auth mode, access policy (never includes the password). |
| Capability preflight: which admin-restricted |
| List of tables from |
| Columns of a table from |
| Configured connection profiles: name, host, user, read-only flag, credential completeness. |
| Columns of a table read through a specific named connection profile. The v2 URI |
| A Markdown document from the local docs store (nested paths allowed), wrapped in an untrusted-content block. |
| A file a |
| Artifact types the generic artifact tools accept: table, name / key / scope fields, child tables, SDK API, verified flag ( |
| Encoded-query reference: syntax, |
| The tool manifest as Markdown: every tool by package, read / write, and whether this session registered it under the package policy. |
| One tool in full: description, annotations, the published input and output schema, an example call, package and registration state. |
| One record through a named profile, masked like |
Resources are package-gated like tools: status, capabilities and the tool
reference are always on; encoded-query and the record template come with the table package, tables/schema with the schema package, instances/per-profile
schema with instance, and docs with the docs package. exports is on
unless docs is denied (SN_PACKAGES_DENY=docs).
The three templates support completion and listing: {table} completes from
the tables already in the schema cache plus a short seed list of common
tables, {profile} from the configured profiles, and {path} from the docs
manifest (index.json) by prefix and under the active profile's folder.
resources/list shows the cached tables and the documents (generated ones
first, titled from the manifest; at most 100 per template, with the docs
index.md always last). Lists and completions never call the instance.
Prompts
Ready-made workflows are exposed as MCP prompts; they orchestrate the tools and
insist on reading real values from the instance. table and profile
arguments complete like the resource templates. Arguments (at most 200
characters) reach the model inside an untrusted-content block, and every prompt
tells the model to treat instance data as data, not instructions. A prompt is
listed only when the packages its tools live in are enabled (triage: table;
change impact: change or table; document table: docs and scripts;
why is it slow: ops; security posture: codecheck; UIB page review: ui;
safe write: table; drift review: instance; schema impact: scripts;
discover instance: docs; the instance overview uses admin tools only and is
always listed). The safe-write, drift-review, schema-impact and
discover-instance prompts mirror the plugin skills sn-safe-write, sn-drift,
sn-impact and sn-discover (triage, UIB review, upgrade review and security posture mirror
sn-triage, sn-uib, sn-upgrade and sn-security). The list follows servicenow_enable_package /
servicenow_disable_package live, with notifications/prompts/list_changed:
Prompt | Argument | Purpose |
|
| Summarize, assess priority, categorize and recommend next steps. |
|
| Affected CIs, schedule conflicts and a go/no-go call. |
|
| Runs |
|
| System log, scheduler backlog, email queue and semaphores ( |
|
| Explains the UI Builder experience ( |
|
| Capability matrix ( |
|
| ACL scan and hardening compliance ( |
|
| Write mode first, then read → plan → apply after approval → verify → revert path. In apply mode ( |
|
| Snapshot the reference profile, compare two profiles (or one with its snapshot), review an update set, then drill into differences; security-relevant drift first. |
|
| Upgrade history, the unresolved skipped records of an upgrade, one skip's base vs customer versions, store apps with an update ( |
|
| Where-used (structural and text), the logic and events on the table, an optional ER diagram → dependants and a risk call. |
|
| Runs |
Project structure
.
├── .env # credentials (git-ignored; or ~/.config/servicenow-mcp-ai/.env)
├── .env.example # template
├── .github/workflows/ # CI matrix, CodeQL, npm / MCP Registry / Marketplace publishing
├── .vscode/mcp.json # VS Code MCP server registration
├── bin/ # CLI launcher (servicenow-mcp-ai.cjs, incl. the doctor command)
├── extension/ # VS Code extension (thin wrapper that registers the server)
├── docs/ # GitHub Pages site
├── scripts/ # generators + guards (README tools table, tool manifest, coverage guard)
├── src/
│ ├── index.ts # bootstrap: load env, register, connect transport
│ ├── core/ # HTTP client (auth, retry, SSRF guard), OAuth/JWT/mTLS, policy,
│ │ # settings, logging, config store, write journal, request
│ │ # context (profiles)
│ ├── api/ # one module per REST area: table, aggregate, attachment,
│ │ # importset, batch, catalog, change, knowledge, cmdb, scripts,
│ │ # flows, codecheck, atf, email, docs, diagrams, meta, doctor,
│ │ # history, properties, directory, portal…
│ ├── mcp/ # MCP surface: package registry/manifest, tool definition,
│ │ # resources, prompts, result envelopes, redaction, write mode
│ │ # (plan/apply), CSV export, stdio + HTTP transports
│ └── tools/ # tool registrations, one file per package (28 packages)
├── test/ # node:test suite (406 tests): unit, mock-fetch api, MCP smoke, doc guards
└── build/ # compiled output (after npm run build)Note on names: the npm package and the GitHub repository are both
servicenow-mcp-ai(the unscopedservicenow-mcpwas already taken on npm); the local working folder isservicenow-mcp. The difference is cosmetic and does not affect the build or runtime.
Security notes
The env file is git-ignored — do not commit real credentials.
The env file is written owner-only (
0600) — it holds a plaintext password.The server uses the stdio transport and only logs to
stderr; secrets and raw encoded queries are never logged.The password/token is never returned by any tool.
Secret columns are always masked. A column whose dictionary type is
password,password2orglide_encrypted(column-level encryption) comes back as[redacted]from every record-returning tool (query_table,get_record, batch, compare, exports, …) and is never stored in the write journal, whateverSN_REDACT_FIELDSsays. The types are read once per profile fromsys_dictionaryand cached like other schema (SN_SCHEMA_CACHE_TTL_SEC); when the dictionary is not readable, a list of OOTB secret column names (password,user_password,client_secret, …) applies instead, and the read goes on. This masking cannot be turned off.Hosts are restricted: without
SN_ALLOWED_HOSTS, only*.service-now.cominstances are contacted (internal/loopback blocked unless an allow-list entry names the host exactly), so a mistyped host cannot silently receive credentials. Redirects are never followed (REDIRECT_BLOCKED) and response bodies are capped bySN_MAX_BODY_BYTES. SetSN_ALLOWED_HOSTSto opt in a custom or sovereign-cloud domain. An explicit non-443 port or an IPv6 literal in the instance value is accepted only when an allow-list entry names it (host:8443,[2001:db8::1]).Every request — including OAuth token requests — carries the identifying
User-Agent: servicenow-mcp-ai/<version> (node/<major>; <transport>; <client>)so the instance's transaction log can attribute the traffic; extend it withSN_USER_AGENT_SUFFIX. Proxy URLs (SN_HTTPS_PROXY,HTTPS_PROXY) are honoured for every request but their credentials are never logged.Prefer OAuth 2.0 over Basic where possible (
SN_OAUTH_CLIENT_ID).Apply least privilege with
SN_TABLES_ALLOW/SN_TABLES_DENYandSN_READONLY=truefor read-only deployments.Table policy does not cover plugin APIs.
SN_TABLES_DENY=change_requestblocks the Table API path, but the Change Management API (sn_chg_rest) can still read/write changes. To restrict the plugin-backed surfaces useSN_PACKAGES_DENY(drop the whole package) orSN_PACKAGES_READONLY(register only its read tools). The Batch API obeys both axes too: a sub-request to a denied package's path is refused, and writes to a read-only package are blocked — a batch cannot be used to bypass the package policy.
Project documentation
Document | Contents |
Layered architecture, Mermaid diagrams (modules, request lifecycle, security model, auth, packages), condensed ADRs | |
Current product state: API coverage map, quality status, history timeline, roadmap | |
Forward plan: the shipped phases, the 2.x hardening line, the proposed 3.0 milestone, optional and deferred items | |
The proposed v3.0 execution tracker (correctness, governance, reach at scale) / the five-lens review its items are built on | |
The 2026-09-09 second pass over the v3.0 plan: nine narrower lenses, 67 findings each with design, acceptance criteria and tests, mapped to tracker items | |
The 2026-09-23 pass on instance documentation: the docs store, the Mermaid generators, the | |
The 2026-09-25 second pass on instance documentation: dispositions of the first 17 findings after the docs store, artefact registry, artefact readers and security scan landed, plus 12 new findings (ID-18 … ID-29) with design, acceptance criteria and tests, mapped to S-15, S-16, M-4, M-8, S-7, E-6, E-7 | |
Positioning vs the official ServiceNow MCP Server Console: comparison, where it structurally lags, the Phase 9 boost plan, and platform risks | |
Detailed specs for the upcoming phases (harness 2.0, multi-instance, flow testing) | |
Completed work with commit refs / remaining decisions | |
Detailed work journal / user-facing changelog | |
Dev setup, gates and conventions / security model and reporting |
Support
This project is built and maintained in my own time. If it saves you or your team time, please consider supporting its continued development — sponsorship directly funds new tools, bug fixes and keeping pace with ServiceNow's REST surface.
GitHub Sponsors — one-off or recurring, with no platform fee taken out (the preferred option).
Ko-fi — quick one-off support; it also accepts PayPal, so it's the fallback for anyone without a GitHub account.
Donate (Donatree) — a no-account donation page (card, PayPal and more) for a one-off tip.
Trademark
servicenow-mcp-ai is an independent, community-built project. It is not
affiliated with, endorsed by, or sponsored by ServiceNow, Inc.
"ServiceNow", the ServiceNow logo, "Now", and related marks are trademarks or registered trademarks of ServiceNow, Inc. in the United States and other countries. They are used in this project's name and documentation only nominatively — to identify the platform this software interoperates with — and no affiliation or endorsement is implied. All other product names and marks are the property of their respective owners.
Copyright (C) 2026 Ivan Baev. This project is licensed under the GNU GPL v3.0 or later; that license covers the source code and does not grant any rights to use the ServiceNow trademarks. Versions up to and including 3.0.0-beta.1 were released under the MIT License.
Available Tools
20 toolsservicenow_aggregateAggregate ServiceNow recordsARead-onlyIdempotent
Server-side aggregates (count, avg, min, max, sum) over a table via the Stats API, optionally grouped.
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Include a count (sysparm_count). | |
| query | No | Encoded query filtering the rows. | |
| table | Yes | Table, e.g. 'incident'. | |
| having | No | HAVING clause (sysparm_having). | |
| group_by | No | Fields to group by. | |
| instance | No | Profile (default active) | |
| avg_fields | No | Numeric fields to average. | |
| max_fields | No | Fields to take the max of. | |
| min_fields | No | Fields to take the min of. | |
| sum_fields | No | Numeric fields to sum. | |
| displayValue | No | Add display values (sysparm_display_value=all). |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description contributes 'server-side' and 'via the Stats API', which hints at where computation happens and that results are computed rather than raw rows, but says nothing about rate limits, max group cardinality, or behavior when requested fields are non-numeric.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One sentence, front-loaded with the core operation and scoped by the supported functions and grouping option. Nothing redundant, no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema and 100% schema coverage the description needn't restate fields or return shape, but for an 11-parameter aggregation tool it omits practical guidance: whether an empty group_by yields a single total, whether count is needed alongside sum, and the distinction from query_table. Adequate but with clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% with 11 well-described parameters, so the baseline is 3. The description adds no information beyond the schema — e.g. it does not clarify how count/avg_fields/group_by interact or whether displayValue affects aggregate output.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific operation (server-side aggregation) and enumerates the supported aggregate functions (count, avg, min, max, sum) over a ServiceNow table, with optional grouping. This clearly separates it in spirit from servicenow_query_table, though it never names that sibling explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied rather than stated: an agent can infer this is the tool for statistical rollups instead of row retrieval, and 'optionally grouped' hints at group_by usage. There is no explicit 'use this instead of query_table when you need counts/sums' routing or prerequisite guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_check_capabilitiesCheck achievable capabilitiesARead-onlyIdempotent
Preflight which sys_* tables are readable and which capabilities work — run it before scripts/flows/codecheck on a governed instance. 'groups' picks matrix probes; results are cached (refresh:true).
| Name | Required | Description | Default |
|---|---|---|---|
| groups | No | Groups to probe (default all), one read-only probe each; update_sets adds canRead / canSet (inferred). The sys_* preflight always runs. | |
| refresh | No | Discard the cache and probe again. | |
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| matrix | No | |
| summary | Yes | |
| degraded | Yes | |
| capabilities | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover the read-only, idempotent, non-destructive profile, and the description adds genuinely new behavior: results are cached and refresh:true discards the cache, each group is a single read-only probe, and the sys_* preflight always runs regardless of groups. Return shape is left to the output schema, which is acceptable.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One front-loaded sentence with the purpose first, then the workflow placement, then the parameter hints — no wasted sentences. It is dense with internal jargon ('matrix probes', 'codecheck') that an uninitiated agent may not resolve, which keeps it from a 5.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema, rich annotations, and fully documented parameters, the description only needs to supply workflow context and cache semantics — both are present. The phrase 'which capabilities work' remains slightly vague about what a capability failure looks like or how it differs from test_connection.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already carries parameter documentation and the baseline would be 3. The description adds cross-parameter meaning beyond that: 'groups' selects which probe matrix runs and refresh:true interacts with the described cache, tying the parameters to observable behavior.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (preflight/check) and a specific resource (sys_* table readability plus capability availability), which is clearly distinct from diagnostic siblings like test_connection and get_status. An agent can tell what this tool produces without opening the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly positions the tool in a workflow ('run it before scripts/flows/codecheck on a governed instance') and notes that refresh:true bypasses the cache. It does not name when-not-to-use cases or how it relates to sibling diagnostics such as test_connection, so it stops short of a full 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_create_recordCreate ServiceNow recordC
Create a new record in a table with the given field values.
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | true executes; omitted: a non-mutating plan preview (SN_WRITE_MODE=apply executes by default). | |
| table | Yes | Table, e.g. 'incident'. | |
| values | Yes | Field name/value pairs, e.g. { "short_description": "x" }. | |
| instance | No | Profile (default active) | |
| update_set | No | Update set (sys_id or exact name, in progress) to record the write in; switched for it, then restored. Default SN_UPDATE_SET, else unchanged. Data-row tables are not captured. | |
| inputDisplayValue | No | Values are display values the instance resolves (sysparm_input_display_value); default false: raw. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations only provide destructiveHint: false, so the description carries most of the behavioral disclosure burden. It does not mention the important non-mutating plan preview via apply, defaults such as SN_WRITE_MODE, or update_set and instance behavior described in the schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single front-loaded sentence with no filler or repetition. It is perhaps too terse for a mutation tool, but that is a completeness issue rather than a conciseness problem.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The schema is rich and fully documents parameters including apply preview, update_set, instance, and inputDisplayValue. However, the description omits behavioral context about the preview default and return behavior, which is notable for a create mutation with no output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all six parameters are documented in the schema. The description only echoes 'table' and 'field values' and adds no meaning beyond the schema, making the baseline 3 appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Create a new record in a table.' This clearly identifies the operation and required inputs, though it does not distinguish it from sibling tools like update_record or upsert_record.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit guidance on when to use this tool versus update_record or upsert_record, nor any prerequisites or exclusions. The usage is only implied by the verb 'Create.'
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_delete_recordDelete ServiceNow recordCIdempotent
Delete a record from a table by its sys_id.
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | true executes; omitted: a non-mutating plan preview (SN_WRITE_MODE=apply executes by default). | |
| table | Yes | Table, e.g. 'incident'. | |
| sys_id | Yes | Record sys_id. | |
| instance | No | Profile (default active) | |
| plan_token | No | Plan preview token (apply:true) | |
| update_set | No | Update set (sys_id or exact name, in progress) to record the write in; switched for it, then restored. Default SN_UPDATE_SET, else unchanged. Data-row tables are not captured. | |
| expected_mod_count | No | sys_mod_count from the plan's apply_with; with apply, a changed record is refused (STALE_RECORD). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations only declare idempotentHint=true. The description does not disclose that deletion is destructive, whether it is irreversible, how permissions apply, or that the schema's apply/plan_token workflow provides a non-mutating preview by default. "Delete" implies mutation, but beyond that the behavioral burden is largely left to the schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single front-loaded sentence with no wasted words. It is concise and readable, though it is arguably too terse for a destructive seven-parameter tool rather than optimally structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema and only an idempotent annotation, the description is minimally adequate because the input schema is fully documented. However, it omits high-level context about the plan-preview/apply workflow and destructive consequences that would help an agent use the tool safely.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all seven parameters, including apply preview, plan_token, update_set, and expected_mod_count. The description mentions table and sys_id only, adding no semantics beyond what the schema provides; a baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description gives a specific verb and resource: "Delete a record" and specifies by table and sys_id. It is clear enough to distinguish from query/create/update siblings by operation, but it does not explicitly differentiate itself from other mutation tools or mention alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit when-to-use guidance, no when-not-to-use guidance, and no named alternative such as update or upsert. The only usage signal is the implied action in "Delete a record," which is essentially a restatement of the tool name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_describe_tableDescribe ServiceNow tableARead-onlyIdempotent
List a table's columns from sys_dictionary (name, label, type, mandatory, reference, default, flags). details:true adds choice lists and dictionary overrides.
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table, e.g. 'incident'. | |
| details | No | Add choice lists and dictionary overrides (two extra reads). | |
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| table | Yes | |
| columns | Yes | |
| warnings | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description still adds real value by naming the backing source (sys_dictionary) and disclosing that details:true costs two extra reads, which is a concrete cost signal. It stops short of noting any row/column caps or truncation behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with zero filler; the core capability is front-loaded and the optional-cost note follows immediately. Every clause earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present and a fully documented input schema plus read-only annotations, the definition is nearly self-sufficient; it doesn't need to explain return values. The missing piece is workflow placement relative to servicenow_query_table and servicenow_list_tables, which is the one thing an agent must still guess.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, including the '(two extra reads)' cost note, so the description's details:true sentence largely restates the schema. The `instance` profile parameter is not addressed at all in the description. Baseline 3 is appropriate given the schema carries the parameter burden.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ("List a table's columns from sys_dictionary") and enumerates the fields returned (name, label, type, mandatory, reference, default, flags), so an agent knows exactly what it gets. It is implicitly distinguishable from servicenow_list_tables, but the description never names that sibling, so the differentiation requires inference.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description contains no when-to-use guidance: it never says to call this before servicenow_query_table, nor when to prefer servicenow_explain_policy or servicenow_list_tables. The only conditional content ("details:true adds...") is about a parameter, not about tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_disable_packageDisable a tool packageAIdempotent
Disable a tool package for this session: its tools, resources and prompts are withdrawn (list_changed is sent). The admin tools cannot be disabled.
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name, e.g. 'codecheck'. | |
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| tools | Yes | |
| changed | Yes | |
| enabled | Yes | |
| package | Yes | |
| prompts | Yes | |
| readOnly | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the annotations (idempotent, non-destructive, closed-world), the description adds real behavioral context: the effect is session-scoped, resources and prompts are withdrawn alongside tools, a list_changed notification is emitted, and admin packages are immune. It does not say whether in-flight operations are affected or whether other sessions are untouched.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One compact sentence with the scope and effect front-loaded and the admin exemption immediately after. No filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With annotations covering safety and an output schema covering returns, the description supplies what an agent still needs: session scope, the full effect on tools/resources/prompts, and the admin exclusion. Only edge cases like in-flight or cross-session effects are omitted, which is minor.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so both parameters (name, instance) are already documented in the schema. The description adds no format or constraint detail beyond that, which is the baseline expectation here.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description gives a specific verb and resource ("Disable a tool package") plus scope ("for this session") and the concrete effect (tools, resources and prompts withdrawn). It does not name the sibling servicenow_enable_package as the inverse, so the differentiation is implicit rather than explicit.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It states the context of use (session-scoped disabling) and one explicit exclusion: admin tools cannot be disabled. It stops short of pointing to enable_package for reversal or describing when disabling is preferred over other approaches.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_enable_packageEnable a tool packageAIdempotent
Enable a tool package for this session (list_changed is sent). Denied packages are refused; a read-only package brings only its read tools. Ends with the session.
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name, e.g. 'codecheck'. | |
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| tools | Yes | |
| changed | Yes | |
| enabled | Yes | |
| package | Yes | |
| prompts | Yes | |
| readOnly | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Adds real behavior beyond the annotations: a list_changed notification is emitted, denied packages are refused rather than erroring opaquely, read-only packages expose only read tools, and the effect is session-scoped and ephemeral. The only gap is the absence of any statement about permissions required to enable a denied package (what makes a package 'denied').
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three compact clauses, front-loaded with the core action, no filler. There is mild redundancy between "for this session" and "Ends with the session," which prevents a 5.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present and full parameter documentation, the description only needs to cover side effects and lifecycle, which it does (notification, denial, read-only filtering, session expiry). Prerequisite/authorization context would round it out but is not essential for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so both 'name' (with a format example) and 'instance' (defaulting to the active profile) are already fully documented in the schema. The description adds nothing on parameter meaning, which is the expected baseline when the schema carries the load.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ("Enable a tool package") plus scope ("for this session"), which cleanly separates it from disable_package and list_packages in the sibling set. It does not explicitly name the counterpart tool, but the action is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is only implied: an agent infers it calls this to load a package's tools for the session. There is no guidance on prerequisite steps (e.g., list_packages or find_tools first, credential/instance setup) or when to prefer this over other activation paths.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_explain_policyExplain ServiceNow access policyARead-onlyIdempotent
Say whether a table may be read or written under the active policy and which rule decides, or, without a table, return the effective policy. Local; no instance call.
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Table to check. | |
| action | No | Default read. | |
| instance | No | Profile (default active) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that — 'Local; no instance call' tells the agent no credentials or network are needed and that results are advisory, not enforced. It does not say what happens when the policy is ambiguous or whether it reflects cached vs. live state.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single dense sentence with zero filler; the primary mode is stated first, the fallback mode second, and the locality constraint last. Every clause carries information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description does the work of explaining both return shapes (verdict plus deciding rule, or effective policy) and the no-network guarantee, which is sufficient to call it correctly. Minor gap: it does not clarify what 'active policy' or 'profile' resolves to when multiple instances exist.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: omitting 'table' changes the tool's entire output mode to returning the effective policy. That conditional behavior is the key semantic an agent needs and it is only stated here.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a precise verb and outcome — decide whether a table may be read or written and name the deciding rule — and covers the fallback mode (no table returns effective policy). This clearly separates it from the CRUD and query siblings, which act on data rather than explain policy.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The two modes (with table vs. without) imply when each path applies, and 'Local; no instance call' signals this is a pre-flight check rather than a data operation. However, it never states that it should be used before create_record/update_record or how it relates to servicenow_check_capabilities, leaving alternative selection to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_find_toolsFind tools by intentARead-onlyIdempotent
Search all tool packages, loaded or not, by intent; servicenow_enable_package loads a match's package.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | What to do, e.g. 'run an ATF suite'. | |
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| matches | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: the search spans unloaded packages, which is a non-obvious scope fact, and that results are intended to be fed into servicenow_enable_package.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single semicolon-joined sentence with zero filler, front-loading the scope constraint and ending with the actionable next step.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return shape needn't be described, and the description supplies the search scope and the follow-up action. A brief note on how matches relate to package names/instances would close the last gap, but nothing essential for correct invocation is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 67% and the query parameter already carries an example ('run an ATF suite'). The phrase 'by intent' reinforces that query is a natural-language goal, but limit and instance get no mention and only the schema carries them; baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Specific verb ('Search'), specific resource ('all tool packages'), and explicit scope ('loaded or not, by intent'). It also names the sibling that consumes the result (servicenow_enable_package), so an agent can distinguish it from servicenow_list_packages and the record CRUD tools without further reading.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Implies when to use it: when you know the intent rather than a package name, and the follow-up is servicenow_enable_package to load a match. It does not explicitly contrast against servicenow_list_packages (enumerate vs. intent search), but the routing to the enable step is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_get_recordGet ServiceNow recordCRead-onlyIdempotent
Read a single record from a table by its sys_id.
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table, e.g. 'incident'. | |
| fields | No | Columns (default all). | |
| sys_id | Yes | Record sys_id. | |
| instance | No | Profile (default active) | |
| displayValue | No | As in query_table. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description adds essentially nothing on the safety profile. It omits useful behavioral context such as what happens when the sys_id does not exist, whether fields default to all columns, and how displayValue affects the payload.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler, so nothing needs trimming. It is efficient but borders on under-specified rather than genuinely concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists and annotations carry the safety profile, so the thin description is not fatal. Still, for a read tool with five parameters and a common not-found failure mode, one sentence leaves the agent inferring error behavior and field-selection semantics.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so every parameter including fields, instance and displayValue is already documented in the schema. The description only names table and sys_id, adding no syntax or format detail beyond what the schema provides, which matches the baseline 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Read a single record') plus the scoping mechanism ('from a table by its sys_id'), which is enough to distinguish it from servicenow_query_table's bulk retrieval without opening either schema. It stops short of naming siblings explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use guidance, no exclusions, and no named alternative such as servicenow_query_table. Only the oblique hint 'by its sys_id' suggests the precondition that the caller already knows the identifier.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_get_statusGet ServiceNow connection statusARead-onlyIdempotent
Show instance, auth, missing credentials, per-profile write mode, policy, limits, TLS, queue, write counters, version, uptime. Secrets are never shown.
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| http | Yes | |
| user | Yes | |
| policy | Yes | |
| server | Yes | |
| writes | Yes | |
| authMode | Yes | |
| instance | Yes | |
| profiles | Yes | |
| readOnly | Yes | |
| telemetry | Yes | |
| configured | Yes | |
| pluginApis | Yes | |
| sdkManaged | Yes | |
| passwordSet | Yes | |
| authWarnings | Yes | |
| deniedTables | Yes | |
| activeProfile | Yes | |
| allowedTables | Yes | |
| deniedPackages | Yes | |
| profileDetails | Yes | |
| enabledPackages | Yes | |
| readOnlyPackages | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already establish that this is a read-only, idempotent, non-destructive operation. The description adds useful behavioral context by inventorying exposed fields and explicitly stating that secrets are never shown, which is important for a status tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences and contains no filler; the field inventory is dense but purposeful. The secret-disclosure note is front-loaded enough to be noticed, though the long field list is terse rather than explanatory.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With rich annotations, complete schema coverage, and an output schema, the description only needs to summarize scope and special behavior. It does that, including the important 'secrets are never shown' guarantee, though it leaves sibling differentiation unaddressed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, and the single optional parameter is documented as 'Profile (default active).' The description reinforces the profile context via 'per-profile write mode' but does not add syntax or selection details beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a clear verb, 'Show,' and enumerates the status fields returned, so the purpose is specific and understandable. However, it does not explicitly distinguish this status tool from siblings like servicenow_test_connection or servicenow_check_capabilities.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description lists what will be shown but gives no explicit guidance on when to use this tool versus alternatives. An agent can infer it is a status/diagnostic tool, but there are no stated exclusions or sibling references.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_list_instancesList connection profilesBRead-onlyIdempotent
List the connection profiles: name, host, user, auth method (and OAuth grant), refresh-token state, read-only flag, write mode, credentials complete. Secrets are never included.
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| profiles | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely useful context beyond them: the exact fields surfaced (auth method, OAuth grant, refresh-token state, write mode, credentials complete) and the security guarantee that secrets are never returned. It omits any note on ordering or volume when many profiles exist, which keeps it short of a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One front-loaded clause stating the action followed by a compact field list — no filler. The field enumeration partly duplicates what the output schema already conveys, so it is not maximally economical, but it remains tight.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Safety profile is covered by annotations and return shape by the output schema, so the description only needs to situate the tool in the profile workflow. It fails to do that: nothing explains the relationship to use_instance/set_credentials or whether the optional instance param filters or targets a profile.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the single optional 'instance' param is documented there as 'Profile (default active)'. The description adds no extra meaning and in fact reads as listing all profiles, leaving mild ambiguity about whether the param narrows the result to one profile. Baseline 3 applies when the schema carries the load.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (List) and resource (connection profiles) and enumerates the fields returned, so the agent knows exactly what this yields versus the record/table tools. It does not, however, differentiate from the closest siblings like servicenow_use_instance or servicenow_set_credentials that also deal with profiles.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no when-to-use guidance: it doesn't say to call this before servicenow_use_instance to discover profile names, or that it is the inspection counterpart to servicenow_set_credentials. An agent must infer its role in the profile workflow purely from the name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_list_packagesList tool packagesARead-onlyIdempotent
List tool packages with their session state: enabled, configured, denied, read-only, tool count. Toggle one with servicenow_enable_package / servicenow_disable_package.
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| enabled | Yes | |
| packages | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already establish readOnlyHint, idempotentHint, closed-world, and non-destructive behavior. The description adds useful context about the tool's output states—enabled, configured, denied, read-only—which clarifies what 'session state' means operationally, and points to the mutation siblings. It does not discuss permissions or rate limits, but with rich annotations that is a minor gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tightly packed sentences with no filler, and the core purpose is front-loaded before the alternative-action guidance.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only list operation with an output schema and rich annotations, the description covers purpose, returned state categories, and the toggle alternatives. It is essentially complete, though a brief note on the default-instance behavior or relationship to servicenow_find_tools would make it fully self-contained.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter, instance, is fully documented in the schema ('Profile (default active)'), so schema coverage is 100%. The description adds no parameter-specific semantics beyond the schema, which is the expected baseline of 3 when the schema carries the burden.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('List tool packages') and enumerates the session-state fields returned (enabled, configured, denied, read-only, tool count). This clearly distinguishes it from siblings like servicenow_list_tables and servicenow_list_instances without needing to inspect schemas.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Names the exact sibling tools to use for the adjacent mutation action ('Toggle one with servicenow_enable_package / servicenow_disable_package'), giving clear routing for toggling. It stops short of explicitly stating when to use this versus servicenow_find_tools or other listing tools, so it is strong but not exhaustive.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_list_tablesList ServiceNow tablesARead-onlyIdempotent
List tables from sys_db_object, optionally filtered by a name or label fragment.
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Case-insensitive name or label fragment. | |
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| tables | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered without the description's help. The description adds only that results come from sys_db_object; it says nothing about result volume, pagination, or whether the full catalog is returned, which matters for a catalog-listing tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One short sentence with no filler, and the source table is front-loaded before the optional filter clause. It is tight, though arguably too terse to carry routing information for a 20-sibling toolkit.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values need not be explained, and the filter semantics are covered. The remaining gap is that it never positions itself in the discovery workflow relative to describe_table/query_table, but for a simple two-optional-param read tool this is close to complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so both parameters are already documented in the schema, including the case-insensitivity of the filter. The description's 'name or label fragment' restates the schema rather than adding matching semantics or examples beyond it, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Specific verb plus resource ('List tables') and it even names the backing table, sys_db_object, which tells an agent exactly what universe of results to expect. It does not, however, distinguish itself from close siblings like servicenow_describe_table or servicenow_query_table, so the agent must infer that this is metadata discovery rather than data retrieval.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'optionally filtered by a name or label fragment' implies the discovery use case (search for a table before querying it), but there is no explicit when-to-use statement and no mention of when to prefer servicenow_describe_table or servicenow_query_table instead. Usage is inferable rather than stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_query_tableQuery ServiceNow tableARead-onlyIdempotent
Read records from any table (Table API): encoded query, fields, paging, fetchAll. '^' cannot be escaped inside a value; very long queries can hit HTTP 414 — split them. See the servicenow://reference/encoded-query resource.
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | UI view's fields (sysparm_view); 'fields' wins. | |
| limit | No | Max records (default 10). | |
| query | No | Encoded query (sysparm_query), e.g. 'active=true^ORDERBYDESCsys_created_on'. | |
| table | Yes | Table, e.g. 'incident'. | |
| domain | No | Only this domain's rows (sys_id). | |
| fields | No | Columns (default all); 'summary': the list view's. | |
| format | No | 'json' (default), 'csv', 'table' (columns + rows) or 'file': the full (redacted) result to <profile>/exports/. | |
| offset | No | Records to skip (paging). | |
| explain | No | Read no records: which conditions can use an index, with cost notes (advice). | |
| noCount | No | Skip the row count (sysparm_no_count): faster on huge tables; 'total' unknown. | |
| fetchAll | No | All matches (≤ SN_MAX_RECORDS): sys_id cursor without an ORDERBY (stable), else offset. | |
| instance | No | Profile (default active) | |
| omitEmpty | No | Drop empty cells; columns are listed. | |
| fileFormat | No | With format 'file': 'csv' (default; columns from 'fields' or page 1) or 'jsonl' (all keys). | |
| displayValue | No | 'true' display, 'false' raw (default), 'all' both, 'display' compact ([sys_id, name] refs). | |
| queryCategory | No | sysparm_query_category, e.g. a read replica. | |
| queryNoDomain | No | Query all accessible domains (sysparm_query_no_domain). | |
| suppressPaginationHeader | No | sysparm_suppress_pagination_header. |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | |
| rows | No | |
| count | No | |
| total | No | |
| format | No | |
| explain | No | |
| records | No | |
| truncated | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint/idempotentHint, so the safety profile is covered. The description adds genuinely non-obvious operational context: '^' cannot be escaped inside a value, and very long queries can trigger HTTP 414 and must be split. It does not discuss result-set size caps or redaction behavior of the 'file' format, leaving some operational gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences, each earning its place: purpose first, then two concrete operational caveats, then a pointer to deeper docs. No filler or restatement of the title.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present and all parameters documented, the description only needs to supply the quirks an agent can't infer. It covers the encoded-query escaping/414 risk and defers to a reference resource, which is largely sufficient for an 18-parameter tool, though fetchAll vs limit interaction could be spelled out a bit more.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all 18 parameters are already documented in the schema; baseline is 3. The description restates the main knobs (encoded query, fields, paging, fetchAll) and adds the '^' escaping caveat, but adds little beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Read records from any table') and names the underlying API (Table API). An agent can distinguish this general query tool from servicenow_get_record and servicenow_aggregate without opening any schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied by the read/query framing and the pointer to the encoded-query reference resource, but the description never explicitly contrasts this with sibling tools such as get_record (single record) or aggregate. No when-not guidance is given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_set_credentialsSet ServiceNow credentialsAIdempotent
Save connection credentials to the env file for later requests (any subset; auth / oauth_client_id / oauth_grant pick the method). Secrets are never arguments: list them in request_secrets for elicitation. See 'instance' for host changes.
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Stored as SN_AUTH (default: inferred). | |
| user | No | ServiceNow username. | |
| profile | No | Profile (default active); a new name creates one. | |
| instance | No | Instance host, e.g. 'dev12345'. A change needs the new host's auth in the same call (Basic: user + password, else CREDENTIALS_INCOMPLETE) and elicitation confirmation unless SN_ALLOW_UNCONFIRMED_CREDENTIAL_CHANGE=1. | |
| password | No | ServiceNow password. | |
| oauth_grant | No | Stored as SN_OAUTH_GRANT. | |
| oauth_client_id | No | OAuth client id (not a secret). | |
| request_secrets | No | Secrets to enter through elicitation (never as arguments). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare idempotent, non-destructive, closed-world, so the bar is lower; the description still adds that credentials are persisted to an env file affecting later requests and that secret material flows only through elicitation. The instance-change confirmation rule is echoed from the schema rather than new, which keeps it from a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences, front-loaded with the action and scope before the security constraint. The parenthetical cross-reference ('See instance for host changes') is terse to the point of ambiguity about whether it means the local parameter or a sibling tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For an 8-parameter, no-output-schema config mutation tool, the description covers persistence, partial updates, secret handling, and host-change preconditions. It leaves unclear whether saved credentials overwrite prior ones per profile and whether validation happens before or after the write, but nothing critical to invoking it is absent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3; the description earns above baseline by explaining the cross-parameter logic that the schema cannot express — that zero-required-param calls are valid and that the presence of auth/oauth_client_id/oauth_grant selects the auth method. It does not add much on profile or user semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: save connection credentials to the env file for later requests, with the partial-update semantics ('any subset') explicit. It distinguishes itself from the record-level CRUD siblings by being configuration-oriented, though it does not name servicenow_use_instance, the closest alternative for instance switching.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives concrete operational guidance: any subset of params is valid, auth/oauth_client_id/oauth_grant determine the auth method, secrets must be routed through request_secrets rather than passed as arguments, and host changes are governed by the 'instance' field. It stops short of stating when to prefer this over servicenow_use_instance or servicenow_test_connection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_test_connectionTest ServiceNow connectionARead-onlyIdempotent
Verify the credentials work: reads one sys_user record, reports ok/status/latency. Auth and connectivity problems come back as ok:false, not errors.
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Profile (default active) |
Output Schema
| Name | Required | Description |
|---|---|---|
| ok | Yes | |
| user | No | |
| status | Yes | |
| message | No | |
| latencyMs | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Adds genuinely non-obvious behavior beyond the annotations: it discloses the underlying probe (one sys_user read), the response shape (ok/status/latency), and critically that auth and connectivity failures surface as ok:false rather than thrown errors. That error-semantics disclosure prevents an agent from misinterpreting a failed result.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, zero filler, and the primary action is front-loaded before the secondary failure-mode note. Every clause carries information an agent needs.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return-value detail is unnecessary, and the description supplies the key failure-mode context. The remaining gap is situational: it does not indicate which profile is probed by default or how it relates to the sibling status/capabilities tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the single 'instance' parameter is documented as 'Profile (default active)', so the schema carries the burden. The description mentions no parameter behavior at all, leaving it at the baseline for well-covered schemas.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
A specific verb plus resource ('Verify the credentials work') with concrete mechanism: reads one sys_user record and reports ok/status/latency. It does not distinguish itself from sibling tools like servicenow_get_status or servicenow_check_capabilities, so an agent must infer the boundary.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied ('verify the credentials work') rather than stated as a condition, and no alternatives are named. With servicenow_get_status and servicenow_check_capabilities in the sibling list, the description should say when this test connection is preferred over those, but it does not.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_update_recordUpdate ServiceNow recordBIdempotent
Update fields on an existing record identified by its sys_id.
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | true executes; omitted: a non-mutating plan preview (SN_WRITE_MODE=apply executes by default). | |
| table | Yes | Table, e.g. 'incident'. | |
| sys_id | Yes | Record sys_id. | |
| values | Yes | Field name/value pairs to change. | |
| instance | No | Profile (default active) | |
| update_set | No | Update set (sys_id or exact name, in progress) to record the write in; switched for it, then restored. Default SN_UPDATE_SET, else unchanged. Data-row tables are not captured. | |
| inputDisplayValue | No | Values are display values the instance resolves (sysparm_input_display_value); default false: raw. | |
| expected_mod_count | No | sys_mod_count from the plan's apply_with; with apply, a changed record is refused (STALE_RECORD). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover idempotency and non-destructiveness, lowering the bar, but the description adds almost no behavioral context. It omits key behavioral facts documented only in the schema, such as the non-mutating preview default via apply, STALE_RECORD refusal with expected_mod_count, and update-set handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single front-loaded sentence with no filler. Every part of the sentence contributes to identifying the operation.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For an 8-parameter mutation tool with a nested values object, preview/apply behavior, concurrency checks, and update-set scoping, the description is minimal. The rich schema compensates substantially, but the description itself does not surface the critical preview default or the distinction from upsert/create.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all 8 parameters, including apply, expected_mod_count, update_set, and inputDisplayValue, are already documented in the schema. The description adds no parameter semantics beyond identifying sys_id as the record identifier.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb (update), resource (fields on an existing record), and identifier (sys_id). It is clear but does not explicitly differentiate this from sibling tools such as servicenow_upsert_record or servicenow_create_record.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It implies usage for updating an existing record by sys_id, but gives no explicit when-to-use guidance, exclusions, or alternatives. With siblings like upsert_record and create_record present, the boundary between them is left implicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_upsert_recordUpsert ServiceNow recordAIdempotent
Create or update one record matched by an exact key of field/value pairs: no match creates, one updates, several are refused (AMBIGUOUS_KEY). Pass the plan's expected_action / expected_sys_id with apply:true; a changed decision gives STALE_RECORD.
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Field/value pairs identifying the record, matched on raw values ('' matches an empty field); no '^' in values. | |
| apply | No | true executes; omitted: a non-mutating plan preview (SN_WRITE_MODE=apply executes by default). | |
| table | Yes | Table name, e.g. 'cmdb_ci_server'. | |
| values | Yes | Fields to write (plus the key fields on create). | |
| instance | No | Profile (default active) | |
| update_set | No | Update set (sys_id or exact name, in progress) to record the write in; switched for it, then restored. Default SN_UPDATE_SET, else unchanged. Data-row tables are not captured. | |
| expected_action | No | The plan's action; with apply, refused (STALE_RECORD) if the key now resolves differently. | |
| expected_sys_id | No | The plan's sys_id; with apply, refused (STALE_RECORD) if the key now matches another record or none. | |
| inputDisplayValue | No | Values are display values the instance resolves (sysparm_input_display_value); default false: raw. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Goes well beyond the idempotentHint/destructiveHint annotations by disclosing the three-case match behavior, the AMBIGUOUS_KEY and STALE_RECORD error codes, and the fact that omitting apply produces a non-mutating preview plan. That is exactly the safety context an agent needs before a write.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tightly packed sentences, front-loaded with the create/update rule and the identity constraint, followed by the safety/plan mechanics. No filler or restatement of the title.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 9-parameter mutation tool with nested objects and no output schema, the description covers the decision-critical parts: match cardinality, preview vs apply, and stale-plan protection. Minor gaps remain around what a successful call returns (sys_id, created vs updated) and update_set side effects, which are only in the schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3, but the description still adds real meaning: it explains how expected_action/expected_sys_id pair with apply:true to produce STALE_RECORD, and that key matching is exact. It does not add detail on update_set or inputDisplayValue, but those are fully documented in the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Starts with a specific verb pair and resource ("Create or update one record") and immediately defines the rule that separates it from servicenow_create_record and servicenow_update_record: matching by an exact key and the three cardinality outcomes. No ambiguity about what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives clear conditions to use it (key-based identity, plan/apply flow) and explains the refusal case for multiple matches. It never names the sibling create/update tools to say when to prefer them, so the agent must infer the choice rather than being routed explicitly.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
servicenow_use_instanceSwitch connection profileAIdempotent
Switch the connection profile (over HTTP: this session only unless persist).
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Profile to activate, e.g. 'dev'. | |
| persist | No | Write the env file (journaled; default false). | |
| instance | No | Profile (default active) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already mark the tool as idempotent and non-destructive, and the description adds the important behavioral detail that over HTTP the switch is session-only unless persist is set. This clarifies the side effect of persist without contradicting the annotations. It does not state authentication requirements, but the annotations and schema cover the core safety profile.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single tightly scoped sentence with the core action front-loaded and the session-persistence nuance in a parenthetical. Every part of it contributes information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple switch tool with no output schema and fully described parameters, the description covers the key behavioral nuance of session-only versus persist. It leaves out minor details such as what happens with an invalid profile name, but is otherwise sufficient for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents name, persist, and instance. The description reinforces that persist controls session-only versus persisted switching, but adds little beyond the schema's own explanation of persist as writing the env file.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource: 'Switch the connection profile.' It is clearly distinguishable from sibling tools like servicenow_set_credentials and servicenow_list_instances, though it does not explicitly name an alternative.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies when to use the tool by saying it switches the active connection profile. It does not explicitly state when to prefer this over alternatives such as servicenow_list_instances or servicenow_test_connection, nor does it list any exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
25 tool updates
v3.0.0- Changed
servicenow_aggregate29 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - added
Input schema / properties / avg_fields / items / maxLengthAdded value: +255 - added
Input schema / properties / avg_fields / items / patternAdded value: +"^[A-Za-z0-9_.]+(?:\\s*,\\s*[A-Za-z0-9_.]+)*$" - added
Input schema / properties / avg_fields / maxItemsAdded value: +200 - changed
Input schema / properties / count / descriptionPrevious value: -"Include a record count (sysparm_count)."New value: +"Include a count (sysparm_count)." - added
Input schema / properties / displayValueAdded value: +{ + "description": "Add display values (sysparm_display_value=all).", + "type": "boolean" +} - added
Input schema / properties / group_by / items / maxLengthAdded value: +255 - added
Input schema / properties / group_by / items / patternAdded value: +"^[A-Za-z0-9_.]+(?:\\s*,\\s*[A-Za-z0-9_.]+)*$" - added
Input schema / properties / group_by / maxItemsAdded value: +200 - changed
Input schema / properties / having / descriptionPrevious value: -"HAVING clause to filter groups (sysparm_having)."New value: +"HAVING clause (sysparm_having)." - added
Input schema / properties / having / maxLengthAdded value: +8000 - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Input schema / properties / max_fields / descriptionPrevious value: -"Fields to take the maximum of."New value: +"Fields to take the max of." - added
Input schema / properties / max_fields / items / maxLengthAdded value: +255 - added
Input schema / properties / max_fields / items / patternAdded value: +"^[A-Za-z0-9_.]+(?:\\s*,\\s*[A-Za-z0-9_.]+)*$" - added
Input schema / properties / max_fields / maxItemsAdded value: +200 - changed
Input schema / properties / min_fields / descriptionPrevious value: -"Fields to take the minimum of."New value: +"Fields to take the min of." - added
Input schema / properties / min_fields / items / maxLengthAdded value: +255 - added
Input schema / properties / min_fields / items / patternAdded value: +"^[A-Za-z0-9_.]+(?:\\s*,\\s*[A-Za-z0-9_.]+)*$" - added
Input schema / properties / min_fields / maxItemsAdded value: +200 - changed
Input schema / properties / query / descriptionPrevious value: -"Encoded query to filter rows before aggregating."New value: +"Encoded query filtering the rows." - added
Input schema / properties / query / maxLengthAdded value: +8000 - added
Input schema / properties / sum_fields / items / maxLengthAdded value: +255 - added
Input schema / properties / sum_fields / items / patternAdded value: +"^[A-Za-z0-9_.]+(?:\\s*,\\s*[A-Za-z0-9_.]+)*$" - added
Input schema / properties / sum_fields / maxItemsAdded value: +200 - changed
Input schema / properties / table / descriptionPrevious value: -"Table name, e.g. 'incident'."New value: +"Table, e.g. 'incident'." - added
Input schema / properties / table / patternAdded value: +"^[A-Za-z0-9_]{1,80}$" - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": {}, + "properties": { + "result": {} + }, + "type": "object" +}
- Changed
servicenow_check_capabilities6 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - added
Input schema / properties / groupsAdded value: +{ + "description": "Groups to probe (default all), one read-only probe each; update_sets adds canRead / canSet (inferred). The sys_* preflight always runs.", + "items": { + "enum": [ + "writes", + "update_sets", + "attachments", + "aggregate", + "import_sets", + "email", + "atf", + "version", + "roles" + ], + "type": "string" + }, + "maxItems": 50, + "type": "array" +} - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - added
Input schema / properties / refreshAdded value: +{ + "description": "Discard the cache and probe again.", + "type": "boolean" +} - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": {}, + "properties": { + "capabilities": {}, + "degraded": { + "type": "boolean" + }, + "matrix": {}, + "summary": { + "type": "string" + } + }, + "required": [ + "degraded", + "summary" + ], + "type": "object" +}
- Changed
servicenow_create_record11 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / apply / descriptionPrevious value: -"Execute the change. In the default plan mode, omitting this returns a non-mutating before/after preview; set true to apply. SN_WRITE_MODE=apply makes execution the default."New value: +"true executes; omitted: a non-mutating plan preview (SN_WRITE_MODE=apply executes by default)." - removed
Input schema / properties / fieldsRemoved value: -{ - "additionalProperties": { - "type": [ - "string", - "number", - "boolean", - "null" - ] - }, - "description": "Field name/value pairs for the new record, e.g. { \"short_description\": \"Printer down\", \"urgency\": \"2\" }.", - "type": "object" -} - added
Input schema / properties / inputDisplayValueAdded value: +{ + "description": "Values are display values the instance resolves (sysparm_input_display_value); default false: raw.", + "type": "boolean" +} - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Input schema / properties / table / descriptionPrevious value: -"Table name, e.g. 'incident'."New value: +"Table, e.g. 'incident'." - added
Input schema / properties / table / patternAdded value: +"^[A-Za-z0-9_]{1,80}$" - added
Input schema / properties / update_setAdded value: +{ + "description": "Update set (sys_id or exact name, in progress) to record the write in; switched for it, then restored. Default SN_UPDATE_SET, else unchanged. Data-row tables are not captured.", + "maxLength": 100, + "minLength": 1, + "type": "string" +} - added
Input schema / properties / valuesAdded value: +{ + "additionalProperties": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "description": "Field name/value pairs, e.g. { \"short_description\": \"x\" }.", + "type": "object" +} - changed
Input schema / requiredPrevious value: -[ - "table", - "fields" -]New value: +[ + "table", + "values" +]
- Removed
servicenow_delete_attachment - Changed
servicenow_delete_record11 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / apply / descriptionPrevious value: -"Execute the change. In the default plan mode, omitting this returns a non-mutating before/after preview; set true to apply. SN_WRITE_MODE=apply makes execution the default."New value: +"true executes; omitted: a non-mutating plan preview (SN_WRITE_MODE=apply executes by default)." - added
Input schema / properties / expected_mod_countAdded value: +{ + "description": "sys_mod_count from the plan's apply_with; with apply, a changed record is refused (STALE_RECORD).", + "minimum": 0, + "type": "integer" +} - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - added
Input schema / properties / plan_tokenAdded value: +{ + "description": "Plan preview token (apply:true)", + "maxLength": 64, + "type": "string" +} - changed
Input schema / properties / sys_id / descriptionPrevious value: -"The sys_id of the record to delete."New value: +"Record sys_id." - added
Input schema / properties / sys_id / patternAdded value: +"^[A-Za-z0-9_-]{1,32}$" - changed
Input schema / properties / table / descriptionPrevious value: -"Table name, e.g. 'incident'."New value: +"Table, e.g. 'incident'." - added
Input schema / properties / table / patternAdded value: +"^[A-Za-z0-9_]{1,80}$" - added
Input schema / properties / update_setAdded value: +{ + "description": "Update set (sys_id or exact name, in progress) to record the write in; switched for it, then restored. Default SN_UPDATE_SET, else unchanged. Data-row tables are not captured.", + "maxLength": 100, + "minLength": 1, + "type": "string" +}
- Changed
servicenow_describe_table7 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - added
Input schema / properties / detailsAdded value: +{ + "description": "Add choice lists and dictionary overrides (two extra reads).", + "type": "boolean" +} - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Input schema / properties / table / descriptionPrevious value: -"Table name to describe, e.g. 'incident'."New value: +"Table, e.g. 'incident'." - added
Input schema / properties / table / patternAdded value: +"^[A-Za-z0-9_]{1,80}$" - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": {}, + "properties": { + "columns": { + "type": "array" + }, + "count": { + "type": "number" + }, + "table": { + "type": "string" + }, + "warnings": { + "type": "array" + } + }, + "required": [ + "table", + "count", + "columns" + ], + "type": "object" +}
- Added
servicenow_disable_package - Removed
servicenow_download_attachment - Added
servicenow_enable_package - Added
servicenow_explain_policy - Added
servicenow_find_tools - Removed
servicenow_get_attachment - Changed
servicenow_get_record13 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - added
Input schema / properties / displayValueAdded value: +{ + "description": "As in query_table.", + "enum": [ + "true", + "false", + "all", + "display" + ], + "type": "string" +} - changed
Input schema / properties / fields / descriptionPrevious value: -"Columns to return. Omit to return all columns."New value: +"Columns (default all)." - added
Input schema / properties / fields / items / maxLengthAdded value: +255 - added
Input schema / properties / fields / items / patternAdded value: +"^[A-Za-z0-9_.]+(?:\\s*,\\s*[A-Za-z0-9_.]+)*$" - added
Input schema / properties / fields / maxItemsAdded value: +200 - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Input schema / properties / sys_id / descriptionPrevious value: -"The sys_id of the record to read."New value: +"Record sys_id." - added
Input schema / properties / sys_id / patternAdded value: +"^[A-Za-z0-9_-]{1,32}$" - changed
Input schema / properties / table / descriptionPrevious value: -"Table name, e.g. 'incident'."New value: +"Table, e.g. 'incident'." - added
Input schema / properties / table / patternAdded value: +"^[A-Za-z0-9_]{1,80}$" - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": {}, + "properties": {}, + "type": "object" +}
- Changed
servicenow_get_status23 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - removed
Output schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Output schema / additionalPropertiesPrevious value: -falseNew value: +{} - removed
Output schema / properties / allowedTables / itemsRemoved value: -{ - "type": "string" -} - added
Output schema / properties / authWarningsAdded value: +{ + "type": "array" +} - removed
Output schema / properties / deniedPackages / itemsRemoved value: -{ - "type": "string" -} - removed
Output schema / properties / deniedTables / itemsRemoved value: -{ - "type": "string" -} - removed
Output schema / properties / enabledPackages / itemsRemoved value: -{ - "type": "string" -} - added
Output schema / properties / httpAdded value: +{ + "type": "object" +} - removed
Output schema / properties / pluginApis / additionalPropertiesRemoved value: -{ - "type": "string" -} - added
Output schema / properties / policyAdded value: +{ + "type": "object" +} - added
Output schema / properties / profileDetailsAdded value: +{ + "type": "array" +} - removed
Output schema / properties / profiles / itemsRemoved value: -{ - "type": "string" -} - removed
Output schema / properties / readOnlyPackages / itemsRemoved value: -{ - "type": "string" -} - added
Output schema / properties / sdkManagedAdded value: +{ + "type": "object" +} - added
Output schema / properties / serverAdded value: +{ + "type": "object" +} - removed
Output schema / properties / telemetry / additionalPropertiesRemoved value: -false - removed
Output schema / properties / telemetry / propertiesRemoved value: -{ - "errors": { - "additionalProperties": { - "type": "number" - }, - "type": "object" - }, - "perHost": { - "additionalProperties": { - "additionalProperties": false, - "properties": { - "errors": { - "additionalProperties": { - "type": "number" - }, - "type": "object" - }, - "requests": { - "type": "number" - }, - "retries": { - "type": "number" - }, - "totalMs": { - "type": "number" - } - }, - "required": [ - "requests", - "retries", - "errors", - "totalMs" - ], - "type": "object" - }, - "type": "object" - }, - "requests": { - "type": "number" - }, - "retries": { - "type": "number" - }, - "totalMs": { - "type": "number" - } -} - removed
Output schema / properties / telemetry / requiredRemoved value: -[ - "requests", - "retries", - "errors", - "totalMs", - "perHost" -] - added
Output schema / properties / writesAdded value: +{ + "type": "object" +} - changed
Output schema / requiredPrevious value: -[ - "configured", - "activeProfile", - "profiles", - "instance", - "user", - "passwordSet", - "authMode", - "readOnly", - "allowedTables", - "deniedTables", - "enabledPackages", - "deniedPackages", - "readOnlyPackages", - "pluginApis", - "telemetry" -]New value: +[ + "configured", + "activeProfile", + "profiles", + "instance", + "user", + "passwordSet", + "authMode", + "authWarnings", + "readOnly", + "allowedTables", + "deniedTables", + "enabledPackages", + "deniedPackages", + "readOnlyPackages", + "pluginApis", + "telemetry", + "http", + "sdkManaged", + "server", + "policy", + "writes", + "profileDetails" +]
- Removed
servicenow_list_attachments - Changed
servicenow_list_instances4 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": {}, + "properties": { + "count": { + "type": "number" + }, + "profiles": { + "type": "array" + } + }, + "required": [ + "count", + "profiles" + ], + "type": "object" +}
- Added
servicenow_list_packages - Changed
servicenow_list_tables6 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / filter / descriptionPrevious value: -"Case-insensitive fragment to match in name or label."New value: +"Case-insensitive name or label fragment." - added
Input schema / properties / filter / maxLengthAdded value: +255 - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": {}, + "properties": { + "count": { + "type": "number" + }, + "tables": { + "type": "array" + } + }, + "required": [ + "count", + "tables" + ], + "type": "object" +}
- Changed
servicenow_query_table28 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / displayValue / descriptionPrevious value: -"Return display values ('true'), raw values ('false', default) or both ('all')."New value: +"'true' display, 'false' raw (default), 'all' both, 'display' compact ([sys_id, name] refs)." - changed
Input schema / properties / displayValue / enumPrevious value: -[ - "true", - "false", - "all" -]New value: +[ + "true", + "false", + "all", + "display" +] - added
Input schema / properties / domainAdded value: +{ + "description": "Only this domain's rows (sys_id).", + "pattern": "^[A-Za-z0-9_-]{1,32}$", + "type": "string" +} - added
Input schema / properties / explainAdded value: +{ + "description": "Read no records: which conditions can use an index, with cost notes (advice).", + "type": "boolean" +} - changed
Input schema / properties / fetchAll / descriptionPrevious value: -"When true, page through all matching records (up to the server's SN_MAX_RECORDS cap) instead of a single page."New value: +"All matches (≤ SN_MAX_RECORDS): sys_id cursor without an ORDERBY (stable), else offset." - added
Input schema / properties / fields / anyOfAdded value: +[ + { + "items": { + "maxLength": 255, + "pattern": "^[A-Za-z0-9_.]+(?:\\s*,\\s*[A-Za-z0-9_.]+)*$", + "type": "string" + }, + "maxItems": 200, + "type": "array" + }, + { + "const": "summary", + "type": "string" + } +] - changed
Input schema / properties / fields / descriptionPrevious value: -"Columns to return. Omit to return all columns."New value: +"Columns (default all); 'summary': the list view's." - removed
Input schema / properties / fields / itemsRemoved value: -{ - "type": "string" -} - removed
Input schema / properties / fields / typeRemoved value: -"array" - added
Input schema / properties / fileFormatAdded value: +{ + "description": "With format 'file': 'csv' (default; columns from 'fields' or page 1) or 'jsonl' (all keys).", + "enum": [ + "csv", + "jsonl" + ], + "type": "string" +} - changed
Input schema / properties / format / descriptionPrevious value: -"Output format: 'json' (default), or 'csv' for a spreadsheet-friendly export."New value: +"'json' (default), 'csv', 'table' (columns + rows) or 'file': the full (redacted) result to <profile>/exports/." - changed
Input schema / properties / format / enumPrevious value: -[ - "json", - "csv" -]New value: +[ + "json", + "csv", + "table", + "file" +] - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Input schema / properties / limit / descriptionPrevious value: -"Maximum number of records to return (default 10)."New value: +"Max records (default 10)." - added
Input schema / properties / noCountAdded value: +{ + "description": "Skip the row count (sysparm_no_count): faster on huge tables; 'total' unknown.", + "type": "boolean" +} - changed
Input schema / properties / offset / descriptionPrevious value: -"Number of records to skip, for pagination."New value: +"Records to skip (paging)." - added
Input schema / properties / omitEmptyAdded value: +{ + "description": "Drop empty cells; columns are listed.", + "type": "boolean" +} - changed
Input schema / properties / query / descriptionPrevious value: -"Encoded query (sysparm_query), e.g. 'active=true^priority=1^ORDERBYDESCsys_created_on'."New value: +"Encoded query (sysparm_query), e.g. 'active=true^ORDERBYDESCsys_created_on'." - added
Input schema / properties / query / maxLengthAdded value: +8000 - added
Input schema / properties / queryCategoryAdded value: +{ + "description": "sysparm_query_category, e.g. a read replica.", + "maxLength": 255, + "type": "string" +} - added
Input schema / properties / queryNoDomainAdded value: +{ + "description": "Query all accessible domains (sysparm_query_no_domain).", + "type": "boolean" +} - added
Input schema / properties / suppressPaginationHeaderAdded value: +{ + "description": "sysparm_suppress_pagination_header.", + "type": "boolean" +} - changed
Input schema / properties / table / descriptionPrevious value: -"Table name, e.g. 'incident', 'sys_user', 'change_request'."New value: +"Table, e.g. 'incident'." - added
Input schema / properties / table / patternAdded value: +"^[A-Za-z0-9_]{1,80}$" - added
Input schema / properties / viewAdded value: +{ + "description": "UI view's fields (sysparm_view); 'fields' wins.", + "maxLength": 255, + "type": "string" +} - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": {}, + "properties": { + "count": { + "type": "number" + }, + "explain": {}, + "format": { + "type": "string" + }, + "note": { + "type": "string" + }, + "records": { + "type": "array" + }, + "rows": { + "type": [ + "number", + "array" + ] + }, + "total": { + "type": "number" + }, + "truncated": { + "type": "boolean" + } + }, + "type": "object" +}
- Changed
servicenow_set_credentials11 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - added
Input schema / properties / authAdded value: +{ + "description": "Stored as SN_AUTH (default: inferred).", + "enum": [ + "basic", + "oauth", + "apikey", + "token", + "none" + ], + "type": "string" +} - changed
Input schema / properties / instance / descriptionPrevious value: -"Instance host, e.g. 'dev12345' or 'dev12345.service-now.com'."New value: +"Instance host, e.g. 'dev12345'. A change needs the new host's auth in the same call (Basic: user + password, else CREDENTIALS_INCOMPLETE) and elicitation confirmation unless SN_ALLOW_UNCONFIRMED_CREDENTIAL_CHANGE=1." - added
Input schema / properties / instance / maxLengthAdded value: +255 - added
Input schema / properties / oauth_client_idAdded value: +{ + "description": "OAuth client id (not a secret).", + "maxLength": 1024, + "type": "string" +} - added
Input schema / properties / oauth_grantAdded value: +{ + "description": "Stored as SN_OAUTH_GRANT.", + "enum": [ + "password", + "client_credentials", + "refresh_token", + "jwt_bearer" + ], + "type": "string" +} - added
Input schema / properties / password / maxLengthAdded value: +1024 - changed
Input schema / properties / profile / descriptionPrevious value: -"Connection profile to write (default: the active one). Use a new name to create a profile."New value: +"Profile (default active); a new name creates one." - added
Input schema / properties / profile / maxLengthAdded value: +128 - added
Input schema / properties / request_secretsAdded value: +{ + "description": "Secrets to enter through elicitation (never as arguments).", + "items": { + "enum": [ + "api_key", + "oauth_client_secret" + ], + "type": "string" + }, + "maxItems": 10, + "type": "array" +} - added
Input schema / properties / user / maxLengthAdded value: +255
- Changed
servicenow_test_connection5 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - removed
Output schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Output schema / additionalPropertiesPrevious value: -falseNew value: +{}
- Changed
servicenow_update_record14 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / apply / descriptionPrevious value: -"Execute the change. In the default plan mode, omitting this returns a non-mutating before/after preview; set true to apply. SN_WRITE_MODE=apply makes execution the default."New value: +"true executes; omitted: a non-mutating plan preview (SN_WRITE_MODE=apply executes by default)." - added
Input schema / properties / expected_mod_countAdded value: +{ + "description": "sys_mod_count from the plan's apply_with; with apply, a changed record is refused (STALE_RECORD).", + "minimum": 0, + "type": "integer" +} - removed
Input schema / properties / fieldsRemoved value: -{ - "additionalProperties": { - "type": [ - "string", - "number", - "boolean", - "null" - ] - }, - "description": "Field name/value pairs to change on the record.", - "type": "object" -} - added
Input schema / properties / inputDisplayValueAdded value: +{ + "description": "Values are display values the instance resolves (sysparm_input_display_value); default false: raw.", + "type": "boolean" +} - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Input schema / properties / sys_id / descriptionPrevious value: -"The sys_id of the record to update."New value: +"Record sys_id." - added
Input schema / properties / sys_id / patternAdded value: +"^[A-Za-z0-9_-]{1,32}$" - changed
Input schema / properties / table / descriptionPrevious value: -"Table name, e.g. 'incident'."New value: +"Table, e.g. 'incident'." - added
Input schema / properties / table / patternAdded value: +"^[A-Za-z0-9_]{1,80}$" - added
Input schema / properties / update_setAdded value: +{ + "description": "Update set (sys_id or exact name, in progress) to record the write in; switched for it, then restored. Default SN_UPDATE_SET, else unchanged. Data-row tables are not captured.", + "maxLength": 100, + "minLength": 1, + "type": "string" +} - added
Input schema / properties / valuesAdded value: +{ + "additionalProperties": { + "type": [ + "string", + "number", + "boolean", + "null" + ] + }, + "description": "Field name/value pairs to change.", + "type": "object" +} - changed
Input schema / requiredPrevious value: -[ - "table", - "sys_id", - "fields" -]New value: +[ + "table", + "sys_id", + "values" +]
- Removed
servicenow_upload_attachment - Added
servicenow_upsert_record - Changed
servicenow_use_instance6 fields changed- removed
Input schema / $schemaRemoved value: -"http://json-schema.org/draft-07/schema#" - changed
Input schema / properties / instance / descriptionPrevious value: -"Connection profile to use for this call (default: the active profile). See servicenow_list_instances."New value: +"Profile (default active)" - added
Input schema / properties / instance / maxLengthAdded value: +128 - changed
Input schema / properties / name / descriptionPrevious value: -"Profile to activate, e.g. 'default' or 'dev'."New value: +"Profile to activate, e.g. 'dev'." - added
Input schema / properties / name / maxLengthAdded value: +128 - added
Input schema / properties / persistAdded value: +{ + "description": "Write the env file (journaled; default false).", + "type": "boolean" +}
19 tool updates
v2.0.1- First observed
servicenow_aggregate - First observed
servicenow_check_capabilities - First observed
servicenow_create_record - First observed
servicenow_delete_attachment - First observed
servicenow_delete_record - First observed
servicenow_describe_table - First observed
servicenow_download_attachment - First observed
servicenow_get_attachment - First observed
servicenow_get_record - First observed
servicenow_get_status - First observed
servicenow_list_attachments - First observed
servicenow_list_instances - First observed
servicenow_list_tables - First observed
servicenow_query_table - First observed
servicenow_set_credentials - First observed
servicenow_test_connection - First observed
servicenow_update_record - First observed
servicenow_upload_attachment - First observed
servicenow_use_instance
TDQS
Scored across 20 tools
The core table tools (query, get, create, update, upsert, delete) are clearly distinct, and schema/aggregate tools have unique purposes. The main overlap is among diagnostics/connection tools (get_status, explain_policy, check_capabilities, test_connection) and package discovery (list_packages vs find_tools), which are distinguishable but could blur for an agent.
All tools consistently use the servicenow_ prefix with snake_case verb_noun naming (get_record, list_tables, enable_package, etc.). The convention is predictable throughout with no mixed styles.
At 20 tools the set is on the heavier side, but it splits cleanly into record CRUD, schema/aggregation, connection diagnostics, and package management. Each tool appears to earn its place, though some diagnostic tools could potentially be consolidated.
The surface provides full record lifecycle coverage (query, get, create, update, upsert, delete) plus schema discovery, aggregation, connection management, and package toggling. Minor gaps remain around bulk operations, attachments, and field-level validation, but core ServiceNow table workflows are well covered.
Maintenance
Related MCP Connectors
An MCP server that provides access to Agility CMS. See https://mcp.agilitycms.com for more details.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
MCP server for AI access to Swagger by SmartBear.
An MCP server that provides bazaarvoic JOLT transformation capabilities.
Related MCP Servers
- AlicenseCqualityBmaintenanceMCP server enabling interaction with ServiceNow API for managing incidents, CMDB, change management, and other ServiceNow operations via natural language.13420MIT
- AlicenseAqualityDmaintenanceThe most comprehensive ServiceNow MCP server. 17 tools for full CRUD, CMDB graph traversal, background scripts, ATF testing, and more.1768 npm12MIT
- AlicenseNot gradedqualityDmaintenanceMCP server to interact with ServiceNow instances, enabling ITSM, CMDB, workflow, and knowledge search operations.MIT
- AlicenseAqualityDmaintenanceAn MCP server for interacting with a ServiceNow instance via its Table API, enabling CRUD operations on incident, request, and requested item tables, as well as generic operations on any table by name.22MIT