Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_query_widget_preview

Read-only

Queries Cloud Insight widget preview chart data by specifying metrics, time range, aggregation, and filters to validate dashboard visualizations before saving.

Instructions

Query widget preview chart data from Cloud Insight by specifying metrics directly.

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": {
      "periodStart": "<periodStart>",
      "periodEnd": "<periodEnd>",
      "metricsInfo": "<metricsInfo>"
    },
    "name": "ncloud_query_widget_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodEndYesEnd time in Unix epoch milliseconds
metricsInfoYesMetric definitions to preview (WidgetMetricInfoDto[])
periodStartYesStart time in Unix epoch milliseconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / metricsInfo / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / metricsInfo / items / properties / dimensions / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed11 schema fields changedv2.0.1
    • removedInput schema / properties / aggregation
      Removed value: -{
      -  "description": "Aggregation type",
      -  "enum": [
      -    "AVG",
      -    "MIN",
      -    "MAX",
      -    "SUM",
      -    "COUNT"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / dimensions
      Removed value: -{
      -  "additionalProperties": {
      -    "type": "string"
      -  },
      -  "description": "Dimension filters as key-value pairs",
      -  "type": "object"
      -}
    • removedInput schema / properties / interval
      Removed value: -{
      -  "description": "Aggregation interval",
      -  "enum": [
      -    "Min1",
      -    "Min5",
      -    "Min30",
      -    "Hour2",
      -    "Day1"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / metric
      Removed value: -{
      -  "description": "Metric name to query",
      -  "type": "string"
      -}
    • addedInput schema / properties / metricsInfo
      Added value: +{
      +  "description": "Metric definitions to preview (WidgetMetricInfoDto[])",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "color": {
      +        "description": "Chart color (e.g., #1f77b4)",
      +        "type": "string"
      +      },
      +      "dimensions": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Dimension filters as key-value pairs",
      +        "type": "object"
      +      },
      +      "displayName": {
      +        "description": "Metric display name on the widget",
      +        "type": "string"
      +      },
      +      "metric": {
      +        "description": "Metric name to query",
      +        "type": "string"
      +      },
      +      "period": {
      +        "description": "Aggregation interval",
      +        "enum": [
      +          "Min1",
      +          "Min5",
      +          "Min30",
      +          "Hour2",
      +          "Day1"
      +        ],
      +        "type": "string"
      +      },
      +      "prodKey": {
      +        "description": "Product key (cw_key)",
      +        "type": "string"
      +      },
      +      "productName": {
      +        "description": "Product name (e.g., \"System/Server(VPC)\")",
      +        "type": "string"
      +      },
      +      "resourceId": {
      +        "description": "Resource ID",
      +        "type": "string"
      +      },
      +      "resourceName": {
      +        "description": "Resource name",
      +        "type": "string"
      +      },
      +      "statistic": {
      +        "description": "Aggregation function",
      +        "enum": [
      +          "COUNT",
      +          "SUM",
      +          "MAX",
      +          "MIN",
      +          "AVG"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "prodKey",
      +      "metric",
      +      "statistic",
      +      "period"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / periodEnd
      Added value: +{
      +  "description": "End time in Unix epoch milliseconds",
      +  "type": "number"
      +}
    • addedInput schema / properties / periodStart
      Added value: +{
      +  "description": "Start time in Unix epoch milliseconds",
      +  "type": "number"
      +}
    • removedInput schema / properties / prodKey
      Removed value: -{
      -  "description": "Product key (cw_key)",
      -  "type": "string"
      -}
    • removedInput schema / properties / timeEnd
      Removed value: -{
      -  "description": "End time in Unix epoch milliseconds",
      -  "type": "number"
      -}
    • removedInput schema / properties / timeStart
      Removed value: -{
      -  "description": "Start time in Unix epoch milliseconds",
      -  "type": "number"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "prodKey",
      -  "metric",
      -  "timeStart",
      -  "timeEnd"
      -]New value: +[
      +  "periodStart",
      +  "periodEnd",
      +  "metricsInfo"
      +]
  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?

The readOnlyHint annotation already establishes that this is a safe read, so the description should add depth; it adds almost none beyond 'preview' and 'by specifying metrics directly'. It does not say what the preview returns (chart image, series values, metadata), whether there is a point cap or rate limit, or how time ranges are constrained.

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 filler; the verb, source system, and input style are ordered well. It is not padded, though it is arguably too short for the tool's behavioral surface.

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?

With three required parameters fully documented in the schema and a read-only annotation, the call mechanics are covered. What remains missing is the output shape of a 'preview' and any limits on the metrics array or time window, which matters for a tool whose purpose is to render something back.

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%, with per-field descriptions, enums for period/statistic, and nested metric fields documented, so the baseline is a 3. The phrase 'specifying metrics directly' signals that metrics are passed as explicit definitions rather than instance lookups, but nothing beyond the schema is added.

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 ('Query') and resource ('widget preview chart data from Cloud Insight'), plus the distinctive input style ('specifying metrics directly'). It is reasonably distinguishable from data-query siblings, though it never names which sibling to use instead.

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 or when-not-to-use guidance, no prerequisites, and no comparison to related tools such as ncloud_query_monitoring_data or ncloud_get_dashboard_widget_image. The word 'preview' hints at a pre-save/render context but that is never stated.

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