set_field_permission
Hide ONE field of ONE resource from ONE role — the building block of the field-level permission model. Example: hide 'notes' on contacts from the role 'sachbearbeitung'. There is deliberately no 'visible' state: no rule means visible, so a rule always means the same thing and nobody has to work out whether true or false wins. Pass remove=true to lift a rule again. resource '*' applies to every resource. IMPORTANT: a hidden field is also not filterable, sortable or searchable — otherwise its value could be read off the result count. Read the 'scope' in list_field_permissions before relying on this: the rules do not yet reach every surface.
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": {
"role": "<role>",
"resource": "<resource>",
"field": "<field>"
},
"name": "set_field_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The tenant's own role name, e.g. 'sachbearbeitung'. | |
| field | Yes | Exact column name, e.g. 'notes'. No wildcard — a wildcard here would blind a role, and that is never what someone means by hiding a field. | |
| reason | No | Why. Shows up in the list and in the audit trail. | |
| remove | No | true lifts the rule instead of setting it. | |
| resource | Yes | Resource whose field is hidden; '*' applies to every resource |