Skip to main content
Glama

hss__SetTwoFactorLoginConfig

Configures two-factor authentication for Huawei Cloud HSS hosts by enabling SMS or verification-code login and assigning notification topics.

Instructions

[HSS] 设置双因子登录配置

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": {
      "auth_type": "<auth_type>",
      "enabled": "<enabled>",
      "host_id_list": "<host_id_list>",
      "project_id": "<project_id>",
      "topic_display_name": "<topic_display_name>",
      "topic_urn": "<topic_urn>"
    },
    "name": "hss__SetTwoFactorLoginConfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYes是否开启双因子认证
auth_typeYes认证类型
topic_urnYes主题的唯一资源标识
project_idYes**参数解释**:
host_id_listYes服务器列表
topic_display_nameYes主题别名
enterprise_project_idNo**参数解释**:0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 of behavioral disclosure, and it provides almost none. It implies a mutation of security configuration (potentially security-sensitive, since it enables/disables two-factor auth across servers), yet never states required permissions, whether changes apply immediately, whether they are reversible, or what happens to hosts omitted from host_id_list.

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 description is a single short phrase with no wasted words, but its brevity reflects under-specification rather than tight writing. It is front-loaded but carries only a restatement of the tool name's 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 7-parameter security-configuration mutation with no annotations and no output schema, a one-phrase description is inadequate. An agent could call it, but could not predict side effects, permission requirements, or the semantics of enabling/disabling two-factor auth across a host list.

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% with 7 parameters, so the schema already documents each field; the baseline of 3 applies. The description adds no meaning beyond the schema—notably it does not clarify the auth_type values (sms/code), the role of topic_urn/topic_display_name for notifications, or the empty host_id_list edge case.

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 "[HSS] 设置双因子登录配置" gives a verb (设置, 'set') and a resource (双因子登录配置, 'two-factor login configuration'), so the basic purpose is identifiable. However, it offers no scope details—which settings, for which hosts, with what effect—and nothing distinguishes it from siblings such as hss__SetRaspSwitch or hss__SetWtpProtectionStatusInfo, which share the same 'set configuration' shape.

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 prerequisite or permission context, and no mention of alternatives. An agent must infer from the schema alone that this writes two-factor authentication settings across a host list.

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