Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

create_policy_rule

Create a new rule for an existing Okta policy by specifying its ID and rule configuration, including name, priority, status, conditions, and actions.

Instructions

Create a new rule for a policy.

Parameters: policy_id (str, required): The ID of the policy. rule_data (dict, required): The rule configuration containing: - name (str, required): Rule name - priority (int, optional): Priority of the rule - status (str, optional): ACTIVE or INACTIVE - conditions (dict, optional): Rule conditions - actions (dict, optional): Rule actions

Returns: Dict containing the created rule details.

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_policy_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
policy_idNo
rule_dataNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it only says a rule is created and returns details. It doesn't disclose permission requirements, whether the new rule is ACTIVE by default, whether duplicate names are rejected, or what errors occur on an invalid policy_id.

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?

The purpose is front-loaded in one sentence, then parameters and return value are laid out in a compact, scannable list with no filler. Every line carries information an agent would otherwise have to infer.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema exists, so the brief Returns note is a bonus rather than a necessity, and the parameter documentation is solid for a two-parameter tool. What remains missing is routing guidance against the many rule-related siblings and any behavioral or failure-mode context, which matters given there are no annotations.

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 does: it documents policy_id and breaks rule_data into named subfields with types and required/optional status, including the ACTIVE/INACTIVE values for status. One gap is that it labels both top-level params "required" while the schema shows defaults and zero required parameters.

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 first sentence gives a specific verb and resource ("Create a new rule for a policy"), which is enough to distinguish it from sibling tools like create_group_rule or update_policy_rule without opening the schema. It stops short of naming an alternative explicitly, so it stops at 4.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no statement of when to use this tool versus create_group_rule, update_policy_rule, or copy-an-existing-rule workflows, and no prerequisites such as needing an existing policy_id. Usage is only implied by the name.

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