Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

update_policy

Updates an existing Okta policy by ID with new configuration data and returns the updated policy details.

Instructions

Update an existing policy.

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

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

Input Schema

NameRequiredDescriptionDefault
policy_idNo
policy_dataNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full burden of behavioral disclosure. It does not say whether policy_data replaces the whole configuration or merges into it, whether the change is reversible, what permissions are required, or what happens to unspecified fields — all critical for a mutation 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 structure is clean and front-loaded: a one-line purpose followed by Parameters and Returns blocks. Slight waste in restating parameter types/required flags that belong in the schema and in a Returns note that duplicates the output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an unannotated mutation tool with 0% schema coverage on an untyped free-form dict parameter, the definition does far too little: the policy_data contract is undefined and safety/permission behavior is unstated. The presence of an output schema excuses the Returns note, but the input side remains substantially under-specified.

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

Parameters2/5

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

Schema description coverage is 0%, and while the description names and types both parameters, the crucial detail — the shape and semantics of policy_data (full replacement vs. partial patch) — is absent. It also labels both parameters "required", contradicting the schema where required is empty and policy_id defaults to an empty string, which could mislead invocation.

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?

"Update an existing policy" gives a specific verb and resource, so the agent knows this mutates a policy object. It does not distinguish itself from siblings such as update_policy_rule or create_policy, leaving the agent to infer the boundary from names 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?

There is no when-to-use guidance, no mention of prerequisites or permissions, and no reference to alternatives for creating, activating, or deleting a policy. The agent must guess the lifecycle context in which an update is appropriate.

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