create_catalog_variable
Add a form variable to a ServiceNow catalog item by specifying its name, question text, type, order, and mandatory status.
Instructions
[Write] Add a form variable to a service catalog item
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cat_item_id": "<cat_item_id>",
"name": "<name>",
"question_text": "<question_text>",
"type": "<type>"
},
"name": "create_catalog_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name | |
| type | Yes | Variable type: string/reference/select_box/checkbox/date/date_time/integer (single line text)/multi_line_text/email/yes_no/multiple_choice/numeric_scale/list_collector/url/label, or a raw type number | |
| order | No | Display order (default: 100) | |
| mandatory | No | Required field | |
| cat_item_id | Yes | Catalog item sys_id | |
| question_text | Yes | Label shown to user |