Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

get_policy

Retrieve a specific Okta policy by ID to inspect its configuration details for access and security management.

Instructions

Retrieve a specific policy by ID.

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

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

Input Schema

NameRequiredDescriptionDefault
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?

With no annotations supplied, the description carries the full disclosure burden yet only states that it retrieves and returns a dict. It says nothing about permissions required, behavior when the policy does not exist (error vs. empty), or whether the result is cached/filtered; 'Retrieve' implies read-only but that is inference, not disclosure.

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 structure is easy to scan. There is slight redundancy between 'by ID' in the opening line and the parameter restatement, but nothing that wastes much space.

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 getter with an output schema, the description covers purpose, input, and a pointer to the return shape, which is close to sufficient. It still omits ID format expectations and not-found behavior, which matter for correct invocation.

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%, and the description compensates by naming the single parameter, its type, its requiredness, and its meaning. The only friction is that it declares policy_id required while the schema has no required array and a default of empty string, a minor inconsistency an agent could trip on.

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 by ID'), which is unambiguous about the operation. It does not explicitly contrast with siblings like list_policy_rules or get_policy_rule, so an agent must infer that this fetches one object rather than a collection.

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?

'by ID' implicitly signals the precondition (you must already know the policy identifier) and thus implies when to prefer this over a listing tool. However, there is no explicit when-to-use vs. alternatives statement and no mention of what to do if the ID is unknown.

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