Skip to main content
Glama
Okta MCP Server

Okta MCP Server

by csenguttuvan

update_user_application_role

Update the role or profile attributes for an existing user-application assignment, including AWS IAM roles, to keep app-specific access current.

Instructions

Update the role or profile for a user already assigned to an application.

Use this to change AWS IAM roles or other app-specific attributes for existing assignments.

Args: app_id: The Okta application ID user_id: The Okta user ID or login email role: The new role to assign (e.g., AWS IAM role ARN) profile: Dict of profile attributes to update

Returns: Dict with updated assignment details

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": "update_user_application_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

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It omits the critical fact that role and profile are both optional in the schema, meaning calling with only app_id/user_id performs no change or errors, and says nothing about required permissions, whether an existing role is replaced versus merged, or whether the call is reversible.

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

Conciseness5/5

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

Purpose and usage are front-loaded in two short sentences, followed by compact Args and Returns blocks. There is minor repetition of 'existing assignments' across the first two sentences but no wasted content.

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?

The output schema already documents the return, so restating 'Dict with updated assignment details' is harmless filler. For an unannotated mutation tool with two optional payload parameters, the description should have covered the at-least-one-of-role/profile requirement and permission expectations; those omissions are the main completeness gap.

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: it identifies app_id as the Okta application ID, user_id as an ID or login email, role as the new role with an AWS IAM role ARN example, and profile as a dict of attributes. What it does not clarify is the optionality/interaction of role and profile, which is the one semantic gap left.

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 ('Update the role or profile') plus a scoping constraint ('for a user already assigned to an application'), which implicitly separates it from assign_user_to_application_with_role. It does not name that sibling explicitly, so differentiation relies on the reader inferring 'already assigned' means no new assignment is created.

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 second sentence gives context ('change AWS IAM roles or other app-specific attributes for existing assignments'), which implies this is for modifying, not creating, assignments. However, it never states when not to use it, never names the assign/unassign alternatives, and does not mention the precondition that the user must actually already be assigned (and what happens if not).

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