Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

create_policy

Creates a new Okta policy from supplied configuration, including type, name, status, conditions, and settings.

Instructions

Create a new policy.

Parameters: policy_data (dict, required): The policy configuration containing: - type (str, required): Policy type (OKTA_SIGN_ON, PASSWORD, MFA_ENROLL, ACCESS_POLICY, PROFILE_ENROLLMENT, POST_AUTH_SESSION, ENTITY_RISK, DEVICE_SIGNAL_COLLECTION) - name (str, required): Policy name - description (str, optional): Policy description - status (str, optional): ACTIVE or INACTIVE (default ACTIVE) - priority (int, optional): Priority of the policy - conditions (dict, optional): Policy conditions - settings (dict, optional): Policy-specific settings

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

Input Schema

NameRequiredDescriptionDefault
policy_dataNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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, yet it only implies mutation through the word "Create." It says nothing about required permissions/scopes, whether the new policy is immediately ACTIVE and enforced, what happens on duplicate names, or whether priority collisions are resolved server-side. The "Returns" line is redundant given the output schema exists.

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 single-sentence purpose followed by a structured, indented parameter list is front-loaded and scannable. The closing "Returns" block is wasted space since an output schema is already provided.

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 description is adequate for the single nested parameter, which is the main complexity here. For a mutation tool with zero annotation coverage, however, it omits permission requirements, side effects like immediate policy enforcement, and failure modes, leaving meaningful behavioral gaps.

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 largely does: it documents the nested policy_data fields, enumerates all valid type values, and gives the ACTIVE/INACTIVE default. The remaining weakness is that conditions and settings are described only as "Policy conditions" and "Policy-specific settings," and the description calls policy_data required while the schema defaults it to null.

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 ("Create a new policy") and enumerates the policy types it accepts, so the agent knows exactly what object is produced. It never distinguishes itself from close siblings such as create_policy_rule or update_policy, which the agent must resolve on its own.

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 when-to-use guidance, no prerequisites (e.g. whether an application or org-level context is required), and no mention of alternatives like update_policy for existing policies or create_policy_rule for rules within a policy. The agent is left to infer the selection criteria entirely.

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