Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

get_group_rule

Retrieve details for a specific Okta group rule by rule ID, with optional expansion to include group names for clearer rule inspection.

Instructions

Retrieve a specific group rule.

Parameters: rule_id (str, required): The ID of the group rule. expand (str, optional): If set to "groupIdToGroupNameMap", returns group names in the response.

Returns: Dict containing the group rule 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_group_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
expandNo
rule_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. It does establish that this is a non-mutating retrieval and explains the one meaningful behavioral switch (expand=groupIdToGroupNameMap enriches the payload with group names), but it says nothing about what happens when the rule is not found or whether permissions/scopes are required.

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 text is short and front-loaded, leading with the one-line purpose before the parameter list. The Parameters/Returns layout is legible and, given the empty schema descriptions, the parameter restatement earns its place rather than being filler.

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 two-parameter read tool with a declared output schema, the definition covers purpose, both inputs, and the shape of the return, so an agent has what it needs to call it. The only real gap is absence of not-found/error behavior and auth expectations, a moderate rather than fatal omission.

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 supply all parameter meaning, and it does: it documents both parameters, marks rule_id as required, and pins down the only valid expand value, which the schema leaves as an unconstrained string. It loses a point because the stated required status of rule_id conflicts with the schema's empty-string default, and no ID format is given.

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?

"Retrieve a specific group rule" gives a clear verb (retrieve) and resource (group rule), and the singular "specific" plus the rule_id parameter distinguishes it from list_group_rules by implication. It does not explicitly name a sibling tool, so it stops short of a 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 explicit guidance on when to use this over list_group_rules, get_policy_rule, or the bulk retrieval tools; the only signal is that a single ID is supplied. An agent must infer the single-record use case from the parameter name alone.

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