---
title: ServiceNow Managed MCP Server
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: managed/servicenow
page-component-name: agentic-data-plane
page-version: master
page-component-version: master
page-component-title: Agentic Data Plane
page-relative-src-path: managed/servicenow.adoc
page-edit-url: https://github.com/redpanda-data/adp-docs/edit/main/modules/connect/pages/managed/servicenow.adoc
description: Read and write ServiceNow incidents, catalog requests, knowledge articles, and allow-listed records with service-account or per-user authentication.
page-topic-type: how-to
personas: agent_builder, platform_engineer
learning-objective-1: Configure the ServiceNow managed MCP server with Basic authentication, OAuth client credentials, or User OAuth
learning-objective-2: Use projections and hierarchies to shape responses and gate table reads
learning-objective-3: Manage incidents, order service catalog items, and read allow-listed records from the Inspector or an agent
page-git-created-date: "2026-06-09"
page-git-modified-date: "2026-11-13"
page-generated-content: none
---

# ServiceNow Managed MCP Server

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [agentic-data-plane-full.txt](https://docs.redpanda.com/agentic-data-plane-full.txt)

<!-- Source: https://docs.redpanda.com/agentic-data-plane/connect/managed/servicenow.md -->

The ServiceNow managed MCP server lets agents work with a ServiceNow instance: search, create, update, and transition incidents, append work notes, order items from the service catalog, search the knowledge base, look up users and assignment groups, search the configuration management database (CMDB) for configuration items, discover table schema and field choices, and read allow-listed tables.

After reading this page, you will be able to:

-   Configure the ServiceNow managed MCP server with Basic authentication, OAuth client credentials, or User OAuth

-   Use projections and hierarchies to shape responses and gate table reads

-   Manage incidents, order service catalog items, and read allow-listed records from the Inspector or an agent


## What this MCP server does

Wraps the ServiceNow REST Table API, plus the Service Catalog API for catalog submissions. The MCP is vendor-generic. ServiceNow records are returned as opaque JSON objects (their field set varies by instance), and the agent learns each table’s shape and valid field values at runtime through the discovery tools (`get_table_schema`, `get_field_choices`).

Customer-specific structure is supplied as configuration, not code:

-   Projections set the default field list returned per table (a ServiceNow incident carries about 100 fields, so projections keep responses small) and gate which tables the generic `query_records` tool may read.

-   Hierarchies declare dependent-field chains (for example, service area, then category, then subcategory). The agent reads the chain order with `describe_field_hierarchies` and resolves each field’s valid values at runtime with `get_field_choices`. No field values are stored in the configuration.


It does not delete records. Writes are limited to the typed incident tools and the two catalog submission tools. Everything else reads. The curated tools are not a general SQL interface, but the server can optionally serve standard tables as read-only SQL tables alongside them. See [Expose ServiceNow data as SQL tables](#sql-tables).

Schema discovery and write verification together reduce the risk of a write that looks like it succeeded but changed nothing. The `get_table_schema` tool reports which fields the data dictionary marks read-only or filtered, so an agent can avoid setting them. The incident write tools then compare the values they sent against the record ServiceNow returned from the write, and `submit_record_producer` re-reads the record it created. Both attach a report of what the instance held. See [Confirm what a write stored](#confirm-what-a-write-stored).

## Prerequisites

Before you create the server, make sure you have:

-   A ServiceNow instance and its URL (for example, `https://acme.service-now.com`).

-   A ServiceNow service account, or an OAuth client, with the roles your workflows need to read and write incidents, read knowledge articles, and read `sys_dictionary` and `sys_choice` for schema discovery. For the catalog tools, add read access to `sc_cat_item` and `item_option_new`. Without it, a catalog search skips its option-value pass, a request form comes back partial, and the server refuses a submission rather than sending it blind.

-   For User-OAuth mode: an [OAuth provider](https://docs.redpanda.com/home/glossary/#oauth-provider) configured in Redpanda Agentic Data Plane. See [Configure an OAuth Provider](https://docs.redpanda.com/agentic-data-plane/connect/oauth-providers/).


## Choose an authentication method

The MCP authenticates to ServiceNow as a single principal. It does not impersonate end users. When creating an incident, the agent passes the requesting user’s `sys_id` in `caller_id`. Pick one of three methods:

-   Basic authentication (simplest): A dedicated ServiceNow user (for example, `svc_redpanda`) and its password. The username is plaintext. The password lives in the Agentic Data Plane secret store.

-   OAuth client credentials (service account): An OAuth API client registered under **System OAuth > Application Registry**. ServiceNow’s token endpoint is `https://<instance>.service-now.com/oauth_token.do`.

-   User OAuth: Per-user delegation through an OAuth provider. Use Basic authentication or OAuth client credentials unless you need per-user attribution.


> 📝 **NOTE**
>
> For OAuth client credentials, confirm with your ServiceNow administrator that your instance accepts the OAuth client credentials grant. If token requests return `401`, that setting is the first thing to check.

## Configure

> 📝 **NOTE**
>
> The marketplace picker shows two ServiceNow cards. This page covers the **ServiceNow** card. **ServiceNow (dynamic)** is a separate server type that generates its tools from your instance’s own schema, and it has a different configuration.

Create a new ServiceNow MCP server in Agentic Data Plane:

1.  Open **MCP servers** in the sidebar.

2.  Click **Add MCP server**.

3.  Click the **ServiceNow** card in the marketplace picker.

4.  Replace the suggested `Name`, and optionally add a `Description`.

5.  In the ServiceNow configuration form:

    | Field | Notes |
    | --- | --- |
    | `instance_url` | Base URL of your ServiceNow instance (for example, `https://acme.service-now.com`). Must be an `https://` URL. |
    | `Auth` | `Basic Auth`, `OAuth`, or `User OAuth` (`basic_auth`, `oauth`, or `user_oauth` in the CLI JSON). |
    | `basic_auth` (Basic authentication mode) | `username` (ServiceNow service-account username, for example `svc_redpanda`) and `password_secret_ref` (secret-store reference, `UPPER_SNAKE_CASE`). |
    | `oauth` (OAuth mode) | `client_id`, `client_secret_ref` (secret-store reference), and `token_url` (`https://<instance>.service-now.com/oauth_token.do`). |
    | `user_oauth` (User-OAuth mode) | `provider_name` (the OAuth provider you configured) and the minimum required scopes. |
    | `projections` | Per-table default field lists and the read allow-list for `query_records`. |
    | `hierarchies` | Dependent-field chains the agent resolves at runtime. |
    | `exposed_tools` (optional) | The subset of tool names this server exposes, matched exactly and case-sensitively (for example, `get_table_schema` or `search_incidents`). Leave it empty to expose every tool. An omitted tool is not offered to the agent and cannot be called. A name that matches no tool is logged rather than rejected, so the server still starts when a stored configuration names a tool from a newer release. |
    | `incident_state_requirements` (optional) | Companion fields an incident must be written with when it moves to a named state, for example a close code when closing. Give each entry a `state`, by the label your instance shows or by the value it stores, and the `required_fields` that state needs. Leave it empty to enforce nothing. |
    | `incident_state_field` (optional) | The incident column that `transition_incident` writes. Leave it empty to write the `state` column. On an instance where a write to `state` doesn’t stick, set this to the column that drives state instead, commonly `incident_state`. Use lowercase letters, digits, and underscores, starting with a letter. |
    | `incident_caused_by_change_field` (optional) | The incident column that SQL exposure serves as `incidents.caused_by_change`. Leave it empty to read the standard `caused_by` column. If your instance links an incident to the change that caused it through a custom reference, such as `u_caused_by`, set this to that column. Use lowercase letters, digits, and underscores, starting with a letter. The curated tools don’t read this setting. |
    | `csm_tables_enabled` (optional) | Whether SQL exposure also serves the Customer Service Management tables `customer_accounts` and `cases`. Off by default. Turn it on only if the instance has the Customer Service Management plugin (`com.sn_customerservice`). The curated tools don’t read this setting. |

6.  If the form shows `Queryable`, `Enabled` is on. Turn it off unless your agents need the two SQL tools. See [Expose ServiceNow data as SQL tables](#sql-tables).

7.  Click **Create server**.


To add [code mode](https://docs.redpanda.com/agentic-data-plane/gateway/code-mode/), create a Code MCP server that includes this server. Click the **Code MCP** card in the marketplace, or click **Add to Code MCP** on this server’s **Overview** tab and choose an existing Code MCP or **New Code MCP**. From the CLI, run `rpk ai mcp-server create <code-mcp-name> --enabled --code.mcp-servers <server-name>`.

### Configure from the CLI

For a managed server, set the authentication method inside the `--managed.config` JSON. The `auth` field is required.

#### Basic authentication

```bash
rpk ai mcp-server create acme-servicenow --enabled --managed.config '{
  "@type": "type.googleapis.com/redpanda.mcps.servicenow.v1.ServiceNowMCPConfig",
  "instance_url": "https://acme.service-now.com",
  "basic_auth": {
    "username": "svc_redpanda",
    "password_secret_ref": "SERVICENOW_PASSWORD"
  },
  "projections": [
    {
      "table": "incident",
      "default_fields": ["number", "short_description", "state", "priority", "assignment_group", "caller_id"],
      "queryable": true
    },
    { "table": "change_request", "queryable": true }
  ],
  "hierarchies": [
    {
      "table": "incident",
      "name": "service",
      "fields": ["u_service_area", "u_service_category", "u_service_subcategory"]
    }
  ]
}'
```

#### OAuth client credentials

```bash
rpk ai mcp-server create acme-servicenow-oauth --enabled --managed.config '{
  "@type": "type.googleapis.com/redpanda.mcps.servicenow.v1.ServiceNowMCPConfig",
  "instance_url": "https://acme.service-now.com",
  "oauth": {
    "client_id": "<oauth-client-id>",
    "client_secret_ref": "SERVICENOW_CLIENT_SECRET",
    "token_url": "https://acme.service-now.com/oauth_token.do"
  }
}'
```

#### User OAuth

```bash
rpk ai mcp-server create acme-servicenow-user --enabled --managed.config '{
  "@type": "type.googleapis.com/redpanda.mcps.servicenow.v1.ServiceNowMCPConfig",
  "instance_url": "https://acme.service-now.com",
  "user_oauth": {
    "provider_name": "servicenow-prod"
  }
}'
```

Replace `<oauth-client-id>` with the client ID from your ServiceNow OAuth application registry, and `servicenow-prod` with the name of the OAuth provider you configured.

## Tools

The ServiceNow MCP exposes tools across incidents, the service catalog, knowledge, schema discovery, lookups, and generic reads:

| Tool | Description |
| --- | --- |
| `search_incidents` | Search incidents with a ServiceNow encoded query. |
| `get_incident` | Fetch one incident by `sys_id`. |
| `create_incident` | Create an incident (typed fields plus an `additional_fields` map for custom fields). |
| `update_incident` | Update assignment, notes, urgency, impact, or resolution details on an incident. It can’t change the state. Use `transition_incident`. A `state` argument passed here is refused, and nothing is sent. |
| `transition_incident` | Move an incident to a state named in words, such as `Resolved`, `Canceled`, or `On Hold`. See [Transition an incident](#transition-an-incident). |
| `add_work_note` | Append a work note (internal) or comment (customer-visible) to an incident. |
| `search_knowledge` | Full-text search over published knowledge articles. |
| `get_article` | Fetch one knowledge article by `sys_id` or `number`. |
| `search_catalog_items` | Find orderable service catalog items from the words a user used, matching both the item’s own text and the option values on its request form. See [Order from the service catalog](#order-from-the-service-catalog). |
| `get_catalog_item` | Return one catalog item’s request form: its variables, which of them are mandatory, and the values each one allows. |
| `submit_catalog_request` | Order a catalog item with the values for its request form, and return the requested-item number. |
| `submit_record_producer` | Submit a record producer, a catalog form that writes a record directly instead of raising a request. |
| `get_table_schema` | Field metadata for a table, from `sys_dictionary`: name, type, whether the field is mandatory, what it references, whether the dictionary marks it read-only, and whether a reference field is filtered by a reference qualifier. |
| `get_field_choices` | Valid choice values for a field from `sys_choice`, optionally scoped to a parent value. |
| `describe_field_hierarchies` | Declared dependent-field chains for a table, from the server configuration. |
| `lookup_user` | Find users by name, email, or username, and return their `sys_id`. |
| `lookup_group` | Find assignment groups by name, and return their `sys_id`. |
| `search_cmdb_ci` | Search configuration items (`cmdb_ci`) with a ServiceNow encoded query. The `sys_class_name` field distinguishes CI classes such as servers, computers, applications, and services. |
| `query_records` | Read any allow-listed table with an encoded query. |

### Example: Search open incidents

```bash
curl -s https://aigw.<cluster-id>.clusters.rdpa.co/mcp/v1/acme-servicenow \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "search_incidents",
      "arguments": {
        "query": "active=true^priority=1"
      }
    }
  }'
```

Replace `<cluster-id>` with your cluster ID and `$TOKEN` with a gateway access token.

### Example: Create an incident

The agent typically calls `lookup_user` and `get_field_choices` first to resolve `caller_id` and a valid `category` value.

```bash
curl -s https://aigw.<cluster-id>.clusters.rdpa.co/mcp/v1/acme-servicenow \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "create_incident",
      "arguments": {
        "short_description": "VPN drops every few minutes in Dresden",
        "caller_id": "a1b2c3d4e5f6...",
        "urgency": 2,
        "impact": 2,
        "category": "network"
      }
    }
  }'
```

## Transition an incident

State changes go through `transition_incident`, which takes the target state by name, such as `Resolved`, `Canceled`, or `On Hold`. The server matches names case-insensitively against the state labels your instance defines, so nothing has to know a state number in advance, and a renumbered state can’t send an incident to the wrong place.

Pass the name, not the stored number. The server refuses a numeric value and names the state that value belongs to, so an agent can retry with the name. It refuses a name that matches nothing and lists the states your instance offers. Run `get_field_choices` on the `incident` table’s `state` field for the exact names, or read them from a record that `get_incident` or `search_incidents` returned.

The tool also carries a close code, close notes, a work note, a comment, and an `additional_fields` map for anything else the transition needs, such as a hold reason.

### Require companion fields for a state

Instances commonly require a close code before an incident can be resolved or closed. That requirement isn’t part of the table schema `get_table_schema` reads, so the server can’t discover it. Declare it in `incident_state_requirements` instead. An unconfigured requirement isn’t enforced.

A declared requirement is checked before anything is sent, so a missing field comes back naming the field, and the agent can ask a person for it instead of interpreting an upstream rejection. The check has a wider reach than one tool, and it is forgiving about case:

-   The requirement applies to the state column, not to a single tool. A state that reaches `update_incident` through `additional_fields` is checked the same way, so the requirement can’t be bypassed by the call that follows a refused transition. On that path the state matches by stored value only, because no choice list is read there.

-   The server matches names case-insensitively on both sides. The state matches either its label or its stored value, and a required field name matches whatever case the write used.


### Write to a different state column

Some instances don’t use `state` as the column that actually drives an incident’s state. On those, a write to `state` can report success while the incident doesn’t move. Set `incident_state_field` to the column that does drive state, commonly `incident_state`, and `transition_incident` writes that column instead.

Only the column changes. The agent still passes a state name in words, and the name resolves against the choices that column defines. Because a state can still reach the server as a raw `state` key in `additional_fields`, a configured requirement covers both column names, and `transition_incident` drops every state key from `additional_fields` before it assigns the resolved value, so one call can’t carry two states.

A misspelled column doesn’t fail quietly. Write verification treats the configured column like any other incident field, so a returned record that holds the write’s other fields but not that column reports the state under `not_applied`.

## Order from the service catalog

Ordering an item takes three calls, in order. Skipping the middle call means collecting values for a form that the submission then rejects.

1.  Run `search_catalog_items` with the words the user used, such as `laptop` or `Adobe Acrobat`. Pass product or service words rather than a sentence, because the server matches substrings.

2.  Run `get_catalog_item` on the chosen item to read its request form. Every item asks for something different.

3.  Submit the form with `submit_catalog_request` for an ordinary item, or with `submit_record_producer` for a record producer, which writes a record such as an incident or an idea directly instead of raising a request.


### Search the catalog

The search runs two passes: one over each item’s name, short description, and category, and one over the option values on items' request forms. The second pass is what reaches a product that is a choice on a general item rather than an item of its own. A result found that way carries the matching option, so an agent can fill it in instead of asking again.

Treat the results as candidates rather than as the whole catalog. The response caps them (10 by default, 50 at most) and sets `results_truncated` when more items matched than it returned, so an item missing from a truncated result is not an item the catalog lacks. Narrow the query to a product name, or pass a `category` to scope a second pass the way the portal’s own navigation does.

A separate flag, `option_search_unavailable`, reports that the option-value pass couldn’t run at all. A false value there is weaker than it looks. An instance that filters rows out by permission answers the query normally, which looks the same as nothing matching.

### Read the request form

The form that `get_catalog_item` returns lists each variable with its name, the question the form asks, its type, whether it’s mandatory, its default value, help text, the table a reference value must come from, its allowed values, and its position on the form. Asking in that order follows the form the user would otherwise have filled in.

The mandatory flag comes from the variable’s definition, so a UI policy can make a further variable mandatory once the form is being filled in. An unexpected rejection doesn’t mean the list was wrong.

The response also reports whether the item is still active. A retired item keeps a readable form but can’t be ordered, so check this before collecting values. Search only ever returns live items, so it matters when a `sys_id` came from somewhere else, or the item retired since.

### Submit the form

Key every submitted value by the variable’s name rather than by the label the form shows, and pass the stored value rather than its display label. A mandatory variable that has a default value still needs that value passed explicitly, so the form that reaches ServiceNow is the form the agent reasoned about.

Both submission tools check the values against the form before sending anything, so a missing mandatory value or a name the form doesn’t carry comes back naming the variable, rather than as a rejection that identifies no field. A submission refused this way sent nothing, so correcting the arguments and calling again is safe.

When the form came back partial, only the mandatory-value half of that check runs. An unrecognized name then reaches ServiceNow, because refusing it would block a submission that the item would have accepted.

To order more than one of an item, pass a `quantity` with the submission. It defaults to 1, and 100 is the most you can order in a single call.

> ⚠️ **CAUTION**
>
> Neither submission tool is safe to retry. A repeat call raises a second request, or writes a second record, under a second number that someone has to cancel. When a submission reports that it couldn’t read back what it created, the request or record exists. Have the agent report that the number isn’t available yet rather than submitting again.

### What a submission returns

The `submit_catalog_request` tool returns the requested-item numbers, which begin with `RITM`. Those are the identifiers to give the user. The response also carries the request number, which begins with `REQ`, but that’s the container the requested items hang off, and isn’t what a user is asking for.

The `submit_record_producer` tool returns the table the producer wrote to, along with the created record and its number. Check the table before describing what was created, because a producer chooses its own target, and an idea and an incident reach different teams.

Two limits apply before you rely on either result. A catalog request confirms only that the request and its items exist. It says nothing about whether the form holds the values that were sent, because those live on separate option rows that this server doesn’t read. A record producer does compare the values it sent against the record it read back, because it writes a real record whose columns come back on a read. Even then, a producer script can map a variable to a different column, and the report marks a variable remapped that way as unconfirmed rather than as stored.

When a form couldn’t be read completely, `get_catalog_item` marks the response as incomplete. A variable missing from an incomplete form isn’t a variable the item doesn’t ask for, and an empty allowed-value list isn’t evidence that a value is invalid. The same applies to a catalog search whose option-value pass couldn’t run. The result is partial, not proof that the catalog holds no such thing.

## Confirm what a write stored

An accepted write doesn’t always mean a stored value. Schema discovery tells you which fields to leave alone, and write verification tells you what the instance kept.

Before a write, `get_table_schema` reports what the data dictionary holds for each field, including:

-   Whether the dictionary marks the field read-only. An agent should report that such a field can’t be set, rather than trying to set it.

-   Whether a reference field is filtered by a reference qualifier, and which of the three qualifier kinds it declares (Simple, Dynamic, or Advanced). For a filtered field, resolve a value that satisfies the filter, and read an emptied field as the filter rejecting the value rather than as a bad identifier. The qualifier’s own condition, script, or filter record isn’t returned, so ask an administrator about the construct the field names.


A false value on either attribute doesn’t guarantee that the field is writable. Write access control lists, ServiceNow data policies, and business rules aren’t read here, and aren’t in the data dictionary at all. A `sys_dictionary_override` row is in the data dictionary but still isn’t read here, so an inherited field made read-only on one child table reports false.

After a write, the incident write tools compare the values they sent against the record that ServiceNow returned from the write itself, and attach a report to that record under `_redpanda_write_verification`. The `submit_record_producer` tool re-reads the record it created and reports on that instead. A write response is synchronous, so a confirmed value is what the instance held at that moment. Business rules, flows, and scheduled jobs that run afterwards can still change it.

The report always carries a plain-language summary. It adds `applied` and `not_applied` as lists of field names, for the values the response held and the values the instance didn’t store, and `unconfirmed` for fields it can’t settle either way, where each entry pairs the field with the reason. Journal fields such as work notes and comments are never echoed back, so they arrive unconfirmed. Each of the three is left out when it’s empty. Have an agent read the report before it tells a user what changed. A state that appears under `not_applied` after `transition_incident` means the transition didn’t happen.

The `submit_catalog_request` tool attaches no such report. Its response carries the request and requested-item numbers rather than the record, so nothing confirms the values that the request stored.

## Expose ServiceNow data as SQL tables

The ServiceNow server can also present standard ServiceNow tables as read-only SQL tables, so an agent can filter records the way it would query a database instead of composing an encoded query. SQL exposure is the `Enabled` toggle under `Queryable` in the server’s configuration. If SQL tools are available in your organization, the create form shows `Queryable` with `Enabled` on, so a server you create there is queryable unless you turn it off. Otherwise the form doesn’t show `Queryable`, and the server starts with SQL exposure off. Creating a server with `rpk ai` leaves SQL exposure off unless the managed configuration sets it. An existing server keeps the setting it was saved with. To change it, open the server’s edit form, which shows `Queryable` if SQL tools are available in your organization or if the server was saved with SQL exposure on. SQL exposure adds two tools:

-   `list_tables`: Return the table catalog. For each table, the catalog lists its columns and their types, which columns can be filtered and with which operators, whether each filter is exact, the page-size limit, and a schema fingerprint that every query response repeats so a caller can tell when the catalog changed.

-   `execute_query`: Run one query against a table and return a page of rows plus a cursor for the next page.


The tables are `incidents`, `problems`, `change_requests`, `requested_items`, `users`, `groups`, `group_members`, `configuration_items`, and `knowledge_articles`. With `csm_tables_enabled` on, the catalog also has the Customer Service Management tables `customer_accounts` and `cases`. Each reads the ServiceNow table of the matching name through the Table API, and each carries `sys_id`, `sys_created_on`, and `sys_updated_on` along with that table’s standard fields. Some are worth a note:

-   `configuration_items` covers every CI class, but only the base-class columns. Read `sys_class_name` to see which class a row belongs to.

-   `knowledge_articles` lists articles in every workflow state, not only published ones, and doesn’t serve the article body. Use `get_article` for that.

-   `group_members` is the user-to-group membership table, so join it against `users.sys_id` and `groups.sys_id`.

-   `incidents.caused_by_change` holds the change request that caused the incident, so join it against `change_requests.sys_id`. It reads the column that `incident_caused_by_change_field` names, which is `caused_by` by default.

-   `change_requests.correlation_id` and `correlation_display` identify a related record in an external system, such as a Jira release.

-   `cases.account` joins against `customer_accounts.sys_id`. A case’s `state` and `priority` hold stored choice codes, so read `state_display` and `priority_display` for the labels. Use `active` to tell open cases from closed ones.


Turn on the Customer Service Management tables to join support cases to customer relationship management (CRM) records. For example, match `customer_accounts.number` against the account number in your CRM to find renewing accounts that have open high-priority cases. On a [Salesforce server with SQL exposure](https://docs.redpanda.com/agentic-data-plane/connect/managed/salesforce/#sql-tables), that account number is `accounts.account_number`.

Only standard tables and their standard fields are cataloged. Custom `u_` fields and custom tables never appear as a table or a column. The one exception is a custom reference that `incident_caused_by_change_field` names, which SQL exposure serves as `caused_by_change`. Reach the others with `query_records`.

A reference or choice column comes as a pair. The column itself holds what ServiceNow stores, which is the target record’s `sys_id` for a reference and the choice code for a choice, and a `<name>_display` sibling holds the display value or the choice label in the caller’s language. Only the stored column can be filtered. So filter on `state` or `assigned_to` and read `state_display` or `assigned_to_display` for something to show a person.

> ❗ **IMPORTANT**
>
> Rows the server’s ServiceNow credential can’t read are silently absent from a result, rather than reported as an error. ServiceNow applies access controls and before-query business rules without saying that it did, so a query can return fewer rows than exist.

Because `execute_query` returns the rows ServiceNow sends back without re-checking them against your filters, an agent that needs exact results must re-apply its filters to the rows it receives. On this server no filter is exact, for three reasons that apply to every column. ServiceNow ignores a part of an encoded query it can’t parse, it compares text without regard to case, and a field-level access control can blank a value it has already filtered on. Three operators are left out of the catalog entirely, because each could drop a row the query should have kept:

-   `IS NULL` on any column, because ServiceNow’s emptiness test reads the stored value while a field-level access control serves the caller an empty one.

-   `!=` on any column served as a string, because the comparison ignores case. That covers text, string-coded choices such as `category`, references, and `sys_id`. The integer-coded choices such as `state` and `priority` do accept `!=`.

-   `LIKE` on a reference column, because ServiceNow matches it against the referenced record’s display value rather than the `sys_id` the column serves.


The catalog reports a long text column such as `description` but offers no filter on it, so `execute_query` refuses a predicate on one.

A page holds at most 500 rows, and an `IN` list holds at most 100 values. A list longer than the cap fails rather than being silently cut short. A scan runs in `sys_id` order and skips over windows that access controls emptied, so a multi-page scan stays on one stable order.

> ⚠️ **CAUTION**
>
> SQL exposure is independent of both projections and the tools you expose. Neither narrows it. A table reaches SQL even when no projection lists it and even when `query_records` isn’t among the server’s exposed tools, and the two SQL tools are available to every caller of the server, including agents. On a server that authenticates with one shared service account, every caller reads whatever that account can read. Turn off `Enabled` on a server whose agents should only reach the curated ServiceNow tools.

To trim the catalog table by table, hide columns, require filters, retype a column, or serve a table under another name, use the **SQL exposure** tab on the server’s page. That tab works the same way for every managed type that offers SQL tables. See [Narrow what the SQL tools expose](https://docs.redpanda.com/agentic-data-plane/connect/managed/jira/#narrow-sql-tables). If the server’s page has no **SQL exposure** tab, narrowing isn’t enabled for your organization. The `Enabled` setting on the server’s configuration still turns the two SQL tools on and off.

## Troubleshooting

Common symptoms and fixes:

| Symptom | What to check |
| --- | --- |
| `401 Unauthorized` | Confirm the service-account credentials. For Basic authentication, check the username and `SERVICENOW_PASSWORD`. For OAuth, check the client ID, `SERVICENOW_CLIENT_SECRET`, and token URL. |
| `403 Forbidden` | The service account lacks the role for the operation (for example, read access to `sys_dictionary` for `get_table_schema`). Grant the role in ServiceNow. |
| `query_records` rejects a table | The table is not listed in `projections` with `queryable` set to `true`. Add a projection entry for it. |
| `update_incident` refuses a `state` argument | It can’t change an incident’s state, and nothing was sent. Call `transition_incident` and pass the state by name. |
| `transition_incident` succeeds but the state reports under `not_applied` | The instance didn’t store the state. If another column drives state on this instance, set `incident_state_field` to that column. See [Write to a different state column](#state-column). |
| `transition_incident` refuses a transition for a missing field | A configured `incident_state_requirements` entry covers the target state. Supply the named fields, or change the entry. Nothing was sent, so calling again with the fields is safe. See [Require companion fields for a state](#state-requirements). |
| A catalog search or request form comes back partial | The account can’t read `item_option_new` on this instance. Grant read access, and until then treat the result as incomplete rather than as evidence that an item or variable doesn’t exist. |
| A submission is refused naming a variable | The refusal is local, so nothing was sent. Supply the named variable’s value (a mandatory variable needs its value even when the form has a default), or drop a name the form doesn’t carry, then call again. |
| A write reports a field under `not_applied` | The instance didn’t store that field. Check the field with `get_table_schema`. A read-only field can’t be set, and a filtered reference field needs a value that satisfies its qualifier. See [Confirm what a write stored](#confirm-what-a-write-stored). |
| A query on `customer_accounts` or `cases` fails with an error naming `com.sn_customerservice` | ServiceNow refused to read the table. Both tables need the Customer Service Management plugin, so check that the plugin is active on the instance, or turn off `csm_tables_enabled`. The error spells this setting `csmTablesEnabled`. |
| `connection_required` (User-OAuth mode) | First call from a user with no stored token. The user completes the ServiceNow OAuth consent flow, the token lands in the vault, and later calls reuse it. See [User-delegated OAuth](https://docs.redpanda.com/agentic-data-plane/connect/user-delegated-oauth/). |

## Limitations

This MCP server does not cover:

-   Record deletion: Writes are limited to the typed incident tools and the two catalog submission tools. The MCP never deletes records.

-   Arbitrary SQL: Reads go through the REST Table API and encoded queries, not a SQL interface. Use `query_records` against allow-listed tables instead.

-   Order guides, content items, and order wizards: The server refuses these three classes rather than submitting one, and refuses a record producer on the ordering path, because `submit_record_producer` is what submits it. Any other class is submitted, including an item whose class couldn’t be read, because most orderable items belong to a subclass rather than to the base class. A catalog search reports each item’s class, so an agent can tell a user that a given item can’t be ordered here.

-   Ordering on behalf of someone else: Neither submission tool takes an argument naming a different requester. You can still set a requester through a form’s own requester variable, where the item has one.

-   Two-step checkout: The server detects an instance configured to place an ordered item in a cart instead of raising a request, rather than working around it. The submission then reports an error saying the item is already submitted, so don’t submit it again.


## Next steps

-   [Configure an OAuth Provider](https://docs.redpanda.com/agentic-data-plane/connect/oauth-providers/)

-   [User-delegated OAuth](https://docs.redpanda.com/agentic-data-plane/connect/user-delegated-oauth/)

-   [Create an MCP Server](https://docs.redpanda.com/agentic-data-plane/connect/create-server/)