Skip to main content
Glama

set_field_permission

DestructiveIdempotent

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

NameRequiredDescriptionDefault
roleYesThe tenant's own role name, e.g. 'sachbearbeitung'.
fieldYesExact 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.
reasonNoWhy. Shows up in the list and in the audit trail.
removeNotrue lifts the rule instead of setting it.
resourceYesResource whose field is hidden; '*' applies to every resource

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / resource / description
      Added value: +"Resource whose field is hidden; '*' applies to every resource"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations, it discloses the non-obvious consequences: hidden fields are also not filterable, sortable or searchable to prevent inference from result counts, and the rules do not yet reach every surface. It also clarifies the deliberate absence of a 'visible' state and that remove=true lifts a rule.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core operation is front-loaded and every sentence carries information, including the design rationale and the caveat. It is on the long side and the wildcard rationale is somewhat discursive, but nothing is wasted filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the description covers scope, lifting rules, wildcard behavior, and the read-surface caveat that an agent must know before trusting the result. Nothing essential for correct invocation appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents all five parameters, but the description adds real meaning: the semantics of resource='*' as applying to every resource, and the rationale for why 'field' accepts no wildcard. 'remove' is restated rather than expanded, so it is slightly below fully additive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb and resource with scope emphasized ('Hide ONE field of ONE resource from ONE role') and frames it as the building block of the field-level permission model. The concrete example (hide 'notes' on contacts from 'sachbearbeitung') removes any ambiguity about the unit of operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explains the create/lift duality (remove=true) and explicitly redirects the agent to read 'scope' in list_field_permissions before relying on the rules. It does not spell out exclusion cases against other permission tools (assign_permission_set, set_permission_set), so a small guidance gap remains.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.