How to integrate ServiceNow MCP with OpenAI Agents SDK

This guide walks you through connecting ServiceNow to the OpenAI Agents SDK using the Composio tool router. By the end, you'll have a working ServiceNow agent that can list all open incidents assigned to me, create a new servicenow change request, update priority of ticket inc0012345 to high through natural language commands. This guide will help you understand how to give your OpenAI Agents SDK agent real control over a ServiceNow account through Composio's ServiceNow MCP server. Before we dive in, let's take a quick look at the key ideas and tools involved.

ServiceNow logoServiceNow
BasicS2s Oauth2

ServiceNow is a cloud-based platform for automating digital workflows across IT, HR, and operations. It streamlines processes and improves efficiency for enterprise teams.

172 Tools

Introduction

This guide walks you through connecting ServiceNow to the OpenAI Agents SDK using the Composio tool router. By the end, you'll have a working ServiceNow agent that can list all open incidents assigned to me, create a new servicenow change request, update priority of ticket inc0012345 to high through natural language commands.

This guide will help you understand how to give your OpenAI Agents SDK agent real control over a ServiceNow account through Composio's ServiceNow MCP server.

Before we dive in, let's take a quick look at the key ideas and tools involved.

Also integrate ServiceNow with

TL;DR

Here's what you'll learn:
  • Get and set up your OpenAI and Composio API keys
  • Install the necessary dependencies
  • Initialize Composio and create a Tool Router session for ServiceNow
  • Configure an AI agent that can use ServiceNow as a tool
  • Run a live chat session where you can ask the agent to perform ServiceNow operations

What is OpenAI Agents SDK?

The OpenAI Agents SDK is a lightweight framework for building AI agents that can use tools and maintain conversation state. It provides a simple interface for creating agents with hosted MCP tool support.

Key features include:

  • Hosted MCP Tools: Connect to external services through hosted MCP endpoints
  • SQLite Sessions: Persist conversation history across interactions
  • Simple API: Clean interface with Agent, Runner, and tool configuration
  • Streaming Support: Real-time response streaming for interactive applications

What is the ServiceNow MCP server, and what's possible with it?

The ServiceNow MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your ServiceNow account. It provides structured and secure access so your agent can perform ServiceNow operations on your behalf.

What is the Composio tool router, and how does it fit here?

What is Composio SDK?

Composio's Composio SDK helps agents find the right tools for a task at runtime. You can plug in multiple toolkits (like Gmail, HubSpot, and GitHub), and the agent will identify the relevant app and action to complete multi-step workflows. This can reduce token usage and improve the reliability of tool calls. Read more here: Getting started with Composio SDK

The tool router generates a secure MCP URL that your agents can access to perform actions.

How the Composio SDK works

The Composio SDK follows a three-phase workflow:

  1. Discovery: Searches for tools matching your task and returns relevant toolkits with their details.
  2. Authentication: Checks for active connections. If missing, creates an auth config and returns a connection URL via Auth Link.
  3. Execution: Executes the action using the authenticated connection.

Step-by-step Guide

Step by step09 STEPS
1

Prerequisites

Before starting, make sure you have:
  • Composio API Key and OpenAI API Key
  • Primary know-how of OpenAI Agents SDK
  • A live ServiceNow project
  • Some knowledge of Python or Typescript
2

Getting API Keys for OpenAI and Composio

OpenAI API Key
  • Go to the OpenAI dashboard and create an API key. You'll need credits to use the models, or you can connect to another model provider.
  • Keep the API key safe.
Composio API Key
3

Install dependencies

npm install @composio/openai-agents @openai/agents dotenv

Install the Composio SDK and the OpenAI Agents SDK.

4

Set up environment variables

bash
OPENAI_API_KEY=sk-...your-api-key
COMPOSIO_API_KEY=your-api-key
USER_ID=composio_user@gmail.com

Create a .env file and add your OpenAI and Composio API keys.

5

Import dependencies

import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';
What's happening:
  • You're importing all necessary libraries.
  • The Composio and OpenAIAgentsProvider classes are imported to connect your OpenAI agent to Composio tools like ServiceNow.
6

Set up the Composio instance

dotenv.config();

const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;

