Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

assign_user_to_application_with_role

Assign an active Okta user to an application and set a specific role or profile attributes, including AWS IAM roles for SAML-based access.

Instructions

Assign a user to an application with a specific role or profile attributes.

Only ACTIVE users can be assigned to applications.

This is particularly useful for applications like AWS where you need to assign users to specific IAM roles imported from AWS via SAML.

Args: app_id: The Okta application ID user_id: The Okta user ID or login email role: The role to assign (e.g., for AWS: "arn:aws:iam::123456789012:role/AdminRole,...") profile: Dict of additional profile attributes to set for this app assignment

Returns: Dict with assignment details including the assigned role

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>",
      "user_id": "<user_id>"
    },
    "name": "assign_user_to_application_with_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNo
app_idYes
profileNo
user_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose the active-user prerequisite and the shape of the role string (an AWS ARN), plus that a dict with assignment details is returned. It omits permission requirements, behavior on duplicate assignments, and what happens to the assignment if the user is later deactivated or the role is deleted.

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 most important constraint (active users only) is placed immediately after the purpose line, and the Args/Returns structure is scannable. The ARN example is long but earns its space as the only concrete role-format guidance.

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?

An output schema exists, so the Returns block is largely redundant, and the remaining gap is behavioral: no annotations plus a mutation tool means permission needs, idempotency, and failure modes should be covered and are not. The optionality of role and profile is also unresolved relative to the schema's null defaults.

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 does define all four parameters with meaning: app_id and user_id as Okta identifiers, role with a concrete ARN example, and profile as a dict of additional assignment attributes. It does not explain that role and profile are both optional or what an assignment with neither looks like, leaving a real semantic gap.

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 states a specific verb (assign), resource (user to application), and differentiator (with a specific role or profile attributes), which separates it from the simpler sibling assign_user_to_application. It does not name that sibling explicitly, so an agent must infer the distinction from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

"Only ACTIVE users can be assigned to applications" gives a hard precondition, and the AWS/SAML IAM role example gives a concrete when-to-use scenario. It stops short of stating when NOT to use this versus assign_user_to_application or update_user_application_role, so the alternative-selection guidance is incomplete.

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