Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

list_application_available_roles

Retrieve the roles available for assignment on an Okta application by app ID, including imported AWS IAM roles and configured SAML role options.

Instructions

List all available/importable roles defined for an application.

For AWS apps, this returns all IAM roles that have been imported from AWS into Okta. For other SAML apps, this returns the role options configured in the app settings. These are the roles you can assign to users.

Args: app_id: The Okta application ID

Returns: Dict containing available roles that can be assigned to users

Example for AWS app: { "available_roles": [ "arn:aws:iam::123456789012:role/AdminRole,arn:aws:iam::123456789012:saml-provider/Okta", "arn:aws:iam::123456789012:role/DeveloperRole,arn:aws:iam::123456789012:saml-provider/Okta", "arn:aws:iam::123456789012:role/ReadOnlyRole,arn:aws:iam::123456789012:saml-provider/Okta" ], "role_count": 3, "app_name": "AWS Account", "aws_account_id": "123456789012" }

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "app_id": "<app_id>"
    },
    "name": "list_application_available_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes

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?

No annotations exist, so the description carries the full burden and does reasonably well: it discloses that results differ by app type (AWS imports vs. SAML settings), that values are assignable roles, and what the response contains. It omits permission/scope requirements and any pagination or caching behavior, keeping it out of the top band.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence and the AWS/SAML distinction are well front-loaded, but the full sample JSON response is lengthy and largely redundant given an output schema already exists. Roughly half the text is illustrative payload that the schema already conveys.

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 single-parameter read tool with an output schema, the definition covers purpose, per-app-type variation, and expected return keys, which is enough to call it correctly. The only real gap is how to source the app_id, which is minor against the supplied output schema.

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

Parameters3/5

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

Schema description coverage is 0% for the single required parameter, so the description must compensate. It only restates 'app_id: The Okta application ID' without telling the agent where to obtain the ID (e.g., from list_applications or get_application) or its format, which is the minimum-viable level for a 0%-coverage schema.

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 ('List all available/importable roles defined for an application') and further splits behavior by app type (AWS-imported IAM roles vs. SAML role options configured in app settings). It never names a sibling or clarifies how it differs from adjacent tools such as check_role_exists_on_application, so it falls 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied via 'These are the roles you can assign to users', which hints this is a lookup preceding an assignment call, but no explicit when-to-use, when-not-to-use, or alternative tool is named. Adequate but leaves routing to inference.

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