Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

list_policies

Retrieve and filter Okta organization policies by type, status, or name, with pagination support for reviewing access and authentication rules.

Instructions

List all the policies from the Okta organization.

Parameters: type (str, required): Specifies the type of policy to return. Available policy types are: OKTA_SIGN_ON, PASSWORD, MFA_ENROLL, IDP_DISCOVERY, ACCESS_POLICY, PROFILE_ENROLLMENT, POST_AUTH_SESSION, ENTITY_RISK status (str, optional): Refines the query by the status of the policy - ACTIVE or INACTIVE. q (str, optional): A query string to search policies by name. limit (int, optional): Number of results to return (min 20, max 100). after (str, optional): Specifies the pagination cursor for the next page of policies.

Returns: Dict containing: - policies (List[Dict]): List of policy dictionaries, each containing policy details - 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_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
typeNo
afterNo
limitNo
statusNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it discloses the pagination cursor, the limit bounds (min 20, max 100), and that failures surface as an error field. It says nothing about required permissions, ordering of results, or whether an empty result is distinguishable from a failure, which are meaningful gaps for an unannotated read tool.

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 first sentence front-loads purpose, then parameters are listed in a scannable block. The Returns section largely restates structured output-schema information and could be dropped without losing anything.

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 five-parameter list tool the parameter documentation is essentially complete, and the output schema covers return shape. What is missing is the operational context an agent needs to call it confidently: permissions, result ordering, and the required-vs-default discrepancy on type.

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 coverage is 0%, so the description must do all the work, and it does: it enumerates the eight valid policy types, restricts status to ACTIVE/INACTIVE, explains q as a name search, and clarifies that after is a pagination cursor. The only flaw is labeling type as required while the schema gives it a default of "" and marks 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?

States a specific verb and resource ("List all the policies from the Okta organization"), which is unambiguous on its own. It does not, however, differentiate itself from close siblings such as list_policy_rules or create_policy, so the agent must infer the boundary from the name alone.

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?

The description never states when to choose this tool over list_policy_rules, or when a single-policy lookup would be preferable. The only implicit scoping comes from the required type filter, which is about parameters rather than tool selection.

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