Skip to main content
Glama

iam__UpdateProjectStatus

Sets a Huawei Cloud IAM project's status to normal or suspended using its project ID. Use it to freeze or restore project access for administrative control.

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": {
      "project": "<project>",
      "project_id": "<project_id>"
    },
    "name": "iam__UpdateProjectStatus"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYes项目信息。
project_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.4/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 does add real context, disclosing that this is an admin-only mutation and that the target states are 'normal' and 'frozen' (冻结). It omits the most important consequence, namely what suspending a project does to the resources and users inside it, and whether the change is reversible.

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?

Two short sentences, front-loaded with the verb and resource, with no filler. The only trimming available is dropping the external support-link markup embedded mid-sentence.

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

Completeness3/5

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

For a two-parameter, single-field mutation with no output schema, the definition covers purpose, privilege, and target states. It stops short of describing the operational impact of freezing a project, which is the key unknown an agent would have before calling a destructive status change.

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% and the nested status enum is already documented in the schema, so the baseline is 3. The description's list of allowed states (正常、冻结) marginally reinforces the enum, but its wording differs from the schema's 'normal'/'suspended' values, adding mild ambiguity rather than clarity.

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 names a specific verb and resource in Chinese: setting a project's status (设置项目状态), scoped to administrators. That is clear enough to distinguish it from read-only siblings like iam__ShowProjectDetailsAndStatus. It does not, however, contrast itself with the other project-mutating siblings such as iam__KeystoneUpdateProject.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is only implied: it states the interface is for administrators, which signals a privilege prerequisite. There is no explicit when-to-use guidance, no statement of when not to use it, and no pointer to an alternative such as KeystoneUpdateProject for other project fields.

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