Skip to main content
Glama

lakeformation__AssociatePrincipals

Associates one or more users or user groups with a LakeFormation role using the instance ID, project ID, and role name.

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__AssociatePrincipals"
  }
}

Input Schema

NameRequiredDescriptionDefault
role_nameYes角色名称。只能包含字母、数字和下划线,且长度为1~255个字符。
project_idYes项目编号。获取方法,请参见[获取项目ID](lakeformation_04_0026.xml)。
instance_idYesLakeFormation实例ID。创建实例时自动生成。例如:2180518f-42b8-4947-b20b-adfc53981a25。

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 and discloses almost nothing. It does not state that this is a mutation, whether it is additive or idempotent, what permissions are required, or what happens when only some of the listed principals fail to associate.

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?

A single short clause with no wasted wording, but the brevity comes at the cost of under-specification rather than disciplined editing. The bracketed [LAKEFORMATION] prefix consumes attention without adding meaning.

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?

For a mutating tool with no annotations and no output schema, one line is inadequate; an agent cannot determine required permissions, idempotency, partial-failure behavior, or how the principals themselves are passed. The mismatch between the stated principals target and the three path parameters leaves the core action underspecified.

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 three parameters are already self-documenting and the baseline of 3 applies. However, the description refers to principals (users/user groups) that have no corresponding property in the schema, which adds ambiguity rather than clarity about how the principals are actually supplied.

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 (associate/add) and resource (users or user groups into a role), which is a concrete, identifiable operation. It does not differentiate itself from siblings such as RevokePrincipals, UpdatePrincipals, or AssociateRoles, 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: no mention of preconditions (the role must already exist, the instance and project must be valid), no note on when to prefer UpdatePrincipals or RevokePrincipals, and no statement of whether the operation replaces or appends the existing principal set.

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