set_role
Set the persisted MCP role, enforcing downgrade-only policy; preview changes with dry run.
Instructions
Change the persisted MCP role — DOWNGRADE ONLY.
Valid roles: CONTRIBUTOR, GENERATOR, MANAGER (cumulative;
see ADR 5). This tool will set the persisted role to
target_role IF AND ONLY IF its level is less than or
equal to the currently-loaded role.
Set dry_run=true to validate inputs (including the
elevation refusal check) and preview the config write without
touching config.toml. Refusal-class errors
(role_elevation_forbidden) trigger regardless of dry_run — a
forbidden elevation is forbidden whether or not the LLM was
just "asking". Returns code="dry_run" on legitimate previews.
Self-elevation via MCP is forbidden by design (ADR 17). Attempts to elevate return a structured error with error_code='role_elevation_forbidden'. To elevate, run './dev.sh init --role ' from a shell or hand-edit ~/.config/taskchampion-mcp/config.toml and restart the MCP server.
Takes effect on next MCP server restart.
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": {
"target_role": "<target_role>"
},
"name": "set_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_role | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |