Skip to main content
Glama

apig__AddIngressEipV2

Add an ingress EIP to enable public network access for an ELB-type APIG instance, with configurable bandwidth and charging mode.

Instructions

[APIG] 开启实例开启公网入口,仅当实例为ELB类型时支持

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__AddIngressEipV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
bandwidth_sizeNo入公网带宽
bandwidth_charging_modeNo入公网带宽计费类型:bandwidth

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it only discloses the ELB-type restriction. It says nothing about permission requirements, whether the operation is idempotent or reversible, that it incurs public bandwidth cost, or how bandwidth_size/charging mode affect billing and outcome.

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 compact sentence with no filler, and the supporting constraint is placed immediately after the action. The phrasing is slightly redundant ('开启实例开启公网入口'), costing a little crispness.

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 4-parameter, annotation-free mutation with no output schema, the description covers the action and one gating condition but not cost/bandwidth implications or expected result. It is minimally viable rather than complete.

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 project_id, instance_id, bandwidth_size and bandwidth_charging_mode are already documented in the schema with examples and an enum/default. The description adds no meaning beyond that, which is acceptable at this coverage level but not additive.

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 the action (enable public ingress / EIP) and the resource (an instance), so an agent can tell it is a provisioning-style mutation. It is distinguishable from RemoveIngressEipV2 or UpdateIngressEipV2 by the verb, but it does not explicitly contrast itself with the near-identical AddEipV2/AddEngressEipV2 siblings.

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?

One precondition is stated: the instance must be ELB type, which is genuinely useful gating information. However, there is no guidance on when to prefer this over the sibling EIP/ingress tools, no mention of prerequisites such as the instance already having an EIP, and no note on what to do if the instance is not ELB type.

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