service-itsm-incident-mgmt-configure
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConfiguring ITSM Incident Management (master toggle)
配置ITSM事件管理(主开关)
Read and toggle the master Incident Management setting on a Salesforce ITSM org. This is the org-level switch that turns Incident Management on or off. Enabling it also brings up its sub-features on the server side, so a full enablement is a single operation on the master.
Writes are idempotent (skipped when the current status already matches the requested state), the skill always reads before it writes, and an explicit confirm-to-write checkpoint is required before any mutation.
读取并切换Salesforce ITSM组织上的事件管理主设置。这是用于开启或关闭事件管理的组织级开关。启用该开关时,服务器端会同时启用其子功能,因此只需对主开关执行一次操作即可完成完整启用。
写入操作具备幂等性(当当前状态与请求状态一致时会跳过操作),该技能始终先读取再写入,且在进行任何变更前需要经过明确的确认写入检查点。
What this skill controls
此技能管控的范围
| Preference (Setup UI label) | In scope |
|---|---|
| Incident Management enablement (master) | Yes — read and toggle |
| Default Field Validations for Incidents, Auto Closure of Child Incidents, Email-to-Incident sub-toggles, Incident Priority Matrix, Problem/Change/Case Management, ITSM External Client App setup | No |
For the exact URLs, wire shapes, and worked examples for the master read and write, see .
references/mcp-invocation.md| 偏好设置(设置UI标签) | 是否在范围内 |
|---|---|
| 事件管理启用(主开关) | 是 — 可读取和切换 |
| 事件默认字段验证、子事件自动关闭、邮件转事件子开关、事件优先级矩阵、问题/变更/案例管理、ITSM外部客户端应用设置 | 否 |
有关主开关读取和写入的准确URL、请求格式及示例,请查看。
references/mcp-invocation.mdScope
范围界定
- In scope: read and toggle the master Incident Management preference.
- Out of scope: Default Field Validations for Incidents (); Incident Priority Matrix configuration; Auto Closure of Child Incidents and Email-to-Incident sub-toggles; Problem Management; Change Management; Case Management; ITSM External Client App setup; other ITSM prefs (
IncidentValidationsEnabled,IncidentTriageAgentEnabled,IncAssignWithAgentEnabled); broadcast-channel prefs; creation or configuration of Incident, Problem, or ChangeRequest records.AssignedGroupValidationEnabled
- 包含范围:读取和切换事件管理主偏好设置。
- 排除范围:事件默认字段验证();事件优先级矩阵配置;子事件自动关闭和邮件转事件子开关;问题管理;变更管理;案例管理;ITSM外部客户端应用设置;其他ITSM偏好设置(
IncidentValidationsEnabled、IncidentTriageAgentEnabled、IncAssignWithAgentEnabled);广播渠道偏好设置;事件、问题或变更请求记录的创建或配置。AssignedGroupValidationEnabled
Preconditions
前置条件
Before the skill can call anything on , the target org and MCP client must be configured. If any of these are unmet, the tools will surface as , , or on the first call; do not fabricate state — surface the raw error and stop.
headless-360401403404- Server activated on the org: Setup → MCP Servers → → Activate. Activation can take up to ~2 minutes.
headless-360 - External Client App wired: an ECA in the org with OAuth scopes and
mcp_api, JWT-based access tokens enabled, PKCE required. ECA propagation can take up to 30 minutes.refresh_token - API v67.0+: required for the read and write routes this skill uses.
- MCP client registration: the client (adk-eval / Claude Code) has an entry pointing to the correct env URL (see
additionalServers.headless-360).references/mcp-invocation.md
If any precondition fails, the tools return one of:
- → ECA not propagated, wrong scopes, or expired token.
401 Unauthorized - → user lacks perm, or org missing
403 Forbidden.IncidentMgmt.orgHasITSMOrgPermission - → server not activated on the org.
404 Not Found
Report the raw response verbatim rather than guessing which precondition failed.
在技能调用的任何功能之前,必须配置好目标组织和MCP客户端。如果任何条件未满足,工具首次调用时会返回、或;请勿编造状态——直接返回原始错误并终止操作。
headless-360401403404- 组织上的服务器已激活:设置 → MCP服务器 → → 激活。激活过程可能需要约2分钟。
headless-360 - 外部客户端应用已配置:组织中存在一个ECA,其OAuth范围包含和
mcp_api,已启用基于JWT的访问令牌,且要求PKCE。ECA配置生效可能需要长达30分钟。refresh_token - API v67.0+:此技能使用的读取和写入路由需要该版本以上的API。
- MCP客户端已注册:客户端(adk-eval / Claude Code)的条目指向正确的环境URL(请查看
additionalServers.headless-360)。references/mcp-invocation.md
如果任何前置条件未满足,工具会返回以下错误之一:
- → ECA未生效、范围错误或令牌过期。
401 Unauthorized - → 用户无权限,或组织缺少
403 Forbidden权限。IncidentMgmt.orgHasITSMOrgPermission - → 组织上的服务器未激活。
404 Not Found
请直接返回原始响应内容,不要猜测是哪个前置条件未满足。
Architecture — How configuration works
架构——配置工作流程
| Step | What happens | Tool |
|---|---|---|
| Preflight | Confirm the target routes are reachable | |
| Read schema | Fetch the request/response contract for the read and the write | |
| Read current state | Fetch the current status of the master preference | |
| Decide operation | View / enable / disable — inferred from the prompt | — |
| Confirm-to-write | Present | — |
| Apply change | Enable or disable the master via the write route | |
| Verify | Re-read and compare against the requested state | |
Idempotency: after the Phase-3 read, if the current state already matches the requested state, skip Phase 5 and treat the operation as a no-op. documents the exact status field and match rule.
references/mcp-invocation.mdRead-only tool selection: use for the read. Use for the write. The server refuses mutating operations through .
dispatch_readonlydispatchdispatch_readonlyWire shape: and both take . See for the exact request/response shapes; call at runtime to confirm.
dispatchdispatch_readonly{"url": "/services/data/...", "method": "GET|POST|PATCH|...", "body"?: {...}, "query_params"?: {...}}references/mcp-invocation.mddescribe| 步骤 | 操作内容 | 工具 |
|---|---|---|
| 预检 | 确认目标路由可访问 | |
| 读取 schema | 获取读取和写入操作的请求/响应契约 | |
| 读取当前状态 | 获取主偏好设置的当前状态 | |
| 确定操作 | 查看/启用/禁用——根据用户提示推断 | — |
| 确认写入 | 展示 | — |
| 应用变更 | 通过写入路由启用或禁用主开关 | |
| 验证 | 重新读取状态并与请求状态对比 | |
幂等性:在步骤3读取后,如果当前状态已与请求状态一致,则跳过步骤5,将操作视为无操作。文档中记录了准确的状态字段和匹配规则。
references/mcp-invocation.md只读工具选择:读取操作使用,写入操作使用。服务器拒绝通过执行变更操作。
dispatch_readonlydispatchdispatch_readonly请求格式:和均接受格式。请查看获取准确的请求/响应格式;运行时可调用进行确认。
dispatchdispatch_readonly{"url": "/services/data/...", "method": "GET|POST|PATCH|...", "body"?: {...}, "query_params"?: {...}}references/mcp-invocation.mddescribeClarifying Questions
澄清问题
Ask only what is not already in conversation context:
| Field | Description | Default |
|---|---|---|
| Requested direction | Explicit | REQUIRED — no defaults; ask if the user only said "toggle" without a direction |
| Confirm write | Explicit "yes" before any | REQUIRED — see Phase 4 |
If the user says "toggle" without specifying a direction, ask for the direction before Phase 4. Do not infer it from the current state.
仅询问对话上下文未涵盖的内容:
| 字段 | 描述 | 默认值 |
|---|---|---|
| 请求方向 | 明确的 | 必填——无默认值;如果用户仅说“toggle”未指定方向,请询问 |
| 确认写入 | 在执行任何 | 必填——请查看步骤4 |
如果用户仅说“toggle”未指定方向,请在步骤4前询问方向。请勿根据当前状态推断方向。
Workflow
工作流程
All steps run against the MCP server; the tool namespace is .
headless-360mcp__headless-360__<tool-name>所有步骤均针对 MCP服务器运行;工具命名空间为。
headless-360mcp__headless-360__<tool-name>Phase 0 — Reuse what the session already knows
步骤0——复用会话已知信息
Each preflight read below carries a skip-if-already-known clause. Before calling any
read endpoint, check whether an earlier turn in this session already produced the same
fact from a successful tool response tied to the current org (a prior invocation of this
skill, a parent orchestrator's live read, or an earlier this run).
An explicit user statement is NOT a substitute for a live read of the master
preference — user assertions can be stale or mistaken, and this skill relies on the read
being the source of truth for the confirmation payload and the Phase-6 idempotency verify.
When the only source is a user statement, re-read.
dispatch_readonly- of the master read/write routes — if the request/response schemas were already fetched against the current org this session, skip Phase 1 and Phase 2 and reuse the cached schema.
describeoutput is stable within a session.describe - Current master preference state — if the master value for the current org was already read this session via a successful
IncidentMgmtEnabledresponse (Phase 3 result from an earlier run of this skill, or a parent orchestrator that already asked us to check), skip Phase 3 and reuse the recorded "before" value. A user's verbal claim that the switch is on or off is not cache-eligible.dispatch_readonly
When in doubt, re-check. Skip only when the earlier fact is unambiguously in context
AND you have not switched orgs — the MCP session binds to one org via the
JWT, so an org change is only possible if the session was re-authed mid-conversation. If
the user hints at a different org, or you cannot tell which org the earlier fact came
from, re-run the read. Note: any write elsewhere in the session that could
have flipped the master (this skill's Phase 5, or an admin change via another tool) also
invalidates the cache — re-read. A wrong skip on a live org write is worse than a
duplicated read.
headless-360dispatch以下每个预检读取操作均带有已知则跳过规则。调用任何读取端点前,请检查本次会话中是否已有针对当前组织的成功工具响应生成了相同信息(此技能的先前调用、父编排器的实时读取或本次运行中较早的操作)。用户的明确陈述不能替代对主偏好设置的实时读取——用户的断言可能过时或错误,此技能依赖读取结果作为确认负载和步骤6幂等性验证的事实来源。当唯一信息来源是用户陈述时,请重新读取。
dispatch_readonly- 主开关读取/写入路由的——如果本次会话中已针对当前组织获取过请求/响应schema,则跳过步骤1和步骤2,复用缓存的schema。
describe输出在会话内是稳定的。describe - 当前主偏好设置状态——如果本次会话中已通过成功的响应读取过当前组织的主开关
dispatch_readonly值(此技能先前运行的步骤3结果,或已要求我们检查的父编排器),则跳过步骤3,复用记录的“变更前”值。用户口头声称开关开启或关闭不具备缓存资格。IncidentMgmtEnabled
如有疑问,请重新检查。仅当先前信息明确在上下文中且未切换组织时才跳过—— MCP会话通过JWT绑定到一个组织,因此只有在会话中途重新认证时才可能切换组织。如果用户暗示切换了组织,或无法确定先前信息来自哪个组织,请重新运行读取操作。注意:会话中任何可能翻转主开关的写入操作(此技能的步骤5,或通过其他工具进行的管理员变更)都会使缓存失效——请重新读取。错误跳过实时组织写入比重复读取更严重。
headless-360dispatchPhase 1 — Preflight (discover
/ describe
)
discoverdescribe步骤1——预检(discover
/describe
)
discoverdescribe- (Skip if the operation schemas were already verified this session — see Phase 0.)
Call on the read/write routes (or
describewith a query likediscoverif the operation IDs are unknown). Confirm the operations exist and their argument schemas match"ITSM incident management setup discovery".references/mcp-invocation.md - If any tool call returns /
401/403, halt and surface the raw error — the org or client is not configured correctly (see Preconditions).404
- (如果本次会话中已验证过操作schema则跳过——请查看步骤0。)
对读取/写入路由调用(如果操作ID未知,可使用类似
describe的查询调用"ITSM incident management setup discovery")。确认操作存在且其参数schema与discover匹配。references/mcp-invocation.md - 如果任何工具调用返回/
401/403,则终止操作并返回原始错误——组织或客户端配置不正确(请查看前置条件)。404
Phase 2 — Load Schemas (describe
)
describe步骤2——加载Schema(describe
)
describe- (Skip if the schema for each operation is already cached this session — see Phase 0.)
For each operation the invocation will use, call and cache the returned request/response schema. Do not hard-code the argument shape from the reference doc — read it from
describe; the docs are a working expectation, the runtime contract is whateverdescribereturns.describe
- (如果本次会话中已缓存每个操作的schema则跳过——请查看步骤0。)
对调用将使用的每个操作,调用并缓存返回的请求/响应schema。请勿从参考文档硬编码参数格式——请从
describe读取;文档是预期格式,运行时契约以describe返回内容为准。describe
Phase 3 — Read Current State (dispatch_readonly
)
dispatch_readonly步骤3——读取当前状态(dispatch_readonly
)
dispatch_readonly-
(Skip if the current master state for this org was already read this session AND no write has flipped it since — see Phase 0.) Read the current state of the master preference using the read route documented in. Record the value as the "before" state for the Phase-4 confirmation and the Phase-6 verify.
references/mcp-invocation.mdFor a view-only request, stop after Phase 3 and go to Phase 7 to report.
-
(如果本次会话中已读取当前组织的主开关状态且之后未进行写入操作则跳过——请查看步骤0。) 使用中记录的读取路由读取主偏好设置的当前状态。记录该值作为步骤4确认和步骤6验证的“变更前”状态。
references/mcp-invocation.md如果是仅查看请求,则在步骤3后停止,进入步骤7报告结果。
Phase 4 — Decide Operation + Confirm-to-Write (REQUIRED for any write)
步骤4——确定操作+确认写入(任何写入操作均必填)
-
Decide the operation from the user's prompt (view / enable / disable). If the user said "toggle" without a direction, ask for the direction first.
-
Present the target payload viaas
AskUserQuestion. Require an explicit "yes" before proceeding. Proceed to Phase 5 ONLY on explicit "yes". On "no", stop and report the current state without writing.(Master Incident Management: <current> → <requested>)
-
根据用户提示确定操作(查看/启用/禁用)。如果用户仅说“toggle”未指定方向,请先询问方向。
-
通过展示目标负载:
AskUserQuestion。要求用户明确回复“yes”后再继续。仅在明确回复“yes”时才进入步骤5。如果回复“no”,则终止操作并报告当前状态,不执行写入。(事件管理主开关: <当前状态> → <请求状态>)
Phase 5 — Apply the Change (skip for view-only)
步骤5——应用变更(仅查看请求跳过)
-
Apply the idempotency rule from: if the current state already matches the requested state, skip Phase 5 and mark the operation as an idempotent no-op.
references/mcp-invocation.md -
Otherwise, dispatch the write viausing the enable or disable route documented in
dispatch. Enabling the master brings up the Incident Management sub-features on the server side — no separate calls are needed to turn them on. Disabling the master leaves those sub-features at their last-set values.references/mcp-invocation.md -
On error (,
4xx), record the raw response verbatim and stop.5xx
-
应用中的幂等规则:如果当前状态已与请求状态一致,则跳过步骤5,将操作标记为幂等无操作。
references/mcp-invocation.md -
否则,使用中记录的启用或禁用路由,通过
references/mcp-invocation.md执行写入操作。启用主开关时,服务器端会同时启用事件管理子功能——无需单独调用开启这些子功能。禁用主开关时,这些子功能会保留其最后设置的值。dispatch -
如果出现错误(、
4xx),记录原始响应内容并终止操作。5xx
Phase 6 — Verify (dispatch_readonly
)
dispatch_readonly步骤6——验证(dispatch_readonly
)
dispatch_readonly- Re-issue the Phase-3 read and compare against the requested state per the rule in . If they differ, treat it as a failed write and report the raw server response verbatim.
references/mcp-invocation.md
- 重新执行步骤3的读取操作,并根据中的规则与请求状态对比。如果不一致,则视为写入失败,直接返回原始服务器响应内容。
references/mcp-invocation.md
Phase 7 — Report
步骤7——报告
- Present a before/after summary:
- View: .
Master Incident Management: <current-status> - Toggle: with verdict
Master Incident Management: <before> → <after>/SUCCEEDED/ALREADY-<state>.FAILED - On Phase-6 mismatch: .
write FAILED — server state differs from request. Server response: <verbatim>
- View:
- 展示变更前后的摘要:
- 查看:。
事件管理主开关: <当前状态> - 切换:,并附带结果
事件管理主开关: <变更前> → <变更后>/SUCCEEDED/ALREADY-<状态>。FAILED - 如果步骤6出现不一致:。
写入失败——服务器状态与请求不符。服务器响应: <原始内容>
- 查看:
Rules / Constraints
规则/约束
| Constraint | Rationale |
|---|---|
All operations run through the four hosted | The hosted MCP is the required transport |
Read the argument schema for each operation via | The runtime contract is what |
Use | The server refuses mutating operations through |
| Always set/expect API v67.0 minimum | The read and write routes require v67+ |
| Read live state before writing | The Phase-3 fetch is the source of truth for the confirmation prompt, the idempotency check, and the Phase-6 verify |
REQUIRED confirm-to-write checkpoint before any | Toggling this pref mutates org state; user must approve the exact plan |
Idempotent — skip | Avoids no-op writes; see |
| Report exact error text from the MCP tool response | The server surfaces the underlying error message verbatim |
On | The failing precondition is diagnosable only from the raw response |
Do not put an orgId or Core URL in the | The server derives the target org from the JWT issuer on the request |
| 约束 | 理由 |
|---|---|
所有操作均通过四个托管的 | 托管MCP是必需的传输方式 |
在调用 | 运行时契约以 |
读取操作使用 | 服务器拒绝通过 |
| 始终设置/要求最低API v67.0 | 读取和写入路由需要v67+版本 |
| 写入前读取实时状态 | 步骤3的读取结果是确认提示、幂等性检查和步骤6验证的事实来源 |
必填的确认写入检查点——在执行任何 | 切换此偏好设置会修改组织状态;用户必须批准确切的操作计划 |
幂等性——当当前状态已与请求状态一致时跳过 | 避免无意义的写入操作;请查看 |
| 直接返回MCP工具响应中的错误文本 | 服务器会直接返回底层错误信息 |
如果步骤1中出现 | 只有原始响应才能诊断未满足的前置条件 |
请勿在 | 服务器会从请求中的JWT颁发者推导目标组织 |
Verification Checklist
验证清单
Before reporting completion of any mutation, confirm each of the following. If any item is unchecked, do not report success — surface what is missing.
- Phase 1 preflight (/
describe) returned the operation without adiscover/401/403; if any was returned, the raw error was surfaced and the run halted.404 - Phase 3 read against the master preference returned a status and that value was recorded as the "before" state.
- Phase 4 confirm-to-write presented via
(Master Incident Management: <current> → <requested>)and the user replied with an explicit "yes" — no write dispatched on any other response (silence, "maybe", "looks good", implicit approval).AskUserQuestion - Idempotency: if the current state already matched the requested state, Phase 5 was skipped and the run was reported as an idempotent no-op — no write was issued.
dispatch - Phase 5 write used (not
dispatch) with the wire shape fromdispatch_readonly; on anyreferences/mcp-invocation.md/4xx, the raw response was surfaced and the run halted.5xx - Phase 6 verify re-issued the Phase-3 read and the post-write state matched the user-approved target; any diff was reported as .
write FAILED — server state differs from request - The final report gave a before/after for the master preference with verdict /
SUCCEEDED/ALREADY-<state>.FAILED
在报告任何变更完成前,请确认以下各项。如果有任何一项未勾选,则不要报告成功——请说明缺失的内容。
- 步骤1预检(/
describe)返回操作且未出现discover/401/403;如果出现上述错误,已返回原始错误并终止运行。404 - 步骤3读取主偏好设置返回状态,且该值已记录为“变更前”状态。
- 步骤4确认写入通过展示了
AskUserQuestion,且用户明确回复“yes”——未在其他回复(沉默、“maybe”、“看起来不错”、隐含批准)时执行写入。(事件管理主开关: <当前状态> → <请求状态>) - 幂等性:如果当前状态已与请求状态一致,则跳过步骤5,将运行报告为幂等无操作——未执行写入。
dispatch - 步骤5写入使用(而非
dispatch),且请求格式符合dispatch_readonly;如果出现任何references/mcp-invocation.md/4xx错误,已返回原始响应并终止运行。5xx - 步骤6验证重新执行了步骤3的读取操作,且写入后的状态与用户批准的目标一致;任何差异均报告为。
写入失败——服务器状态与请求不符 - 最终报告提供了主偏好设置的变更前后状态,并附带结果/
SUCCEEDED/ALREADY-<状态>。FAILED
Reference File Index
参考文件索引
| File | When to read |
|---|---|
| Exact tool call shapes for the master read and write, MCP-client registration recipe for |
| 文件 | 阅读时机 |
|---|---|
| 主开关读取和写入的准确工具调用格式、 |