Skip to content

Tools reference

swsd-mcp registers 23 tools across 6 categories. Each tool’s input schema, full description, and output shape is auto-discovered by your MCP client at runtime — ask your agent “what swsd tools are available?” for the live list.

This page is the at-a-glance summary: what each tool does and which profile includes it.

SymbolMeaning
Tool is registered in this profile
WWrite tool — modifies SWSD state. Does not retry on transient failure (avoids duplicate writes).
RRead tool — safe to retry; auto-retries up to SWSD_RETRY_MAX_ATTEMPTS on 5xx/network errors.

ToolTypetriageagentknowledgefull
swsd_get_server_infoR
swsd_health_checkR

swsd_get_server_info returns version, profile, transport, base URL, and the list of enabled tools — useful for verifying server configuration from inside the MCP client.

swsd_health_check performs a live API call to SWSD (lightweight read against /users/me.json) and returns connectivity + auth status. Use this as the first call to confirm your token works.


ToolTypetriageagentknowledgefull
swsd_list_incidentsR
swsd_get_incidentR
swsd_create_incidentW
swsd_update_incidentW
swsd_assign_incidentW
swsd_update_incident_stateW
swsd_link_solution_to_incidentW
  • swsd_list_incidents — paginated list with rich filtering (state, assignee, requester, site, priority, custom-field values). Returns id, name, state, requester, assignee, site, created/updated.
  • swsd_get_incident — full incident detail including HTML and plain-text descriptions, custom-field values, comment thread, and linked solutions.
  • swsd_create_incident — minimum required: name. Strongly recommended: description, requester, category, site. Returns the created incident’s full payload.
  • swsd_update_incident — partial-update semantics: pass only the fields you want to change. To clear a field, pass null.
  • swsd_assign_incident — convenience wrapper for changing the assignee (user or group). Validates that the assignee exists.
  • swsd_update_incident_state — state transition with optional resolution comment. Validates against your tenant’s allowed states.
  • swsd_link_solution_to_incident — append-only solution linking. Fetches existing links, adds the new one, PUTs the merged set so existing links aren’t dropped.

ToolTypetriageagentknowledgefull
swsd_list_incident_commentsR
swsd_add_incident_commentW
swsd_update_commentW
  • swsd_list_incident_comments — paginated comment thread for an incident, including private/internal comments if your token has permission.
  • swsd_add_incident_comment — post a new comment. Set is_private: true for internal-only comments (default false = visible to the requester). To edit later, use swsd_update_comment.
  • swsd_update_comment — edit an existing comment’s body or visibility.

ToolTypetriageagentknowledgefull
swsd_search_solutionsR
swsd_get_solutionR
swsd_create_solutionW
swsd_update_solutionW
  • swsd_search_solutions — full-text search across titles and descriptions. Pass category to filter to a specific KB section.
  • swsd_get_solution — full article including HTML and plain-text bodies, attachments, related incidents.
  • swsd_create_solution — required: title. Strongly recommended: description (HTML supported), state, category.
  • swsd_update_solution — partial update. To replace the description entirely, pass the full new body.

All lookup tools are read-only. They exist to validate IDs/names before passing to write tools (e.g., look up a site name before creating an incident with site_name).

ToolTypetriageagentknowledgefull
swsd_list_categoriesR
swsd_list_sitesR
swsd_list_departmentsR
swsd_list_usersR
swsd_list_groupsR
swsd_list_rolesR

Each returns id, name, plus type-specific fields (e.g., time_zone for sites, disabled for groups).


ToolTypetriageagentknowledgefull
swsd_describe_custom_fieldsR
  • swsd_describe_custom_fields — schema introspection for custom fields defined in your tenant. Returns each field’s name, type, category, allowed values (for picklists), and which entity types it applies to.

Use SWSD_ENABLE_EXTRAS to add specific tools on top of the chosen profile. See Configuration → Profiles.

Example: triage profile + KB read access:

Terminal window
SWSD_PROFILE=triage
SWSD_ENABLE_EXTRAS=swsd_search_solutions,swsd_get_solution