Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_gtm_update_policy

Idempotent

Update an existing Global Traffic Manager policy to adjust load-balancing type, health checks, resource groups, and geo/CIDR mapping for traffic routing.

Instructions

Update an existing 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>"
    },
    "name": "ncloud_gtm_update_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPolicy name
lbTypeNoLoad balancing type: ROUND_ROBIN | WEIGHTED_ROUND_ROBIN | GEOLOCATION | CIDR (same values as ncloud_gtm_get_lb_types). The legacy aliases GEO and WEIGHTED_RR are converted to GEOLOCATION and WEIGHTED_ROUND_ROBIN.
monitorNoHealth check monitor configuration
geoMapIdNoGeo/CIDR Map ID (required when lbType is GEOLOCATION or CIDR)
policyIdYesPolicy ID to update
resourceGroupsNoResource 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. Changed8 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / monitor / 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. Changed15 schema fields changedv2.2.1
    • changedInput schema / properties / geoMapId / description
      Previous value: -"Geo/CIDR Map ID"New value: +"Geo/CIDR Map ID (required when lbType is GEOLOCATION or CIDR)"
    • changedInput schema / properties / lbType / description
      Previous value: -"Load balancing type"New value: +"Load balancing type: ROUND_ROBIN | WEIGHTED_ROUND_ROBIN | GEOLOCATION | CIDR (same values as ncloud_gtm_get_lb_types). The legacy aliases GEO and WEIGHTED_RR are converted to GEOLOCATION and WEIGHTED_ROUND_ROBIN."
    • changedInput schema / properties / lbType / enum
      Previous value: -[
      -  "ROUND_ROBIN",
      -  "WEIGHTED_RR",
      -  "FAILOVER",
      -  "GEO",
      -  "CIDR"
      -]New value: +[
      +  "ROUND_ROBIN",
      +  "WEIGHTED_ROUND_ROBIN",
      +  "GEOLOCATION",
      +  "CIDR"
      +]
    • changedInput schema / properties / resourceGroups / description
      Previous value: -"Resource groups"New value: +"Resource 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."
    • changedInput schema / properties / resourceGroups / items / properties / active / items / properties / content / description
      Previous value: -"Resource address"New value: +"Resource value: an IP address for PUBLIC_IP, a domain name for EXTERNAL_DOMAIN"
    • changedInput schema / properties / resourceGroups / items / properties / active / items / properties / healthCheckRegionId / description
      Previous value: -"Health check region ID"New value: +"Health check region ID (see ncloud_gtm_get_health_check_regions)"
    • changedInput schema / properties / resourceGroups / items / properties / active / items / properties / type / description
      Previous value: -"Resource type (PUBLIC_IP or CNAME)"New 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": {
      -    "description": "Resource address",
      -    "type": "string"
      -  },
      -  "healthCheckRegionId": {
      -    "description": "Health check region ID",
      -    "type": "number"
      -  },
      -  "type": {
      -    "description": "Resource type (PUBLIC_IP or CNAME)",
      -    "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 (WEIGHTED_RR only)"New value: +"Weight (only when lbType is WEIGHTED_ROUND_ROBIN)"
  3. First observedv1.10.1

TDQS

C2.8/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 covered by structured data rather than the description. The description adds nothing beyond annotations: it does not say whether this is a partial patch or a full replace, what happens to omitted fields, or whether all resource groups must be resupplied. For a mutation of a deeply nested object this is a real gap, though it does not contradict the annotations.

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 padding or redundancy. However, it is clipped to the point of being undersized for a mutation tool with six parameters and nested resource-group structures, leaving no room for the update-semantics information the agent needs.

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 complex nested mutation with no output schema, and the description provides only the one-line purpose. It omits whether the update replaces or merges existing configuration, which fields are mandatory for each lbType at the policy level, and what a successful response returns, leaving the schema to carry nearly all meaning.

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 schema itself carries rich conditional guidance (geoMapId required for GEOLOCATION/CIDR, the 'need all detail id' constraint, ETC detail id -1). The description adds no parameter meaning at all, 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 names a specific verb and resource ('Update an existing ... Global Traffic Manager policy'), so the agent knows exactly what is mutated. It stops short of differentiating this top-level policy update from the closely named siblings such as ncloud_gtm_update_policy_health_check and ncloud_gtm_update_policy_resource, which an agent could easily confuse it with.

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 statement of when this tool should be chosen over the sibling partial-update tools, nor any prerequisite or exclusion guidance. The agent must infer from the name alone that this is the full-policy mutation rather than the targeted health-check or resource updates.

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