Skip to main content
Glama

vpc__AddSecurityGroups

Adds one or more security group IDs to a specified VPC port, with an optional insertion index, to control the port's network access.

Instructions

[VPC] 端口插入安全组

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": {
      "port": "<port>",
      "port_id": "<port_id>",
      "project_id": "<project_id>"
    },
    "name": "vpc__AddSecurityGroups"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes端口插入安全组请求体
port_idYes端口的唯一标识
project_idYes项目ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden, but it only implies a mutation ('insert'). It does not disclose whether existing security groups are replaced or appended, what the 'index' position does, whether the port must be in a particular state, or what permissions are required. The schema's 'index' parameter hints at positional insertion, but the description itself adds no behavioral context.

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 front-loaded phrase with no wasted words, but for a mutating tool with a nested request body it is arguably under-specified rather than appropriately concise. It earns its place as a label but does not structure any useful guidance.

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?

This is a mutation tool with a nested object parameter, no annotations, and no output schema, yet the description is only a four-word label. It omits the critical semantics of positional insertion (index) and whether security groups are added to or replace the port's existing list, leaving the agent unable to call it with confidence.

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%, so the port_id, project_id, index, and security_groups parameters are already documented in the input schema. The description adds no additional meaning, which matches the baseline of 3 when the schema does the heavy lifting.

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 '[VPC] 端口插入安全组' identifies a specific verb (insert/add) and resources (security groups, port), and the word 'insert' implicitly distinguishes it from the sibling vpc__RemoveSecurityGroups. It is clear enough to identify the operation, but the terse phrasing and lack of explicit sibling routing keep it below a 5.

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 versus alternatives such as vpc__RemoveSecurityGroups or vpc__CreateSecurityGroupRule, and no prerequisites are stated. The agent must infer the usage context entirely.

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