Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

delete_policy_rule

Deletes a policy rule in Okta using its policy and rule IDs. Requires confirm_deletion=True because the action is destructive and cannot be undone.

Instructions

Delete a policy rule.

⚠️ DESTRUCTIVE — cannot be undone. Set confirm_deletion=True to proceed.

Parameters: policy_id (str, required): The ID of the policy. rule_id (str, required): The ID of the rule to delete. 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_policy_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idNo
policy_idNo
confirm_deletionNo

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?

No annotations are provided, so the description carries the full burden, and it does disclose the most important traits: destructive, irreversible, and gated behind an explicit confirmation flag. It still omits permissions/auth requirements and any side effects on the parent policy or other rules, so it is strong but not complete.

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 warning is front-loaded and visually distinct, and the parameter/return sections are scannable with zero filler. The parameter list partially restates schema property names but earns its place given the zero schema coverage.

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 mutation with no annotations, the definition covers the danger profile, the confirmation gate, and every parameter, while the output schema handles return values. The remaining gap is authorization/side-effect context, which an agent would need before calling a deletion tool.

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%, and the description compensates by documenting all three parameters with types, roles, and the crucial semantic that confirm_deletion must be True to proceed. Minor inconsistency: it calls parameters 'required' while the schema declares no required fields and supplies defaults, which slightly muddies the contract.

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 opening sentence gives a specific verb and resource ('Delete a policy rule'), which is unambiguous and distinguishable from siblings like delete_group_rule or deactivate_policy_rule by the resource name alone. It stops short of explicitly contrasting itself with non-destructive alternatives such as deactivation.

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?

It states the precondition for proceeding (confirm_deletion=True) and warns that the action is irreversible, which implies when the tool should be used. However, it never mentions when NOT to use it versus deactivate_policy_rule or update_policy_rule, nor any prerequisite lookups, so guidance is implied rather than explicit.

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