Skip to main content
Glama

lakeformation__ListUserRoles

Lists the roles assigned to a specified user in a LakeFormation instance and project, with pagination and role-name filtering for access review and permission auditing.

Instructions

[LAKEFORMATION] 查询用户的角色列表

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "user_name": "<user_name>"
    },
    "name": "lakeformation__ListUserRoles"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo查询返回条数。默认值为100。最小值为1,最大值为1000。
markerNo查询的起始记录ID。最小长度为0,最大长度为1024。
user_nameYes用户名。只能包含字母、数字、下划线和中划线,且长度为1~256个字符。
project_idYes项目编号。获取方法,请参见[获取项目ID](lakeformation_04_0026.xml)。
instance_idYesLakeFormation实例ID。创建实例时自动生成。例如:2180518f-42b8-4947-b20b-adfc53981a25。
reverse_pageNo是否查询上一页。默认为false。
role_patternNo模糊匹配角色名称。只能包含字母、数字和_|*.特殊字符,且长度为1~255个字符。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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 only implies a read via 查询 and says nothing about permissions, pagination behavior (limit/marker/reverse_page), or what happens for nonexistent users. That is a significant gap for a 7-parameter tool with zero annotation coverage.

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 single short phrase contains no wasted words and is front-loaded, but it is undersized for a tool with seven parameters and a filtering/paging surface.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description should explain return values, pagination semantics, and access requirements, but it does none of that. The rich input schema partially compensates, but the definition is incomplete for the tool's complexity.

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%, so all seven parameters (including limit, marker, reverse_page, role_pattern) are already fully documented in the schema. The description adds no meaning beyond that, so the baseline of 3 applies.

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 names a specific verb and resource (查询...角色列表) scoped to a user, which distinguishes it from the sibling lakeformation__ListRoles that lists roles without a user scope. It is clear but does not explicitly call out the alternative or the distinction.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as ListRoles or ListRoleNames. Usage must be inferred entirely from the title-like phrase.

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

Deploy Server

Other Tools