Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

batch_assign_users_to_application

Assign multiple active Okta users to an application in one batch, skipping inactive users. Preview changes by default with dry-run safety before confirming live assignments.

Instructions

Assign multiple users to an application in batch.

Only ACTIVE users will be assigned. Non-active users will be skipped.

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

Args: app_id: The Okta application ID user_ids: List of Okta user IDs to assign to the application dry_run: Preview only if True (default) — makes no live calls to Okta confirm_assignment: Must be True when dry_run=False override_cap: Must be True to proceed if len(user_ids) exceeds the safety cap

Returns: Dict with batch assignment results including success/failure counts

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>",
      "user_ids": "<user_ids>"
    },
    "name": "batch_assign_users_to_application"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes
dry_runNo
user_idsYes
override_capNo
confirm_assignmentNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses that only ACTIVE users are assigned and others silently skipped, that dry_run defaults to True and makes no live Okta calls, that confirm_assignment must be True for live execution, and that a size cap can be overridden. It omits permission requirements and whether assignments are reversible or how partial failures are reported beyond counts.

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?

Critical facts are front-loaded: purpose first, then the ACTIVE-only restriction, then the bulk/dry-run warning, with parameters and return value in compact reference form. Every sentence adds information an agent needs before calling this.

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 five-parameter bulk mutation with no annotations, the definition covers safety defaults, eligibility filtering, the cap safeguard, confirmation gating, and result shape. An output schema exists, so the brief Returns line is sufficient; nothing needed to invoke it correctly is 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?

Schema description coverage is 0%, so the description must carry parameter meaning — and it documents all five parameters, including the non-obvious gating relationship between dry_run=False, confirm_assignment, and override_cap for oversized batches. Only user_ids is a near-restatement of its schema title.

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?

"Assign multiple users to an application in batch" gives a specific verb (assign), resource (application) and scope (multiple/batch users), which implicitly separates it from the singular assign_user_to_application sibling. It never names that sibling explicitly, so the differentiation is inferred from the word 'batch' 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 Guidelines4/5

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

The description gives clear operating context: pending deactivations are handled by skipping non-active users, and the tool defaults to a preview mode unless explicitly confirmed. It does not state when to choose this over assign_user_to_application or add_users_to_group, so routing between siblings is left to the agent.

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