Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

list_group_rules

Retrieve all group rules in an Okta organization with pagination, name filtering, and optional group-name expansion to audit or manage rule assignments.

Instructions

List all group rules in the Okta organization.

Parameters: limit (int, optional): Number of results to return (max 200). after (str, optional): Specifies the pagination cursor for the next page of rules. search (str, optional): Filters rules by name. expand (str, optional): If set to "groupIdToGroupNameMap", returns group names in the response.

Returns: Dict containing: - rules (List[Dict]): List of group 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_group_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
limitNo
expandNo
searchNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses pagination via the 'after' cursor, a 200-result cap, the special 'groupIdToGroupNameMap' expand value, and the return shape including an 'error' field for failure cases. It still omits read-only/auth expectations and what happens when 'after' is omitted at the end of a result set.

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 lead sentence states the operation up front, followed by clearly separated Parameters and Returns blocks, so an agent can scan it quickly. The Returns block partially duplicates the existing output schema, which is minor waste but not harmful.

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

Completeness4/5

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

For a 4-parameter, zero-schema-coverage, annotation-free list tool, the definition covers what each input means and what comes back, which is the critical information. Remaining gaps (default limit, auth requirements, whether all pages must be walked) are secondary and the output schema covers return detail.

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: all four parameters are described with their purpose, including the max value for limit, the cursor semantics of after, name filtering for search, and the single accepted value for expand. The one gap is that the schema's default limit of 20 is never mentioned, and 'search' is not stated to be a substring/prefix match.

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 opens with a specific verb+resource: 'List all group rules in the Okta organization,' which is unambiguous and distinguishes it from get_group_rule (single rule) and list_policy_rules (different resource) by naming the exact collection. It stops short of explicitly contrasting with those siblings, so it lands at 4 rather than 5.

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 or when-not-to-use guidance: nothing says to use this for browsing vs. get_group_rule for a known ID, and nothing explains when search or expand should be preferred over a full listing. The word 'all' implies a bulk read, but the agent must infer any routing decision.

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