Skip to main content
Glama

workspace__AddRestrictedRule

Adds a Huawei Cloud Workspace restriction rule to a specified project, helping administrators enforce access and usage controls.

Instructions

[WORKSPACE] 增加管控规则。

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_id": "<project_id>"
    },
    "name": "workspace__AddRestrictedRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.1/5.0
Behavior1/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, yet it discloses nothing about side effects, whether the operation is idempotent, what permissions are required, or whether a conflicting rule is overwritten. For a state-mutating tool this is a serious 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?

It is a single short, front-loaded phrase with no wasted wording, so it is concise. However, the brevity comes at the cost of substance, so it reads more like a title than a usable description.

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?

The tool is structurally simple (one required, well-documented path parameter, no output schema), which lowers the bar, but with no annotations and no statement of what a restricted rule is or what happens on success, an agent cannot confidently invoke it. The description is materially incomplete for a mutation tool.

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?

There is a single parameter (project_id) with 100% schema description coverage, so the schema already explains it fully; the baseline for high coverage applies. The description adds no extra meaning about project_id, but none is needed here.

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

Purpose2/5

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

The description '增加管控规则' (add a control/restricted rule) essentially restates the tool name AddRestrictedRule with no added specificity. It never says what a 'restricted rule' is, what entity it governs, or what the tool's scope is, and gives no differentiation from siblings like SetRuleRestriction or EnableRuleRestriction.

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 at all: no indication of when to call this versus SetRuleRestriction, EnableRuleRestriction, or ListRestrictedRule, and no prerequisites or ordering hints. The only implicit signal is the '[WORKSPACE]' prefix and the verb 'add'.

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