Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_gtm_update_policy_resources

Idempotent

Replace all resource groups for a Global Traffic Manager policy. Set active, standby, and weighted resources per group to update GTM traffic routing.

Instructions

Update all resources for a specific Global Traffic Manager policy

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": {
      "policyId": "<policyId>",
      "resourceGroups": "<resourceGroups>"
    },
    "name": "ncloud_gtm_update_policy_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyIdYesPolicy ID
resourceGroupsYesResource groups to set (replaces all existing groups). For GEOLOCATION, include one group for EVERY detail of the map, including ETC (geoMapDetailId -1) — otherwise the API rejects the request with 'need all detail id'. PUBLIC_IP resources must be public IP addresses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / resourceGroups / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / resourceGroups / items / properties / active / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / resourceGroups / items / properties / standby / items / $ref
      Removed value: -"#/properties/resourceGroups/items/properties/active/items"
    • addedInput schema / properties / resourceGroups / items / properties / standby / items / properties
      Added value: +{
      +  "content": {
      +    "description": "Resource value: an IP address for PUBLIC_IP, a domain name for EXTERNAL_DOMAIN",
      +    "type": "string"
      +  },
      +  "healthCheckRegionId": {
      +    "description": "Health check region ID (see ncloud_gtm_get_health_check_regions)",
      +    "type": "number"
      +  },
      +  "type": {
      +    "description": "Resource type: PUBLIC_IP | EXTERNAL_DOMAIN (same values as ncloud_gtm_get_resource_types)",
      +    "enum": [
      +      "PUBLIC_IP",
      +      "EXTERNAL_DOMAIN"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / resourceGroups / items / properties / standby / items / required
      Added value: +[
      +  "content",
      +  "healthCheckRegionId",
      +  "type"
      +]
    • addedInput schema / properties / resourceGroups / items / properties / standby / items / type
      Added value: +"object"
  2. Changed12 schema fields changedv2.2.1
    • changedInput schema / properties / resourceGroups / description
      Previous value: -"Resource groups to set"New value: +"Resource groups to set (replaces all existing groups). For GEOLOCATION, include one group for EVERY detail of the map, including ETC (geoMapDetailId -1) — otherwise the API rejects the request with 'need all detail id'. PUBLIC_IP resources must be public IP addresses."
    • addedInput schema / properties / resourceGroups / items / properties / active / items / properties / content / description
      Added value: +"Resource value: an IP address for PUBLIC_IP, a domain name for EXTERNAL_DOMAIN"
    • addedInput schema / properties / resourceGroups / items / properties / active / items / properties / healthCheckRegionId / description
      Added value: +"Health check region ID (see ncloud_gtm_get_health_check_regions)"
    • addedInput schema / properties / resourceGroups / items / properties / active / items / properties / type / description
      Added value: +"Resource type: PUBLIC_IP | EXTERNAL_DOMAIN (same values as ncloud_gtm_get_resource_types)"
    • addedInput schema / properties / resourceGroups / items / properties / active / items / properties / type / enum
      Added value: +[
      +  "PUBLIC_IP",
      +  "EXTERNAL_DOMAIN"
      +]
    • changedInput schema / properties / resourceGroups / items / properties / geoMapDetailId / description
      Previous value: -"Geo map detail ID"New value: +"Geo/CIDR map detail ID this group serves (only when lbType is GEOLOCATION or CIDR). IDs come from ncloud_gtm_get_geo_cidr_map_detail (detailedMapList[].id); the catch-all ETC detail is -1"
    • addedInput schema / properties / resourceGroups / items / properties / standby / items / $ref
      Added value: +"#/properties/resourceGroups/items/properties/active/items"
    • removedInput schema / properties / resourceGroups / items / properties / standby / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / resourceGroups / items / properties / standby / items / properties
      Removed value: -{
      -  "content": {
      -    "type": "string"
      -  },
      -  "healthCheckRegionId": {
      -    "type": "number"
      -  },
      -  "type": {
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / resourceGroups / items / properties / standby / items / required
      Removed value: -[
      -  "content",
      -  "healthCheckRegionId",
      -  "type"
      -]
    • removedInput schema / properties / resourceGroups / items / properties / standby / items / type
      Removed value: -"object"
    • changedInput schema / properties / resourceGroups / items / properties / weighted / description
      Previous value: -"Weight"New value: +"Weight (only when lbType is WEIGHTED_ROUND_ROBIN)"
  3. First observedv1.10.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the safety profile is partly covered. However, the description omits the single most important behavioral fact — that the supplied resourceGroups replace all existing groups — which lives only in the schema description and materially affects how an agent should call this. It also says nothing about validation failures such as 'need all detail id' for GEOLOCATION maps.

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 no wasted wording, which is well structured. It is under-specified rather than padded, so it loses points only for what it fails to say rather than for verbosity.

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 full-replacement mutation with a deeply nested payload and no output schema, the description is too thin: it does not warn that prior configuration is discarded, does not mention the GEOLOCATION/CIDR all-details constraint, and gives no hint about the API's rejection conditions. All of that is buried in schema descriptions rather than surfaced where an agent selecting the tool would see it.

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 the nested schema documents sid, active/standby resource lists, weighted, geoMapDetailId, plus enums and cross-tool references. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 uses a specific verb and resource ('Update all resources for a specific Global Traffic Manager policy'), and the word 'all' implicitly contrasts with the singular sibling ncloud_gtm_update_policy_resource. It does not name that sibling explicitly, so the differentiation is left for the agent to infer.

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 bulk update versus ncloud_gtm_update_policy_resource (single resource) or ncloud_gtm_get_policy_resources (read the current state first). Prerequisite ordering and the requirement to read existing groups before overwriting are unstated in the description text.

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