Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_update_metrics_group

Idempotent

Update an existing Cloud Insight metrics group's name, description, and metric thresholds to keep monitoring rules aligned with current service requirements.

Instructions

Update an existing Cloud Insight rule template (metrics group).

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": {
      "metricsGroupId": "<metricsGroupId>",
      "prodKey": "<prodKey>",
      "groupName": "<groupName>",
      "metricsGroupItems": "<metricsGroupItems>"
    },
    "name": "ncloud_update_metrics_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
prodKeyYesProduct key (cw_key) for the target service
prodTypeNoProduct type: system (Ncloud product) or custom (Custom Schema)
groupDescNoDescription (<= 300 chars)
groupNameYesName of the metrics group (1-100 chars)
metricsGroupIdYesMetrics group ID to update
temporaryGroupNotrue: create the Event Rule without creating a metrics group (default false)
metricsGroupItemsYesMetric items (at least one)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / metricsGroupItems / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / metricsGroupItems / items / properties / dimensions / items / additionalProperties
      Removed value: -false
  2. Changed8 schema fields changedv2.0.1
    • addedInput schema / properties / groupDesc
      Added value: +{
      +  "description": "Description (<= 300 chars)",
      +  "type": "string"
      +}
    • changedInput schema / properties / groupName / description
      Previous value: -"New name for the metrics group"New value: +"Name of the metrics group (1-100 chars)"
    • removedInput schema / properties / metricList
      Removed value: -{
      -  "description": "Updated metric configurations",
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "aggregation": {
      -        "description": "Aggregation type",
      -        "enum": [
      -          "AVG",
      -          "MIN",
      -          "MAX",
      -          "SUM",
      -          "COUNT"
      -        ],
      -        "type": "string"
      -      },
      -      "condition": {
      -        "description": "Threshold condition",
      -        "enum": [
      -          "GT",
      -          "GTE",
      -          "LT",
      -          "LTE",
      -          "EQ"
      -        ],
      -        "type": "string"
      -      },
      -      "duration": {
      -        "description": "Duration in minutes",
      -        "type": "number"
      -      },
      -      "eventLevel": {
      -        "description": "Event severity level",
      -        "enum": [
      -          "CRITICAL",
      -          "WARNING",
      -          "INFO"
      -        ],
      -        "type": "string"
      -      },
      -      "metricGroupItemId": {
      -        "description": "Metric item ID",
      -        "type": "string"
      -      },
      -      "threshold": {
      -        "description": "Threshold value",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "metricGroupItemId",
      -      "condition",
      -      "threshold",
      -      "duration",
      -      "eventLevel"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / metricsGroupItems
      Added value: +{
      +  "description": "Metric items (at least one)",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "calculation": {
      +        "description": "Aggregation of the metric",
      +        "enum": [
      +          "COUNT",
      +          "SUM",
      +          "MAX",
      +          "MIN",
      +          "AVG"
      +        ],
      +        "type": "string"
      +      },
      +      "condition": {
      +        "description": "Threshold operator (LT, LE, EQ, GE, GT)",
      +        "enum": [
      +          "LT",
      +          "LE",
      +          "EQ",
      +          "GE",
      +          "GT"
      +        ],
      +        "type": "string"
      +      },
      +      "desc": {
      +        "description": "Metric description",
      +        "type": "string"
      +      },
      +      "dimensions": {
      +        "description": "Dimension filters, e.g. [{dim:\"type\", val:\"svr\"}]",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "dim": {
      +              "description": "Dimension name defined in the schema (e.g. \"type\")",
      +              "type": "string"
      +            },
      +            "val": {
      +              "description": "Dimension value (e.g. \"svr\")",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "dim",
      +            "val"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "duration": {
      +        "description": "Duration (>= 1)",
      +        "type": "number"
      +      },
      +      "eventLevel": {
      +        "description": "Event level",
      +        "enum": [
      +          "INFO",
      +          "WARNING",
      +          "CRITICAL"
      +        ],
      +        "type": "string"
      +      },
      +      "metric": {
      +        "description": "Metric name (e.g. avg_cpu_used_rto)",
      +        "type": "string"
      +      },
      +      "metricGroupItemId": {
      +        "description": "Metric group item ID (when updating an existing item)",
      +        "type": "string"
      +      },
      +      "threshold": {
      +        "description": "Threshold value",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "metric",
      +      "eventLevel",
      +      "condition",
      +      "calculation",
      +      "duration",
      +      "threshold"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / prodKey
      Added value: +{
      +  "description": "Product key (cw_key) for the target service",
      +  "type": "string"
      +}
    • addedInput schema / properties / prodType
      Added value: +{
      +  "description": "Product type: system (Ncloud product) or custom (Custom Schema)",
      +  "enum": [
      +    "system",
      +    "custom"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / temporaryGroup
      Added value: +{
      +  "default": false,
      +  "description": "true: create the Event Rule without creating a metrics group (default false)",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "metricsGroupId"
      -]New value: +[
      +  "metricsGroupId",
      +  "prodKey",
      +  "groupName",
      +  "metricsGroupItems"
      +]
  3. First observedv1.10.1

TDQS

B3.2/5.0
Behavior3/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, and the description adds essentially nothing beyond that. Notably it omits the consequential behavior implied by the required metricsGroupItems array (full replacement of the item set) and the surprising temporaryGroup mode that skips metrics-group creation.

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 zero filler; nothing is redundant. Its brevity is a virtue structurally, even though the content could carry more.

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 7-parameter mutation with no output schema, the description leans entirely on a rich schema and annotations. It is not wrong or incomplete enough to mislead, but it leaves the agent to discover replacement semantics and temporaryGroup behavior from the schema alone.

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 parameter, including the nested item fields and enums, is documented in the schema itself. The description adds no additional parameter meaning, 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?

States a specific verb and resource ("Update an existing Cloud Insight rule template (metrics group)"), and parenthetically maps the Ncloud term "rule template" to "metrics group", which helps separate it from ncloud_update_rule_group and ncloud_update_monitor_group. It does not explicitly name which sibling to use for create/delete, but the verb+resource is unambiguous.

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?

No when-to-use guidance at all: nothing says whether this replaces or merges metric items, whether it should follow ncloud_get_metrics_group, or how it differs from ncloud_create_metrics_group when the ID is unknown. The only routing signal is the word "existing".

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