swsd_create_incident
Create a new SWSD incident by providing a short title and optional details like description, priority, requester email, and category. Returns the incident ID for follow-up actions.
Instructions
Create a new SWSD incident. Required: name. Strongly recommended: description, requester_email, priority, category_name. The created incident's ID is returned for follow-up calls (swsd_assign_incident, swsd_add_incident_comment, etc.). WRITE — does not retry on transient failure; the agent should verify with swsd_get_incident before retrying. To set tenant-specific custom field values, pass custom_fields: [{name, value}] — call swsd_describe_custom_fields first to discover field names and (for Dropdowns) allowed values. Validated for Text, Dropdown, Number, Checkbox, and Date types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short incident title (required). | |
| description | No | Long-form description of the issue. Plain text or HTML. | |
| priority | No | Priority name (e.g., "Low", "Medium", "High"). Tenant-specific values. | |
| requester_email | No | Email of the user the ticket is for. Defaults to the token owner if omitted. | |
| assignee_email | No | Email of the agent to assign on creation. Use swsd_assign_incident later instead if you want to defer. | |
| category_name | No | Category name (must match an existing SWSD category — see swsd_list_categories). | |
| site_name | No | Site name (see swsd_list_sites). | |
| department_name | No | Department name (see swsd_list_departments). | |
| custom_fields | No | Set tenant-specific custom field values on the record. Multi_picklist and User-type fields are not yet supported by this tool (set those via the SWSD UI). Validated for Text, Dropdown, Number, Checkbox, and Date types. |