Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

list_policy_rules

Retrieves all rules for a specified policy by policy ID so you can inspect and verify policy rule configurations.

Instructions

List all rules for a specific policy.

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

Returns: Dict containing: - rules (List[Dict]): List of policy rule dictionaries - error (str): Error message if the operation fails

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

Input Schema

NameRequiredDescriptionDefault
policy_idNo

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?

No annotations are supplied, so the description carries the full behavioral burden. It implies a read operation but says nothing about permission requirements, pagination, ordering of results, or what happens when the policy ID is invalid — only that an 'error' key may be returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and efficient, and the parameter block is compact. The 'Returns' block largely duplicates the existing output schema and is therefore redundant rather than harmful.

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 one-parameter read tool with an output schema, the definition is adequate but thin: it omits permission needs, empty-result behavior, and the required/optional discrepancy. Nothing outright necessary for invocation is missing, but an agent has little to reason with.

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 must compensate; it does minimally by explaining that policy_id is the ID of the policy. It adds no information on the expected ID format, where to obtain it, or behavior for the empty-string default — and it calls the parameter required while the schema marks it optional with a default.

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 ('List all rules for a specific policy'), which is enough for an agent to distinguish it from single-rule readers like get_policy_rule. It does not, however, explicitly position itself against siblings such as list_policies or list_group_rules.

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 use this versus get_policy_rule, get_policy, or list_policies, and no stated prerequisite such as needing a valid policy ID. The agent must infer the usage context entirely from the tool name.

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