Skip to main content
Glama

ServiceNow MCP Server

MIT License

create_catalog_item_variable

Generate and configure a new variable for a catalog item in ServiceNow, specifying type, label, mandatory status, default value, and other attributes for efficient catalog management.

Instructions

Create a new catalog item variable

Input Schema

NameRequiredDescriptionDefault
catalog_item_idYesThe sys_id of the catalog item
default_valueNoDefault value for the variable
descriptionNoDescription of the variable
help_textNoHelp text to display with the variable
labelYesThe display label for the variable
mandatoryNoWhether the variable is required
maxNoMaximum value for numeric fields
max_lengthNoMaximum length for string fields
minNoMinimum value for numeric fields
nameYesThe name of the variable (internal name)
orderNoDisplay order of the variable
reference_qualifierNoFor reference fields, the query to filter reference options
reference_tableNoFor reference fields, the table to reference
typeYesThe type of variable (e.g., string, integer, boolean, reference)

Input Schema (JSON Schema)

{ "description": "Parameters for creating a catalog item variable.", "properties": { "catalog_item_id": { "description": "The sys_id of the catalog item", "title": "Catalog Item Id", "type": "string" }, "default_value": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Default value for the variable", "title": "Default Value" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Description of the variable", "title": "Description" }, "help_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Help text to display with the variable", "title": "Help Text" }, "label": { "description": "The display label for the variable", "title": "Label", "type": "string" }, "mandatory": { "default": false, "description": "Whether the variable is required", "title": "Mandatory", "type": "boolean" }, "max": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Maximum value for numeric fields", "title": "Max" }, "max_length": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Maximum length for string fields", "title": "Max Length" }, "min": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Minimum value for numeric fields", "title": "Min" }, "name": { "description": "The name of the variable (internal name)", "title": "Name", "type": "string" }, "order": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Display order of the variable", "title": "Order" }, "reference_qualifier": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "For reference fields, the query to filter reference options", "title": "Reference Qualifier" }, "reference_table": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "For reference fields, the table to reference", "title": "Reference Table" }, "type": { "description": "The type of variable (e.g., string, integer, boolean, reference)", "title": "Type", "type": "string" } }, "required": [ "catalog_item_id", "name", "type", "label" ], "title": "CreateCatalogItemVariableParams", "type": "object" }

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/vparlapalli490/MCP'

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