Skip to main content
Glama

workspace__ApplyInternet

Enable internet access for a Workspace by provisioning or reusing a NAT gateway and EIP with specified VPC, subnet, bandwidth, and billing mode.

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": {
      "bandwidth_size": "<bandwidth_size>",
      "eip_charge_mode": "<eip_charge_mode>",
      "nat_spec": "<nat_spec>",
      "project_id": "<project_id>",
      "subnet_id": "<subnet_id>",
      "vpc_id": "<vpc_id>"
    },
    "name": "workspace__ApplyInternet"
  }
}

Input Schema

NameRequiredDescriptionDefault
nat_idNonat的id,有传则使用该NAT,否则新建。
vpc_idYesvpc的id。
eip_nameNoeip名称,默认值:eip-workspace。eip-workspace
eip_typeNoEIP的类型,5_bgp(全动态BGP),5_sbgp(静态BGP),默认值:5_bgp。5_bgp
nat_nameNonat名称,默认值:nat-workspace。nat-workspace
nat_specYes公网NAT网关的规格,1:小型,2:中型,3:大型,4:超大型。
subnet_idYes子网的id。
project_idYes项目ID。
bandwidth_sizeYes带宽大小。
eip_charge_modeYestraffic(按流量计费),bandwidth(按带宽计费)。
enterprise_project_idNo企业项目ID,默认"0。"0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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, yet it only implies provisioning. It does not disclose that this creates billable resources (NAT gateway, EIP, bandwidth), whether an existing NAT is reused when nat_id is supplied versus a new one created, what happens on partial failure, or whether the operation is reversible. For a mutation tool spawning network infrastructure, this is a large 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?

The single sentence is front-loaded and contains no wasted words, but its brevity comes at the cost of under-specification rather than efficiency. There is nothing to restructure, only missing content.

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

Completeness1/5

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

The tool takes 11 parameters with 6 required, mutates cloud networking resources with cost implications, and has no annotations or output schema. A one-line label is far from sufficient to call this correctly or safely.

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 schema already explains every parameter, including the key conditional that nat_id reuses an existing NAT rather than creating one. The description adds no meaning beyond the schema, so the baseline 3 applies.

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

Purpose3/5

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

The description states a verb (开通/provision) and a resource (上网/internet access) within the WORKSPACE domain, so the general intent is clear. However, it does not distinguish this from close siblings such as workspace__ApplyDesktopsInternet or workspace__ApplySubnetBandwidth, and it never mentions that provisioning involves a NAT gateway, EIP, and bandwidth, which the schema's parameters reveal. The purpose is vague at the level an agent needs for routing.

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, no prerequisites (e.g. that a VPC and subnet must exist), and no mention of alternatives for the related internet/bandwidth tools. The agent must infer everything from the schema.

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