if (!composioApiKey) {
  throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
  throw new Error('USER_ID is not set');
}

// Initialize Composio
const composio = new Composio({
  apiKey: composioApiKey,
  provider: new OpenAIAgentsProvider(),
});
What's happening:
  • dotenv.config() loads your .env file so COMPOSIO_API_KEY and USER_ID are available as environment variables.
  • Creating a Composio instance using the API Key and OpenAIAgentsProvider class.
7

Create a Tool Router session

// Create Tool Router session for ServiceNow
const session = await composio.create(userId as string, {
  toolkits: ['servicenow'],
});
const mcpUrl = session.mcp.url;

What is happening:

  • You give the Tool Router the user id and the toolkits you want available. Here, it is only servicenow.
  • The router checks the user's ServiceNow connection and prepares the MCP endpoint.
  • The returned session.mcp.url is the MCP URL that your agent will use to access ServiceNow.
  • This approach keeps things lightweight and lets the agent request ServiceNow tools only when needed during the conversation.
8

Configure the agent

// Configure agent with MCP tool
const agent = new Agent({
  name: 'Assistant',
  model: 'gpt-5',
  instructions:
    'You are a helpful assistant that can access ServiceNow. Help users perform ServiceNow operations through natural language.',
  tools: [
    hostedMcpTool({
      serverLabel: 'tool_router',
      serverUrl: mcpUrl,
      headers: { 'x-api-key': composioApiKey },
      requireApproval: 'never',
    }),
  ],
});
What's happening:
  • We're creating an Agent instance with a name, model (gpt-5), and clear instructions about its purpose.
  • The agent's instructions tell it that it can access ServiceNow and help with queries, inserts, updates, authentication, and fetching database information.
  • The tools array includes a hostedMcpTool that connects to the MCP server URL we created earlier.
  • The headers object includes the Composio API key for secure authentication with the MCP server.
  • requireApproval: 'never' means the agent can execute ServiceNow operations without asking for permission each time, making interactions smoother.
9

Start chat loop and handle conversation

// Keep conversation state across turns
const conversationSession = new OpenAIConversationsSession();

// Simple CLI
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  prompt: 'You: ',
});

console.log('\nComposio Tool Router session created.');
console.log('\nChat started. Type your requests below.');
console.log("Commands: 'exit', 'quit', or 'q' to end\n");

try {
  const first = await run(agent, 'What can you help me with?', { session: conversationSession });
  console.log(`Assistant: ${first.finalOutput}\n`);
} catch (e) {
  console.error('Error:', e instanceof Error ? e.message : e, '\n');
}

rl.prompt();

rl.on('line', async (userInput) => {
  const text = userInput.trim();

  if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
    console.log('Goodbye!');
    rl.close();
    process.exit(0);
  }

  if (!text) {
    rl.prompt();
    return;
  }

  try {
    const result = await run(agent, text, { session: conversationSession });
    console.log(`\nAssistant: ${result.finalOutput}\n`);
  } catch (e) {
    console.error('Error:', e instanceof Error ? e.message : e, '\n');
  }

  rl.prompt();
});

rl.on('close', () => {
  console.log('\n👋 Session ended.');
  process.exit(0);
});
What's happening:
  • The program prints a session URL that you visit to authorize ServiceNow.
  • After authorization, the chat begins.
  • Each message you type is processed by the agent using run().
  • The responses are printed to the console.
  • Typing exit, quit, or q cleanly ends the chat.

Complete Code

Here's the complete code to get you started with ServiceNow and OpenAI Agents SDK:

import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';

const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;

if (!composioApiKey) {
  throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
  throw new Error('USER_ID is not set');
}

// Initialize Composio
const composio = new Composio({
  apiKey: composioApiKey,
  provider: new OpenAIAgentsProvider(),
});

