endpoint_assign_profile
Assign a configuration profile to an endpoint with reversible change tracking that captures the prior profile for undo and audit. Use dry run to preview which profile would be replaced.
Instructions
[WRITE][risk=high] Assign a config profile to an endpoint (reversible).
Captures the prior profile before switching, so the harness records an undo (reassign the prior profile) and a faithful audit trail. Pass dry_run=True to preview: it resolves the same path and reads the same before-state as the real call, so it reports the profile that would actually be replaced and refuses on the same grounds the write would.
Args: endpoint_id: Endpoint id as returned by endpoint_list. profile_id: Config profile to assign. dry_run: If True, preview without assigning. target: Endpoint-management target name from config; omit for the default.
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": {
"endpoint_id": "<endpoint_id>",
"profile_id": "<profile_id>"
},
"name": "endpoint_assign_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| profile_id | Yes | ||
| endpoint_id | Yes |