Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

unassign_users_from_application_by_attribute

Removes active users from an Okta application by matching a profile attribute value, with a dry-run preview by default for safe bulk unassignment.

Instructions

Find ACTIVE users by profile attribute and remove them from an application.

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

Args: app_id: The Okta application ID attribute: Profile attribute (e.g. 'division') value: Attribute value to match 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": {
      "app_id": "<app_id>",
      "attribute": "<attribute>",
      "value": "<value>"
    },
    "name": "unassign_users_from_application_by_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
app_idYes
dry_runNo
attributeYes
override_capNo
confirm_removalNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does substantial work: an explicit BULK OPERATION warning, a safe default (dry_run=True), and two hard gates (confirm_removal, override_cap) that an agent must satisfy before any destructive action. It stops short of stating irreversibility, required Okta permissions, behavior on partial failure, or whether the safety cap value is discoverable.

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

Conciseness5/5

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

The destructive bulk warning is front-loaded before any argument detail, followed by a one-line purpose and a tight six-item Args block. Every sentence contributes either a safety constraint or a parameter meaning; nothing is redundant.

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 six-parameter destructive bulk mutation with zero annotation coverage, the description covers the safety gating and all parameter meanings, and an output schema exists so return values need not be described. Remaining gaps (permission requirements, cap value, non-matching users) are secondary but non-trivial for a removal tool.

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 0%, so the description must define all six parameters, and it does: app_id, attribute (with a concrete 'division' example), value, dry_run, confirm_removal, and override_cap. Crucially it explains the conditional relationship between dry_run and confirm_removal that the schema cannot express. Only the numeric threshold of the safety cap and the accepted attribute namespace remain unspecified.

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?

States a specific verb pair and resource: 'Find ACTIVE users by profile attribute and remove them from an application.' The ACTIVE filter and attribute-based matching scope it clearly against a single-user unassign or a plain list. It never names a sibling as the alternative, so differentiation is inferred from the phrasing 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 procedural conditions (dry_run defaults to True, confirm_removal must be True, override_cap required past the safety cap) which strongly shape invocation, but it never says when to pick this over unassign_user_from_application or remove_users_from_group_by_attribute. Usage is implied by the bulk attribute-match framing rather than explicitly contrasted.

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