Skip to main content
Glama

workspace__UpdateNatMappingConfigs

Update a tenant's NAT mapping configurations, including enablement, site, and port or host mappings, to control Workspace network access and routing.

Instructions

[WORKSPACE] 修改租户的NAT映射配置项。

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__UpdateNatMappingConfigs"
  }
}

Input Schema

NameRequiredDescriptionDefault
nat_onNo是否开启nat映射。
site_idNo站点ID。
project_idYes项目ID。
nat_vag_mapsNoNAT映射配置表。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/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. It implies a mutation but does not disclose whether the mapping list is fully replaced or merged, what permissions or site/project state are required, whether changes are reversible, or what happens to entries omitted from nat_vag_maps. For a destructive-capable config update this is a significant gap.

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 short sentence with no wasted words and the resource front-loaded after the bracketed workspace tag. It is efficient, though the brevity is partly under-specification rather than disciplined compression.

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 takes an array of up to 100 nested NAT mapping objects and has no annotations and no output schema, so the description must explain update semantics and failure modes. A one-line summary leaves the replace-vs-merge behavior and error conditions unexplained, which is inadequate for this complexity.

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 every property including the nested nat_vag_maps fields carries its own description, so the baseline is 3. The description adds no meaning beyond the schema, such as interrelationships between nat_on and the mapping list.

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 pairs the verb "修改" (modify) with the resource "NAT映射配置项" (NAT mapping config items), so the basic operation is identifiable. However, it frames the target as a tenant ("租户") while the required parameter is project_id, and it never distinguishes itself from the sibling workspace__ListNatMappingConfigs or states which fields are updatable. Purpose is understandable but vague on scope.

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 the List variant or other workspace update tools, and no prerequisites or conditions are stated. The agent must infer usage entirely from the name.

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