Roles: save
manage_roles_saveCreate a data role or change one: which systems, tables and columns it may reach. Naming an existing id edits it (systems you do not mention stay as they are; replace: true starts again). With many tables use patterns. Search names first with systems.search_schema. Changes Junction's own settings as the person asking, only as far as their role allows in the Junction portal. Tell the user what you are about to do and call this only after they agree. It answers with a preview first; show it, and only call again with confirm set to true after the user agrees. Company administrators only. Never pass a password, key or token; anything that needs one is done in the portal.
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": {
"id": "<id>"
},
"name": "manage_roles_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | lowercase letters, digits, - or _ | |
| confirm | No | set true only after the user has seen the preview this action answers with first and agreed | |
| replace | No | when editing, ignore the current access and start from what you give | |
| systems | No | an object keyed by system id (from systems.list). Per system: access (all, some or none), tables (exact names), table_patterns (names with * wildcards, resolved against the live tables now), exclude_tables (patterns to leave out of all tables), columns ({table: [exact columns]}), hide_columns ({table or *: [column patterns]} keeps every other column). Anything you do not allow stays hidden, including tables and columns added later. | |
| clone_from | No | start a NEW role from this role's access | |
| hide_amounts | No | hide financial amounts |