Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

add_users_to_group

Add multiple Okta users to a group in one bulk operation, with a default dry-run preview to verify changes. Only ACTIVE users are added; inactive users are skipped with reasons.

Instructions

Add multiple users to a group at once (requires okta.groups.manage scope). Preferred over calling add_user_to_group in a loop. Only ACTIVE users are added; others are skipped with a reason.

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

Args: group_id: Okta group ID to add users to user_ids: List of Okta user IDs dry_run: Preview only if True (default) — makes no live calls to Okta confirm_add: Must be True when dry_run=False override_cap: Must be True to proceed if len(user_ids) 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": {
      "group_id": "<group_id>",
      "user_ids": "<user_ids>"
    },
    "name": "add_users_to_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
group_idYes
user_idsYes
confirm_addNo
override_capNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations present the description carries the full burden, and it does: required OAuth scope, a BULK OPERATION warning, a safe default of dry_run=True, the fact that dry_run makes no live calls to Okta, the confirm_add/override_cap preconditions, and the skip behavior for non-ACTIVE users with a stated reason.

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?

Front-loaded with purpose, then the routing hint, then the warning, then args — a good hierarchy. Minor redundancy: the dry_run default is stated both in the warning line and again in the Args block, costing a little space.

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 five-parameter bulk mutation with no annotations and no output schema, this covers preconditions, safety defaults, and partial-failure semantics. It stops short of describing the shape of the returned result (e.g. what a dry-run preview or skip report looks like), which is the main remaining gap.

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

Parameters5/5

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

Schema coverage is 0%, but the description documents all five parameters with semantics the schema lacks — what group_id and user_ids identify, that dry_run means preview-with-no-live-calls, the exact condition under which confirm_add and override_cap must be true, and the safety cap concept.

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 specific verb and resource ('Add multiple users to a group at once') plus scope ('only ACTIVE users are added'). It explicitly distinguishes itself from the sibling add_user_to_group by declaring the bulk form is preferred over looping the single-user call.

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

Usage Guidelines5/5

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

Gives an explicit alternative and the condition that selects it ('Preferred over calling add_user_to_group in a loop'), plus the gating rules that decide whether an invocation actually mutates anything (dry_run default True, confirm_add required for live mode, override_cap required past the safety cap).

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