Skip to main content
Glama

iam__UpdateLoginProtect

Updates an IAM user's login protection settings, enabling or disabling protection and setting the verification method to SMS, email, or MFA.

Instructions

[IAM] 该接口可以用于管理员修改账号操作保护。

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": {
      "login_protect": "<login_protect>",
      "user_id": "<user_id>"
    },
    "name": "iam__UpdateLoginProtect"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYes待修改登录保护状态信息的IAM用户ID。
login_protectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does mention the admin-only audience, which is useful, but says nothing about what happens on success, whether the change takes effect on the user's next login, whether it invalidates sessions, or how verification_method interacts with enabled. For a security-sensitive mutation this is a substantial gap.

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 sentence that is front-loaded with the [IAM] tag and the verb, so it is not verbose. But it is under-specified rather than concise, and it embeds a documentation hyperlink that consumes attention without clarifying behavior.

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?

This is a mutation tool with no annotations, no output schema, a nested object parameter, and a security-sensitive subject. The description explains only the broad intent and audience, leaving an agent without enough information to call it safely or to distinguish it from closely named siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%, and the nested login_protect object itself has an empty description while its children are documented. The description adds no parameter meaning at all — nothing about how user_id is used, what the valid verification_method values mean, or the relationship between enabled and verification_method. It fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs the verb 修改 (modify) with the resource 账号操作保护 (account operation protection), so the general intent is graspable. However, the schema operates on a specific IAM user's 登录保护 (login protection) via user_id, so the wording 'account operation protection' is looser than what the tool actually does. It also offers no differentiation from sibling iam__UpdateDomainProtectPolicy, which sounds very similar.

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 only guidance is that this is for administrators (管理员) to modify the setting. There is no statement of when to prefer this over iam__UpdateDomainProtectPolicy or iam__UpdateDomainLoginPolicy, and no prerequisites, exclusions, or required permissions beyond the vague 'administrator' audience.

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