Skip to main content
Glama

update_acl

Idempotent

Modify an existing ServiceNow ACL rule by switching Allow If/Deny Unless decisions and replacing required roles; enable SCRIPTING_ENABLED before applying changes.

Instructions

Update an existing ACL rule (requires SCRIPTING_ENABLED=true). Can switch between Allow If and Deny Unless, and replace the required roles (each role must exist)

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": {
      "sys_id": "<sys_id>"
    },
    "name": "update_acl"
  }
}

Input Schema

NameRequiredDescriptionDefault
rolesNoComma-separated roles that replace the ACL's current required roles. Each role must exist
fieldsNoFields to update (active, script, condition, decision_type, security_attribute, etc.)
sys_idYesACL sys_id
decision_typeNoSet the decision type: allow (Allow If) or deny (Deny Unless)
allow_missing_rolesNoApply even if a role does not exist (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv5.1.0
    • addedInput schema / properties / allow_missing_roles
      Added value: +{
      +  "description": "Apply even if a role does not exist (default false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / decision_type
      Added value: +{
      +  "description": "Set the decision type: allow (Allow If) or deny (Deny Unless)",
      +  "enum": [
      +    "allow",
      +    "deny"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / fields / description
      Previous value: -"Fields to update (active, script, roles, condition, etc.)"New value: +"Fields to update (active, script, condition, decision_type, security_attribute, etc.)"
    • addedInput schema / properties / roles
      Added value: +{
      +  "description": "Comma-separated roles that replace the ACL's current required roles. Each role must exist",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "sys_id",
      -  "fields"
      -]New value: +[
      +  "sys_id"
      +]
  2. First observedv4.1.6

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true and destructive=false; the description adds genuinely new context beyond them by disclosing the SCRIPTING_ENABLED configuration gate and the fact that the roles parameter replaces existing roles rather than appending. It does not cover error behavior or what the response contains, but for an idempotent update that is a minor gap.

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?

Two compact sentences with the prerequisite parenthesized right after the verb phrase, so the gating condition is front-loaded. Nothing is wasted, though the parenthetical interrupts the sentence flow slightly.

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

Completeness4/5

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

For a mutation tool with five parameters (including a free-form nested 'fields' object), annotations covering the safety profile, and no output schema, the description supplies the key operational facts: capability, prerequisite, and role-replacement semantics. The loose 'etc.' enumeration on the fields object is left to the schema, which is acceptable given full coverage there.

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?

Schema coverage is 100%, so the baseline would be 3, but the description adds semantic framing not in the schema: it explains the allow/deny enum in ACL terms ('Allow If' vs 'Deny Unless') and stresses the replace-not-merge semantics of roles along with the existence constraint. That is real meaning beyond the field descriptions.

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

Purpose4/5

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

The description states a specific verb+resource ('Update an existing ACL rule') and names the two operations it can perform (switching decision type and replacing required roles), which distinguishes it from create_acl and the read-only get_acl siblings. It stops short of explicitly naming those siblings as alternatives.

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

Usage Guidelines3/5

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

It supplies a concrete prerequisite ('requires SCRIPTING_ENABLED=true') that tells the agent when the call will fail, but there is no explicit guidance about when to prefer this over create_acl or natural_language_update, so usage is only implied.

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

Deploy Server

Other Tools