Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

remove_users_from_group_by_attribute

Remove active Okta users from a group by matching a profile attribute and value; preview bulk changes with dry-run and require confirmation before removal.

Instructions

Find ACTIVE users by profile attribute and remove them from a group.

⚠️ BULK OPERATION. Defaults to dry_run=True for safety.

Args: attribute: Profile attribute (e.g. 'division') value: Attribute value to match group_id: Okta group ID to remove users from dry_run: Preview only if True (default) confirm_removal: Must be True when dry_run=False override_cap: Must be True to proceed if the match count exceeds the safety cap

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": {
      "attribute": "<attribute>",
      "value": "<value>",
      "group_id": "<group_id>"
    },
    "name": "remove_users_from_group_by_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
dry_runNo
group_idYes
attributeYes
override_capNo
confirm_removalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningfully disclose that this is a destructive BULK operation with a multi-step safety gate (dry run, confirmation, cap override) and that only ACTIVE users are matched. It leaves out reversibility, required admin permissions, rate-limit behavior on large batches, and what happens to users who are not currently group members.

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?

Structure is appropriately front-loaded: the action, then the bulk warning, then the parameter reference. Every line carries information an agent needs, with no filler; the only wasted tokens are the emoji and the boilerplate 'Args:' header.

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

Completeness3/5

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

For a six-parameter destructive bulk mutation with no annotations and no output schema, the description covers the safety-critical invocation path well but omits what the dry_run preview actually returns — a significant gap since preview is the default and the agent must interpret its result. It also never states whether matches are limited to users currently in the group.

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 description coverage is 0% and the schema supplies only bare titles, so the Args block is doing real work — it documents all six parameters including their interaction (confirm_removal must be True when dry_run=False, override_cap gates the safety threshold). Some entries are thin, e.g. 'value: Attribute value to match' adds little beyond the title, and the safety cap value itself is never quantified.

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 first sentence states a concrete verb and resource ('Find ACTIVE users by profile attribute and remove them from a group'), which is enough to distinguish it from the add-by-attribute and single-user removal siblings. It stops short of naming the closest alternative (remove_user_from_group) explicitly, so the differentiation is inferred rather than stated.

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?

The description gives strong operational guidance for invoking the tool safely: dry_run defaults to True, confirm_removal is required when dry_run=False, and override_cap is required above the safety cap. However, it offers no guidance on when to choose this bulk tool versus remove_user_from_group or unassign_users_from_application_by_attribute, which is the main selection ambiguity for an agent.

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