Skip to main content
Glama

lakeformation__ListPrincipals

Lists users and user groups assigned to a specified LakeFormation role, with pagination and optional name filtering, to help audit or manage role-based access.

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>",
      "role_name": "<role_name>"
    },
    "name": "lakeformation__ListPrincipals"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 burden, yet it says nothing about read-only semantics, required permissions on the LakeFormation instance, or that results are paginated (the schema exposes limit/marker/reverse_page). It only restates the resource being listed.

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?

A single short sentence with a bracketed service tag and the core purpose front-loaded; nothing is wasted. The flip side is that it is too terse rather than verbose, but conciseness itself is not the problem.

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?

A 7-parameter, paginated read API with no annotations and no output schema is under-served by one sentence. Missing is any hint about what the response contains (principals with types?) or how to page through results, which the agent cannot get from annotations.

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 are documented with patterns, ranges, and defaults in the schema itself. The description adds no meaning beyond that, which is the baseline-3 case for well-described schemas.

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 combination: querying the users/user groups that belong to a role. An agent can tell this is a read of role-to-principal bindings, distinct from the mutation siblings AssociatePrincipals/RevokePrincipals. It does not explicitly name a sibling alternative, so it stops short of a 5.

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 beyond the bare implied purpose — no statement of prerequisites, no mention of when to prefer ListRoles/ListRoleNames, and no note that this is a read operation. The agent must infer the usage context from the tool name alone.

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