async function main() {
  // Create Tool Router session
  const session = await composio.create(userId as string, {
    toolkits: ['servicenow'],
  });
  const mcpUrl = session.mcp.url;

  // Configure agent with MCP tool
  const agent = new Agent({
    name: 'Assistant',
    model: 'gpt-5',
    instructions:
      'You are a helpful assistant that can access ServiceNow. Help users perform ServiceNow operations through natural language.',
    tools: [
      hostedMcpTool({
        serverLabel: 'tool_router',
        serverUrl: mcpUrl,
        headers: { 'x-api-key': composioApiKey },
        requireApproval: 'never',
      }),
    ],
  });

  // Keep conversation state across turns
  const conversationSession = new OpenAIConversationsSession();

  // Simple CLI
  const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
    prompt: 'You: ',
  });

  console.log('\nComposio Tool Router session created.');
  console.log('\nChat started. Type your requests below.');
  console.log("Commands: 'exit', 'quit', or 'q' to end\n");

  try {
    const first = await run(agent, 'What can you help me with?', { session: conversationSession });
    console.log(`Assistant: ${first.finalOutput}\n`);
  } catch (e) {
    console.error('Error:', e instanceof Error ? e.message : e, '\n');
  }

  rl.prompt();

  rl.on('line', async (userInput) => {
    const text = userInput.trim();

    if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
      console.log('Goodbye!');
      rl.close();
      process.exit(0);
    }

    if (!text) {
      rl.prompt();
      return;
    }

    try {
      const result = await run(agent, text, { session: conversationSession });
      console.log(`\nAssistant: ${result.finalOutput}\n`);
    } catch (e) {
      console.error('Error:', e instanceof Error ? e.message : e, '\n');
    }

    rl.prompt();
  });

  rl.on('close', () => {
    console.log('\nSession ended.');
    process.exit(0);
  });
}

main().catch((err) => {
  console.error('Fatal error:', err);
  process.exit(1);
});

Conclusion

This was a starter code for integrating ServiceNow MCP with OpenAI Agents SDK to build a functional AI agent that can interact with ServiceNow.

Key features:

  • Hosted MCP tool integration through Composio's Tool Router
  • SQLite session persistence for conversation history
  • Simple async chat loop for interactive testing
You can extend this by adding more toolkits, implementing custom business logic, or building a web interface around the agent.
TOOLS

Supported Tools

Every ServiceNow action and event your agent gets out of the box.

Attach file to record

Attaches a file to a specified record in a ServiceNow table.

Cancel change conflict check

Cancels the running conflict checking process for a specified ServiceNow change request.

Create a record

Creates a new record in a specified ServiceNow table with the provided field values.

Create attachment upload

Uploads a file as a multipart form-data attachment to a specified record in ServiceNow.

Create CI Lifecycle Management Action

Adds a specified configuration item (CI) action using the ServiceNow CI Lifecycle Management API.

Create ci lifecycle mgmt operators

Registers a new operator for a non-workflow user in the ServiceNow CI Lifecycle Management system.

Set CI Operational State

Sets the operational state for one or more configuration items (CIs) using the ServiceNow CI Lifecycle Management API.

Create CMDB Application Service

Creates an application service in ServiceNow CMDB or updates an existing one if a service with the same name already exists.

Create CMDB Linux Server

Creates a new Linux server configuration item (CI) in the ServiceNow CMDB.

Ingest CMDB Records

Inserts multiple records into a ServiceNow Import Set staging table.

Create CMDB Instance

Creates a single Configuration Item (CI) in ServiceNow CMDB with the specified attributes.

Create CMDB Instance Relation

Creates an inbound and/or outbound relation for a specific configuration item (CI) in the ServiceNow CMDB.

Create data classification classify

Assigns pre-defined or user-defined data classification labels to records in ServiceNow tables.

Create data classification clear

Removes all data classifications for a specific record in a ServiceNow table.

Enhanced CI Identify/Reconcile

Inserts or updates configuration items (CIs) in ServiceNow CMDB using the enhanced Identification and Reconciliation API.

Query CMDB Identify Reconcile

Queries the ServiceNow Identify and Reconcile API to determine whether a Configuration Item (CI) should be inserted (created) or updated in the CMDB based on identity matching rules.

CMDB Identify Reconcile QueryEnhanced

Performs identification and reconciliation of configuration items (CIs) in the ServiceNow CMDB.

Create Import Set

Inserts incoming data into a specified ServiceNow staging table and triggers the associated transform map to move the data into the production table.

Create incident

Creates a new incident record in ServiceNow with the provided details.

Create Incident

Creates a new incident record in ServiceNow with the provided field values.

