Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Push Script to ServiceNow

push_script

Push a local script file to a ServiceNow instance by updating the script field on an existing record. Works with Script Includes, Business Rules, UI Scripts, UI Actions, and Client Scripts.

Instructions

Push a local script file to a ServiceNow instance, updating the script field on the matching record. The file is read from the specified path and the record is found by name in the appropriate table.

IMPORTANT: This modifies code on the ServiceNow instance. The record must already exist — this updates an existing script, it does not create new ones.

Supported script types:

  • sys_script_include (Script Include)

  • sys_script (Business Rule)

  • sys_ui_script (UI Script)

  • sys_ui_action (UI Action)

  • sys_script_client (Client Script)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
script_nameYesThe name of the script record to update on the instance.
script_typeYesThe type of script to push.
file_pathYesLocal file path to read the script content from.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It clearly states the tool modifies code and updates an existing record, which is important behavioral context. However, it does not disclose specifics like authentication, rate limits, error handling, or what happens to the previous script version.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with five sentences, front-loading the action, then providing an important note, and finally listing supported types. No redundant information, but could be slightly more streamlined.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description does not mention the return value or output, which is important since there is no output schema. For a mutation tool, it should specify success/failure indicators or confirmation. Additionally, it lacks details on script validation or error scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

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. The description adds marginal value beyond the schema by mentioning the record is found by name and file is read from path, but this is already implied by the parameter names and descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool pushes a local script file to ServiceNow to update an existing script record. It specifies the verb (push/update), the resource (local script file and ServiceNow record), and lists the supported script types, making the purpose distinct from sibling tools like pull_script.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly notes that the tool modifies code and requires the record to already exist (no creation). This provides clear usage context. However, it does not mention alternatives or when not to use, e.g., for creating new scripts or pulling scripts.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sonisoft-cnanda/now-sdk-ext-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server