Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

create_group_rule

Create a dynamic Okta group rule with expression-based conditions and target groups so users are assigned automatically; activate it to start evaluating membership.

Instructions

Create a new group rule for dynamic, expression-based group membership.

Parameters: rule_data (dict, required): The group rule configuration containing: - name (str, required): Rule name - type (str, optional): Rule type, defaults to "group_rule" - conditions (dict, required): Must contain an expression, e.g. {"expression": {"type": "urn:okta:expression:1.0", "value": "user.department=="Sales""}} - actions (dict, required): Must contain the target group(s), e.g. {"assignUserToGroups": {"groupIds": ["<group_id>"]}}

Returns: Dict containing the created group rule details. New rules are created INACTIVE by default; call activate_group_rule to start evaluating and assigning members.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_group_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_dataNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and delivers the single most important behavioral fact: created rules are INACTIVE by default and require activate_group_rule. It omits permission requirements, duplicate-name behavior, and expression validation failures, so it is strong but not complete for a mutation tool.

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 one-line purpose followed by clearly labeled Parameters and Returns sections, with concrete JSON examples. The prose duplicates sub-field detail that would ideally live in the schema, but since coverage there is 0% this is justified rather than wasteful.

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?

The returns note is useful even though an output schema exists, and the INACTIVE-default warning is the key thing an agent needs to avoid a silent no-op. Missing are authorization/permission context and any statement about how target groupIds are validated.

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% and the schema only exposes an opaque anyOf object, so the description does the real work by enumerating rule_data sub-fields, marking which are required, and giving a concrete conditions/actions example. However, it declares rule_data 'required' while the schema shows it optional with a null default, a mismatch that could mislead an agent.

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 and resource ('Create a new group rule') and qualifies the resource as 'dynamic, expression-based group membership', which separates it from create_group and create_policy_rule by implication. It never explicitly contrasts with those siblings, so differentiation comes from the resource wording rather than deliberate guidance.

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 through the workflow note that new rules start INACTIVE and that activate_group_rule must be called to enable evaluation. There is no guidance on when to create a rule versus update_group_rule, or on prerequisites such as target groups existing before use.

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