Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

add_users_to_group_by_attribute

Find active users by a profile attribute and add them to an Okta group, with dry-run preview and confirmation safeguards for bulk changes.

Instructions

Find ACTIVE users by profile attribute and add them to 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 add users to dry_run: Preview only if True (default) confirm_add: 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": "add_users_to_group_by_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
dry_runNo
group_idYes
attributeYes
confirm_addNo
override_capNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 well: it flags a BULK OPERATION, discloses that dry_run defaults to True, and states the two gating flags (confirm_add required when dry_run=False, override_cap required when matches exceed a safety cap). It stops short of stating what happens on cap breach (error vs partial add) or whether the operation is reversible.

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?

The safety warning is front-loaded before the argument list, so the most decision-relevant fact is seen first. The docstring-style Args block is slightly verbose in formatting but each line carries distinct information with no filler.

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 bulk mutation with no annotations and no output schema, the definition covers the safety model, the preview/confirm protocol, and every parameter's role. The main residual gap is return behavior — what dry_run previews report and what happens when the cap is exceeded — which matters because no output schema exists to fill it in.

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 compensate, and it documents all six parameters including example attribute values ('division'). It adds the crucial conditional relationship that confirm_add must be True when dry_run=False, which the schema's flat booleans do not express. The unspecified size of the 'safety cap' keeps it below 5.

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?

Starts with a specific verb-and-resource statement: 'Find ACTIVE users by profile attribute and add them to a group.' The 'by_attribute' matching mechanism and the ACTIVE-only filter are both stated, which lets an agent distinguish this from the sibling add_users_to_group (explicit list) without opening either schema.

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?

Usage is implied by the name and first sentence, and the dry_run default signals a preview-then-commit workflow. However, it never says when to prefer this over add_users_to_group or add_user_to_group, nor states prerequisites such as group membership limits or that the group must already exist.

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