Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

get_policy_rule

Fetch details for a specific Okta policy rule using its policy ID and rule ID to inspect the rule configuration.

Instructions

Retrieve a specific policy rule.

Parameters: policy_id (str, required): The ID of the policy. rule_id (str, required): The ID of the rule.

Returns: Dict containing the policy 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": "get_policy_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idNo
policy_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 behavioral burden. It discloses only that a dict of rule details is returned (redundant with the existing output schema) and says nothing about permissions, behavior when the rule or policy is not found, or whether inactive rules are returned. It also labels both parameters "required" while the schema marks them optional with empty-string defaults, which is an internal inconsistency that could mislead an agent.

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 purpose sentence is front-loaded and the Parameters/Returns blocks are easy to scan with no filler prose. Slight waste in restating the return value, which the output schema already defines.

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 simple two-parameter read tool with an output schema, the essentials are present: purpose, parameter meanings, and return shape. What is missing is error/not-found behavior and the requiredness mismatch, which matter because no annotations exist to cover them.

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: both parameters are named with types and described roles (policy ID and rule ID). The only flaw is the "required" claim, which conflicts with the schema's zero required parameters and default values.

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 uses a specific verb and resource ("Retrieve a specific policy rule") and the word "specific" signals it fetches one rule by ID rather than listing them, implicitly contrasting with list_policy_rules. It stops short of naming any sibling explicitly, so an agent must infer the single-vs-list distinction.

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 only implied: the required policy_id/rule_id pair tells the agent this is a lookup-by-identifier tool. There is no explicit statement of when to prefer it over list_policy_rules or get_policy, and no preconditions or exclusions are given.

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