Skip to main content
Glama

iam__KeystoneShowSecurityComplianceByOption

Queries an account's password strength policy by option to return the password regex or its description for IAM compliance review.

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": {
      "domain_id": "<domain_id>",
      "option": "<option>"
    },
    "name": "iam__KeystoneShowSecurityComplianceByOption"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionYes查询条件。该字段内容为:password_regex或password_regex_description。
domain_idYes待查询的账号ID,获取方式请参见:[获取账号、IAM用户、项目、用户组、委托的名称和ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/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 usefully discloses the return payload (regex plus its human-readable description) and implies a read-only query, but says nothing about authorization requirements, whose policy can be read via domain_id, or error behavior for an invalid option.

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 front-loaded sentence after the [IAM] tag, with no filler or repetition. It could have used its one sentence to differentiate from the sibling instead of restating the return shape, but nothing is wasted as written.

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

Completeness4/5

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

For a simple two-parameter read tool with a fully documented schema and no output schema, the description is nearly sufficient, and it usefully compensates for the missing output schema by naming the returned fields. The one real gap is that it never positions this tool against the identically purposed non-option sibling.

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 coverage is 100% with an enum and inline descriptions for both path parameters, so the schema already explains 'option' and 'domain_id'. The description adds only that the query is conditional, which loosely maps to 'option', and hints that each option corresponds to one of the two returned fields — a marginal value-add over the schema.

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: query the account password strength policy by condition, and even names what the result contains (the regex and its description). A sibling named KeystoneShowSecurityCompliance (no 'ByOption') exists but is never mentioned, so the agent must infer the difference from the name alone rather than from the description.

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 phrase 按条件查询 implies the tool is for option-scoped retrieval, but there is no explicit when-to-use guidance, no when-not-to-use, and no reference to the closely named sibling that presumably returns the same policy without an option filter. Nothing tells the agent which of the two to pick or what permissions are needed.

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