Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

check_role_exists_on_application

Validates whether a specified role, such as an AWS IAM role ARN, is configured and assignable on an Okta application, returning existence status and suggestions when missing.

Instructions

Check if a specific role exists/is available on an application.

Validates whether a given role (e.g., AWS IAM role ARN) is configured and available for assignment on the specified application.

Args: app_id: The Okta application ID role: The role to check (e.g., "arn:aws:iam::123456789012:role/AdminRole, arn:aws:iam::123456789012:saml-provider/Okta")

Returns: Dict with validation result and suggestions if role not found

Example: # Check if specific AWS role exists result = check_role_exists_on_application( app_id="0oaAWS123", role="arn:aws:iam::123456789012:role/AdminRole,arn:aws:iam::123456789012:saml-provider/Okta" ) # Returns: {"exists": True, "role": "...", "message": "Role exists and can be assigned"}

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>",
      "role": "<role>"
    },
    "name": "check_role_exists_on_application"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes
app_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does communicate that this is a non-mutating validation and that a missing role yields 'suggestions'. It does not mention permission requirements, rate limits, or whether the check is authoritative versus eventual-consistency.

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 first sentence is front-loaded and effective, but the Args/Returns/Example block repeats the same information, and the role sample has a broken quoting/line-continuation artifact that reduces polish. Some pruning would improve it.

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-only check with an output schema present, the description supplies enough to call it correctly: parameter meaning, role format, and the general result shape. Remaining gaps (auth requirements, relation to sibling listing tools) are modest.

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 coverage is 0% (only bare titles 'Role' and 'App Id'), so the description must compensate, and it does: app_id is identified as the Okta application ID, and role is shown as a comma-separated AWS IAM role ARN + SAML provider pair via a concrete example. Format details for composite roles are the key added value.

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 gives a specific verb and resource ('check if a specific role exists/is available on an application') and clarifies it validates a role such as an AWS IAM role ARN against a given Okta app. It does not explicitly distinguish itself from siblings like list_application_available_roles, leaving the closest alternative unaddressed.

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?

The example implies a pre-assignment validation workflow, but the description never states when to call this instead of list_application_available_roles or check_permissions, nor any when-not conditions. Usage is inferable rather than stated.

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