# ast servicenow

> Query ServiceNow incidents, users, and CMDB records via CLI and MCP for fast, read-only technical lookups.

ast servicenow is a paid AI agent skill on Agensi by Michael Timpe, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $49 (one-time purchase)
- Creator: [Michael Timpe](https://www.agensi.io/creators/michael-timpe)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-10-16
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ast-servicenow
- Tags: database, api, devops, servicenow, itsm, cmdb, mcp-server, python

## About this skill

Manually retrieving hardware ownership, ticket histories, or user details from ServiceNow slows down incident response and asset management. This skill provides a read-only interface to query ServiceNow records directly through the AST `sn-search` CLI and MCP tools.

### What it does
- **Incident Lookups** retrieves full details for specific `INC` numbers to check status and history.
- **User Profiling** queries the `sys_user` table to find managers, departments, and contact information.
- **Asset Tracking** searches the `cmdb_ci_computer` table to identify owners of laptops, hostnames, or serial numbers.
- **Contextual Search** finds all tickets associated with a specific individual for audit or troubleshooting.
- **Read-Only Safety** ensures no records are created, modified, or closed, maintaining data integrity.

### How it works
1. **Discovery** detects mention of ServiceNow or specific incident/asset identifiers in the conversation.
2. **Read Operations** uses the `sn-search` CLI or MCP tools to query the Table API for relevant records.
3. **Data Synthesis** parses JSON responses, checking for errors, truncation, or search gaps.
4. **Structured Reporting** delivers a summary, evidence table, and identified gaps in visibility.

### Frameworks & tools
This skill uses the Agentic Security Toolkit (AST) `sn-search` and `sectools` CLI utilities. It requires Python 3.12+, the ServiceNow Table API, and local credential storage via system keychain or `.env` files.

### Why this beats prompting it yourself
Generic prompts cannot securely authenticate or query live ServiceNow instances. This skill uses a hardened safety model that isolates secrets from the chat and provides structured error handling to distinguish between "no results" and "failed queries."

### Use cases
- Identify the manager and department of a user involved in a security alert.
- Verify the serial number and registered owner of a laptop reported as lost.
- Pull the history of recent incidents assigned to a specific service desk agent.

### Known limitations
Supports only `incident`, `sys_user`, and `cmdb_ci_computer` tables. It cannot create or update records and is restricted to ServiceNow environments.

## Requires

- Python 3.12+
- Bash 3.2+
- pip
- venv
- Optional: stdio MCP client
- Optional: System keychain

Windows only via WSL 2 (untested). Debian/Ubuntu need python3.12-venv. install.sh adds the Python packages from PyPI. Without a keychain, secrets go in .env.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ast servicenow skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific ServiceNow data can this skill retrieve for my AI agent?

This skill connects to your ServiceNow instance via the Table API to pull real-time data on incidents, user profiles, and CMDB hardware records without leaving your AI interface.

### Can this skill be used to update or close tickets within ServiceNow?

This is a read-only tool designed for technical lookups; it has no permissions to create, modify, or delete records, ensuring your production data remains unchanged.

### Which AI frameworks or agents are compatible with this skill?

It requires Python 3.12+ and uses the AST `sn-search` and `sectools` CLI utilities, making it compatible with any AI agent that supports MCP (Model Context Protocol) or CLI-based tool calling.

### What is included in the package when I purchase this skill?

Your purchase includes the production-ready Python scripts, the AST-compatible CLI utilities, and a configuration guide for connecting your ServiceNow credentials securely via system keychain or environment variables.

### Are there any limitations on which ServiceNow tables can be searched?

Yes, the skill is scoped to the `incident`, `sys_user`, and `cmdb_ci_computer` tables to ensure fast, reliable lookups for the most common IT and security use cases.

### How are my ServiceNow credentials handled and secured?

The skill uses a hardened safety model that stores your ServiceNow credentials in a local system keychain or .env file, keeping sensitive authentication details isolated from the LLM prompt.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
