Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

update_policy_rule

Modify an existing Okta policy rule by policy ID and rule ID using new rule data, and return the updated rule details.

Instructions

Update an existing policy rule.

Parameters: policy_id (str, required): The ID of the policy. rule_id (str, required): The ID of the rule to update. rule_data (dict, required): The updated rule configuration.

Returns: Dict containing the updated 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": "update_policy_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idNo
policy_idNo
rule_dataNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden and does not disclose permission requirements, whether rule_data replaces or merges with the existing configuration, whether an active rule can be edited, or whether the change is reversible. The only behavioral fact given is that it returns the updated rule details, which is already covered by the output schema.

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 one-line purpose is front-loaded and the parameter block is scannable. The 'Returns' section is redundant with the existing output schema, but it costs little.

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?

For a three-parameter mutation tool with no annotations, the definition covers the basics but omits the operation semantics (merge vs replace), preconditions, and failure conditions an agent needs to call it safely. Return-value explanation is not needed given the output schema, so its presence is harmless rather than compensating.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description's per-parameter list is the only documentation, and it does clarify the role of policy_id, rule_id, and rule_data. However, it leaves rule_data as a vague 'updated rule configuration' with no indication of expected keys, and it labels all three parameters required while the schema declares no required fields, creating a mild mismatch.

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 states a specific verb and resource ('Update an existing policy rule'), which is clear and distinct from create/delete/get siblings by name alone. It does not explicitly contrast itself with activate_policy_rule or update_group_rule, but the object being modified is unambiguous.

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 guidance on when to choose this over activate_policy_rule, deactivate_policy_rule, or update_policy, nor any precondition such as whether the rule must exist or be inactive first. The only implied usage is that an existing rule is being modified, which an agent could infer from the name alone.

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