Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

delete_group_rule

Deletes an Okta group rule after it is inactive, optionally removing assigned users; requires confirmation and uses deactivation first when needed.

Instructions

Delete a group rule.

Note: Okta requires the rule to be INACTIVE before it can be deleted — call deactivate_group_rule first if the rule is currently active.

Parameters: rule_id (str, required): The ID of the group rule to delete. remove_users (bool, optional): If True, also removes users the rule had assigned to the target group(s). Defaults to False. confirm_deletion (bool, required): Must be True to proceed.

Returns: Dict with success status.

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": "delete_group_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idNo
remove_usersNo
confirm_deletionNo

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 at all, the description carries the full burden and does well: it discloses the external Okta state requirement, that removal is destructive, that remove_users triggers an additional irreversible side effect on group memberships, and that confirm_deletion acts as a safety gate. It stops short of stating whether deletion is reversible or what the response contains beyond 'success status'. Minor inconsistency worth noting: it labels rule_id and confirm_deletion as required while the schema declares no required fields and supplies defaults.

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 the action and its critical precondition, then cleanly sectioned into Parameters and Returns. Every line carries information; the Returns line is largely redundant since an output schema exists, a small bit of waste.

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 destructive, unannotated 3-parameter mutation tool this is nearly complete: prerequisite ordering, side effects, and the confirmation gate are all covered, and an output schema exists so return detail is not needed. What is missing is permission/scope requirements and reversibility of the deletion.

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 description coverage is 0%, so the description must compensate, and it does: all three parameters are documented with type, requiredness, default, and behavioral consequence (remove_users also strips users assigned via the rule; confirm_deletion must be True to proceed). This is exactly the meaning the schema lacks.

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?

The description opens with a specific verb and resource ("Delete a group rule"), which cleanly separates it from delete_policy_rule and delete_group. Sibling differentiation is implicit rather than stated (it never says 'this is for group rules, not policy rules'), but combined with the named prerequisite tool deactivate_group_rule the agent can place it accurately.

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?

It gives an explicit precondition: the Okta rule must be INACTIVE before deletion, and names the alternative action (call deactivate_group_rule first) for the active case. There is no 'when not to use' guidance, e.g. whether deleting vs merely deactivating is preferable for auditing, which keeps it short of a 5.

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