Incident options
- Permission required
incidents.view
When to use it
The valid values to create or change incidents: active categories, departments, centres in your scope and assignable people (those allowed to handle incidents at that centre). Use it before update_incident_preview to get the ids.
Input
| Field | Type | Description |
|---|---|---|
organization_id | integer | Only to narrow: must be your organization (Autonex staff may pick another) |
location_id | integer | Only people who can own incidents of this centre |
department_id | integer | Only people in this department |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
categoriesRequired | object[] | |
categories[].idRequired | number | |
categories[].nameRequired | string | |
categories[].default_departmentRequired | object | null | |
categories[].default_priorityRequired | string | null | |
departmentsRequired | object[] | |
departments[].idRequired | number | |
departments[].nameRequired | string | |
departments[].location_idsRequired | number[] | Centres it works at; empty = all |
centresRequired | object[] | The centres in your scope |
centres[].idRequired | number | |
centres[].nameRequired | string | |
assignableRequired | object[] | People who can be assigned (permission and centre) |
assignable[].idRequired | number | |
assignable[].nameRequired | string | |
assignable[].avatar_urlRequired | string | null | |
assignable[].departmentsRequired | string[] |
Examples
Example 1: Who can own incidents of centre 5
Call
{
"name": "incident_options",
"arguments": {
"location_id": 5
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "incident_options",
"arguments": {
"location_id": 5
}
}
}