Skip to main content
Glama

create_script_include

Create a ServiceNow script include by supplying a name and class body, with options for scope, access, active state, and GlideAjax client-callability.

Instructions

Create a new script include (requires SCRIPTING_ENABLED=true)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesScript include name
scopeNoTarget application scope: a sys_scope sys_id, or "global" for the global scope. Default: your current application. Overriding scope needs cross-scope create rights.
accessNo"public" or "package_private" (default: "public")
activeNoWhether to activate (default: true)
scriptYesScript body (class definition). ServiceNow supports ES2021.
api_nameNoAPI name used to call this from other scripts
client_callableNoClient callable, for GlideAjax use (default: false)
Behavior4/5

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

Annotations already disclose the non-read-only, non-idempotent, non-destructive nature. The description adds the scripting-enabled requirement, which is useful operational context beyond what annotations provide. No contradictions with annotations.

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

Conciseness5/5

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

The description is a single, front-loaded sentence that states the action and a concise prerequisite in parentheses. It contains no filler or redundancy, making it appropriately concise.

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

Completeness4/5

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

Given the rich schema and annotations, the description is mostly sufficient for a simple create operation. However, since there is no output schema, a brief mention of the return format or failure behavior would have been beneficial. This is a minor gap.

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?

The input schema covers 100% of parameters with detailed descriptions, so the baseline is 3. The description adds no additional parameter-specific meaning beyond the schema, which is acceptable given the high schema coverage.

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 'Create a new script include' uses a specific verb and resource, clearly distinguishing this from siblings like get_script_include, update_script_include, and list_script_includes. The added prerequisite '(requires SCRIPTING_ENABLED=true)' further clarifies the operation's context.

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 provides a clear prerequisite (SCRIPTING_ENABLED=true) that an agent needs to know before invoking the tool. While it doesn't explicitly name alternatives, the action is unambiguous and the prerequisite gives solid usage context.

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/aartiq/nowaikit'

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