Skip to main content
Glama
Logto MCP Server

Logto MCP Server

by kdunin

assign_role_scopes

Add API resource permissions (scopes) to an existing role using its role ID and one or more scope IDs.

Instructions

Add API resource permissions (scopes) to an existing 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": {
      "id": "<id>",
      "scopeIds": "<scopeIds>"
    },
    "name": "assign_role_scopes"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRole ID
scopeIdsYesScope IDs to add

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

B3.1/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. Beyond the word 'Add', it says nothing about whether existing scopes are preserved, what happens when a scope is already assigned (duplicate/error), required permissions, or whether the change 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?

A single short sentence with the action front-loaded and zero filler. Nothing needs trimming, and the key constraint ('existing role') is not buried.

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?

For a simple two-parameter mutation with fully described parameters and no output schema, the description is minimally adequate. It still leaves open the additive-vs-error behavior on duplicate scopes and the origin of scope IDs, which matter for correct invocation.

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 100% ('Role ID', 'Scope IDs to add', with minItems:1), so both parameters are already documented. The description's 'to an existing role' adds only slight framing and no format or sourcing detail (e.g., where scope IDs come from, such as list_resource_scopes).

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 ('Add') and resource ('API resource permissions (scopes)') applied to 'an existing role'. That distinguishes it from siblings like create_role or assign_user_roles, though no sibling is named explicitly.

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?

The phrase 'existing role' implies a prerequisite (the role must already exist) and distinguishes from role creation, but there is no explicit when-to-use guidance, no mention of how to remove scopes, and no routing to alternatives such as the tools for listing resource scopes.

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