Create ServiceNow Interaction

Creates a new interaction record in ServiceNow that can be linked to records in other tables (e.

Close Interaction

Closes an existing interaction record in ServiceNow by changing its state to closed.

Create push installation

Registers or updates a device token for receiving push notifications through ServiceNow.

Remove Push Installation

Deactivates a mobile device installation from receiving push notifications using the ServiceNow Push Installation API.

Create servic catalog items add to cart

Adds a specified catalog item to the current user's ServiceNow shopping cart.

Submit Service Catalog Producer Item

Submits a ServiceNow Service Catalog item using the submit_producer endpoint.

Checkout Service Catalog Cart

Checks out the Service Catalog shopping cart and submits the order as a request.

Submit Service Catalog Cart Order

Submits the Service Catalog shopping cart and creates a service catalog request.

Create servicecatalog items checkout guide

Checks out an order guide by updating variable values for selected catalog items.

Order Service Catalog Item Now

Orders a specified ServiceNow Service Catalog item immediately.

Insert Multiple Import Set Records

Inserts multiple records into a specified ServiceNow staging table and triggers the associated transform map.

Create sn chg rest change

Creates a new change request in ServiceNow using the Change Management REST API.

Create Change Request CI Association

Creates an association between a change request and one or more configuration items (CIs) in ServiceNow.

Start Change Conflict Check

Starts the conflict checking process for a ServiceNow change request, identifying scheduling conflicts with other changes or blackout windows.

Create sn chg rest change emergency

Creates an emergency change request in ServiceNow using the Change Management API.

Create Normal Change Request

Creates a normal change request in ServiceNow using the Change Management REST API.

Create sn chg rest change standard

Creates a new standard change request in ServiceNow using a pre-approved standard change template.

Create Change Task

Creates a new task for a ServiceNow change request using the Change Management REST API.

Create sn cicd app batch install

Installs two or more ServiceNow application packages in a single batch operation via the CICD API.

Install App from Repository

Installs the specified application from the ServiceNow app repository.

Run Full Instance Scan

Initiates a full instance scan by running all active checks present in the ServiceNow instance.

Create sn cicd instance scan suite scan combo

Runs a CI/CD scan using a suite and target (scoped app) combination in ServiceNow.

Activate Plugin

Activates the specified plugin in ServiceNow's CICD Plugin API.

Run Test Suite

Starts a specified automated test suite using ServiceNow's CI/CD Pipeline API.

Create SD-WAN Trouble Ticket

Creates a new trouble ticket in ServiceNow using the Service Operations Workspace Trouble Ticket Open API.

Create TMF Service Category

Creates a new service category record in the ServiceNow TMF Service Catalog API.

Create table

Inserts a new record into the specified ServiceNow table with the provided field values.

Create ServiceNow Incident

Creates a new incident record in the ServiceNow incident table using the Table API.

Create or Update CMDB CI via IRE

Creates or updates CMDB configuration items (CIs) using the ServiceNow Identification and Reconciliation Engine (IRE) via the identify-reconcile endpoint.

Delete a record

Permanently deletes a specific record from a ServiceNow table using its sys_id.

Delete attachment by

Permanently deletes a specific attachment from ServiceNow using its sys_id.

Delete attachment by id v1

Permanently deletes a specific attachment from ServiceNow using its sys_id via the v1 API endpoint.

Delete attachment csm

Permanently deletes a specific CSM (Customer Service Management) attachment from ServiceNow using its sys_id.

Delete change task

Permanently deletes a specific task from a ServiceNow change request using its sys_id.

Delete ci lifecycle mgmt action

Permanently deletes a specific CI Lifecycle Management action from ServiceNow using its sys_id.

Delete ci lifecycle mgmt operators

Permanently unregisters an operator from the ServiceNow CI Lifecycle Management system.

Delete cmdb instance relation

Permanently deletes a specific CMDB CI (Configuration Item) relation using its sys_id.

Delete emergency change request

Permanently deletes a specific emergency change request from ServiceNow using its sys_id.

Delete incident by

Permanently deletes a specific incident from ServiceNow using its sys_id.

Delete incident by id2

Permanently deletes a specific incident from ServiceNow using its sys_id via the Table API.

Delete servicecatalog cart

Removes a specific item from the current ServiceNow Service Portal shopping cart.

Delete service catalog cart empty

Empties all items from a specified Service Catalog shopping cart using its sys_id.

Delete sn chg rest change

Permanently deletes a specific change request using its sys_id via the Change Management REST API.

Delete Normal Change Request

Permanently deletes a normal change request identified by its sys_id using the ServiceNow Change Management REST API.

Delete sn chg rest change standard

Permanently deletes a standard change request from ServiceNow using its sys_id.

Delete table

Permanently deletes a specific record from a ServiceNow table using its sys_id.

Delete table incident

Permanently deletes a specific incident record from ServiceNow using its sys_id.

Find file

Retrieves attachment metadata from ServiceNow's sys_attachment table.

Get Activity Subscription Activities

Retrieves activity records from the ServiceNow ActivitySubscription API.

Get Activity Subscription Facets

Retrieves facets configured for an activity context in ServiceNow.

Get Agent Intelligence Solution Prediction

Predicts an output field value using a trained Agent Intelligence solution model.

List Agent Intelligence Solution Predictions

Retrieves a list of solution predictions from ServiceNow's Agent Intelligence engine.

Get All Data Classes

Retrieves all data classification records from the ServiceNow Data Classification API.

Get App Service CMDB Content

Retrieves a list of configuration items (CIs) associated with a specific application service in ServiceNow CMDB.

Get attachment by

Retrieves metadata for a specific attachment by its sys_id from ServiceNow.

Get Attachment by ID

Retrieves metadata for a specific attachment by its sys_id from ServiceNow.

Get attachment file

Downloads the binary file attachment with the specified sys_id from ServiceNow.

Get attachment file file

Downloads the binary file attachment with the specified sys_id from ServiceNow using the v1 API endpoint.

Get Attachment List

Retrieves metadata for multiple file attachments from ServiceNow's Attachment API.

Get change ci schedule

Retrieves available time slots for scheduling changes against a specific Configuration Item (CI).

Get Change Conflict Status

Retrieves the conflict status for a ServiceNow change request, identifying scheduling conflicts with other changes or blackout windows.

Get change nextstates

Retrieves a list of available next states for a specified change request based on the current state and workflow.

Get Change Request Configuration Items

Retrieves configuration items (CIs) associated with a specific change request in ServiceNow.

Get change schedule

Retrieves available time slots for scheduling a ServiceNow change request.

Get CI Lifecycle Management Action

Retrieves a specific CI Lifecycle Management action from ServiceNow using its sys_id.

Check CI Compatibility

Determines whether two specified Configuration Items (CIs) in the ServiceNow CMDB are compatible using the CI Lifecycle Management compatActions endpoint.

Check CI Lease Expiration Status

Determines whether a CI Lifecycle Management lease has expired for the specified lease record.

Check CI Not Allowed Ops Transition

Determines whether a configuration item (CI) can be transitioned based on CI lifecycle management rules.

Validate CI Lifecycle Management Requestor

Validates whether a specified active workflow requestor exists and is valid in ServiceNow CI Lifecycle Management.

Get CI Lifecycle Mgmt Status

Retrieves the current operational status for a Configuration Item (CI) in ServiceNow CMDB using the CI Lifecycle Management API.

Get CMDB Linux Server by ID

Retrieves a single CMDB Linux server configuration item (CI) by its sys_id, including its attributes and relationship information.

Find CSDM Application Service

Finds and returns basic information about one or more application services in the ServiceNow CMDB using the CSDM (Common Service Data Model) app_service find_service endpoint.

Get CMDB Instance by Class

Retrieves configuration items (CIs) from a specified CMDB class using the ServiceNow CMDB Instance API.

Get CMDB Instance by ID

Retrieves a single CMDB configuration item (CI) by its class name and sys_id, including its attributes and relationship information.

Get CMDB Class Metadata

Retrieves metadata and schema information for a specified CMDB (Configuration Management Database) class.

Get Cloud Catalog Services

Retrieves a list of catalog items from the ServiceNow Cloud Services Catalog API.

Get Email by ID

Retrieves a specific email record from ServiceNow's Email [sys_email] table by its sys_id.

Get Global User Role Inheritance

Retrieves the granted and inherited roles for a specified ServiceNow user using the Global User Role Inheritance API.

Get import

Retrieves the specified import staging record and its associated target records.

Get incident by

Retrieves a specific incident from ServiceNow by its sys_id.

Get incident by id2

Retrieves a specific incident from ServiceNow by its sys_id using the Table API.

Get Incidents

Retrieves incidents from the ServiceNow incident table using the Table API.

Get Performance Analytics Scorecards

Retrieves details about indicators from the Analytics Hub, including scorecard information for performance analytics.

Get records

Retrieves multiple records from a specified ServiceNow table with optional filtering and pagination.

Get Record Types

Retrieves all available table record types from the ServiceNow instance using the Table API documentation endpoint.

Get Rows from Table

Retrieves records from a specified ServiceNow table using the Table API v2.

Get servicatalog items by

Retrieves a specific Service Catalog item from ServiceNow using its sys_id.

Get Catalog Item Variables

Retrieves the list of variables defined for a ServiceNow Service Catalog item.

Get Service Catalog Cart

Retrieves the details of all items within the logged-in user's Service Catalog shopping cart.

Get Service Catalog Cart Delivery Address

Retrieves the delivery/shipping address configured for a user's Service Catalog shopping cart.

Get Service Catalog Catalog by ID

Retrieves the available information for a specified service catalog by its sys_id.

Get Service Catalog Catalog Categories

Retrieves the list of available categories for a specified ServiceNow Service Catalog.

Get Service Catalog Category by ID

Retrieves the available information for a specified service catalog category by its sys_id.

Get Service Catalog Item Delegation

Verifies whether a delegated user has access to a specific ServiceNow Service Catalog item.

Get Service Catalog Items List

Retrieves a list of catalog items from ServiceNow's Service Catalog API.

Get Service Catalog Wishlist List

Retrieves the list of items in the logged-in user's ServiceNow Service Catalog wishlist.

Get sn cdm shared libraries upload status

Retrieves the current status of a shared library upload operation in ServiceNow.

Get sn chg rest change by

Retrieves a specific change request from ServiceNow using its sys_id.

Get sn chg rest change emergency by

Retrieves a specific emergency change request from ServiceNow using its sys_id.

Get sn chg rest change emergency list

Retrieves one or more emergency change requests from ServiceNow using the Change Management API.

List ServiceNow Change Requests

Retrieves one or more change requests from ServiceNow based on specified filter criteria.

Get sn chg rest change model by

Retrieves a specific change model from ServiceNow using its sys_id.

Get sn chg rest change model list

Retrieves one or more change models from ServiceNow's Change Management API.

Get Normal Change Request by ID

Retrieves a specific normal change request from ServiceNow using its sys_id via the Change Management REST API.

List ServiceNow Normal Change Requests

Retrieves one or more normal change requests from ServiceNow's Change Management API.

Get sn chg rest change standard by

Retrieves a specific standard change request from ServiceNow using its sys_id.

Get sn chg rest change standard list

Retrieves one or more standard change requests from ServiceNow using the Change Management API.

Get ServiceNow Standard Change Template by ID

Retrieves a specific standard change template from ServiceNow using its sys_id.

List ServiceNow Standard Change Templates

Retrieves one or more standard change templates from ServiceNow's Change Management API.

Get Change Tasks

Retrieves one or more tasks associated with a specific ServiceNow change request.

Get sn cicd app batch results

Retrieves the results of a batch application install operation from ServiceNow CI/CD.

Get Instance Scan Result

Retrieves the current progress and status of a CI/CD instance scan operation in ServiceNow.

Get CI/CD Progress

Retrieves the current progress and status of a CI/CD operation in ServiceNow.

Get sn cicd testsuite results

Retrieves the results of a test suite run from ServiceNow CI/CD based on the result ID.

Get stats

Retrieves aggregate statistics for a specified ServiceNow table, including COUNT, AVG, MIN, MAX, and SUM calculations.

Get Table Records by ID

Retrieves multiple records from a specified ServiceNow table using the Table API.

Get Table Record by ID

Retrieves the record identified by the specified sys_id from the specified table.

Get table incident by

Retrieves a single incident record from ServiceNow by its sys_id using the Table API.

List ServiceNow Incidents

Retrieves one or more incident records from the ServiceNow incident table using the Table API.

Get ServiceNow Tables

Retrieves one or more records from a ServiceNow table using the Table API (GET /api/now/v2/table).

Get user

Retrieves a specific user record from ServiceNow using its sys_id.

Get users

Retrieves multiple user records from the ServiceNow sys_user table with optional filtering and pagination.

List ServiceNow Attachments

Retrieves metadata for multiple file attachments from ServiceNow's Attachment API.

List CMDB Linux Servers

Retrieves Linux server configuration items (CIs) from the ServiceNow CMDB using the cmdb_ci_linux_server class.

List CMDB Configuration Items

Retrieves configuration items (CIs) from the ServiceNow CMDB using the base cmdb_ci class.

List CMDB Relationship Types

Retrieves CMDB relationship types from the ServiceNow cmdb_rel_type table using the Table API.

List Service Catalog Catalogs

Retrieves a list of ServiceNow Service Catalog catalogs to which the user has access.

Refresh Impacted Services for Change

Refreshes and repopulates the impacted services/configuration items for a change request in ServiceNow using the Change Management REST API.

Retrieve sn cicd update set

Retrieves an update set with a given sys_id from the ServiceNow CICD (Continuous Integration/Continuous Delivery) plugin.

Schedule change first available

Updates the planned start and end times of a ServiceNow change request to the first available schedule slot.

Update cmdb csdm app service populate service

Populates an Application Service with CI (Configuration Item) relationships based on the CSDM (Common Service Data Model) model.

Update CMDB CSDM App Service Service Details

Updates the service details for a specific application service in the CMDB CSDM (Common Service Data Model).

Update cmdb instance by

Updates an existing configuration item (CI) record in the ServiceNow CMDB by its sys_id.

Update CMDB Instance by ID

Updates an existing Configuration Item (CI) instance in the ServiceNow CMDB.

Update conversation member drop

Drops an agent from a conversation in ServiceNow using the Conversation Member API.

Update incident by

Updates an existing incident in ServiceNow identified by its sys_id using the Table API.

Update incident by id2

Updates an existing incident record in ServiceNow using the Table API.

Update openframe voice interaction

Updates an existing voice interaction record in ServiceNow OpenFrame.

Update servicecatalog cart

Updates an existing item in the ServiceNow Service Portal shopping cart.

Update servicecatalog items submit guide

Submits an order guide in ServiceNow's Service Catalog with the specified variable values.

Update sn chg rest change

Updates an existing change request in ServiceNow using the Change Management REST API.

Update sn chg rest change emergency

Updates an existing emergency change request in ServiceNow using the Change Management API.

Update Normal Change Request

Updates a normal change request identified by its sys_id using the ServiceNow Change Management REST API.

Update ServiceNow Standard Change Request

Updates a standard change request in ServiceNow using its sys_id.

Update sn chg rest change task

Updates an existing change request task in ServiceNow using the Change Management REST API.

Update SD-WAN Trouble Ticket

Updates an existing trouble ticket in ServiceNow using the Service Operations Workspace Trouble Ticket Open API.

Update Trouble Ticket

Updates an existing trouble ticket in ServiceNow using the Trouble Ticket Open API.

Update table by

Updates an existing record in a specified ServiceNow table by its sys_id using the Table API.

Update table by id2

Updates an existing record in a specified ServiceNow table using its sys_id with the provided field values.

Update table incident

Updates an existing incident record in ServiceNow using the Table API.

Update table record

Updates an existing record in a specified ServiceNow table using the Table API.

Upload Attachment to ServiceNow Record

Uploads a file as an attachment to a specified record in ServiceNow.

FAQ

Frequently asked questions

With a standalone ServiceNow MCP server, the agents and LLMs can only access a fixed set of ServiceNow tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from ServiceNow and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. OpenAI Agents SDK fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right ServiceNow tools.

Yes, absolutely. You can configure which ServiceNow scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your ServiceNow data and credentials are handled as safely as possible.

Start with ServiceNow.It takes 30 seconds.

Managed auth, hosted MCP servers, and every ServiceNow tool your agent needs.Free to start.

Start building