Skip to main content
Glama

ecs__NovaAssociateSecurityGroup

Adds a security group to a Huawei Cloud ECS server, applying it to the server's network interfaces. Use it to control inbound and outbound traffic for an existing cloud server.

Instructions

[ECS] 为弹性云服务器添加一个安全组。

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": {
      "addSecurityGroup": "<addSecurityGroup>",
      "project_id": "<project_id>",
      "server_id": "<server_id>"
    },
    "name": "ecs__NovaAssociateSecurityGroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
server_idYes弹性云服务器ID。
project_idYes项目ID。
addSecurityGroupYes弹性云服务器添加安全组。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 behavioral burden, and it adds almost nothing: it does not say the change applies to all NICs configured on the server, whether the operation is idempotent, whether existing security groups are replaced or appended, or what the call returns. All of this matters for a state-mutating network operation.

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 with the service tag first and no filler. It is efficient, though its brevity is partly the cause of the missing behavioral detail rather than a sign of completeness.

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 mutating tool with no annotations, no output schema, and a nested request body, one sentence is not enough. The agent learns what the call nominally does but nothing about side effects, idempotency, or failure conditions—information it cannot get from the schema.

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 all three parameters (server_id, project_id, nested addSecurityGroup.name) are documented with examples, so the schema does the heavy lifting. The description adds no meaning beyond it, which matches the baseline 3.

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-resource pair ('add a security group' to an elastic cloud server), which is unambiguous about what the call does. It does not explicitly distinguish itself from the near-identical sibling 'ecs__NovaDisassociateSecurityGroup' (add vs. remove), leaving the disambiguation to the agent.

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 guidance on when to use this tool, no prerequisites (e.g., the security group must already exist, the server must be running), and no reference to the complementary disassociate/list tools. The agent must infer all usage context from the name alone.

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