Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_create_custom_schema

Create a user-defined Cloud Insight schema for custom metrics with field definitions and exactly one identifying dimension, enabling custom resource monitoring and event rule targeting.

Instructions

Create a user-defined custom schema in Cloud Insight for custom metrics. prodName must start with "Custom/" (e.g. "Custom/MyProduct"); include exactly one dimension with idDimension=true.

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": {
      "prodName": "<prodName>",
      "fields": "<fields>"
    },
    "name": "ncloud_create_custom_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesSchema field definitions (FieldDto[])
prodNameYesSchema (product) name, must start with "Custom/" (e.g. "Custom/MyProduct")
useCustomResourceNoWhether to use custom resource (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / fields / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fields / items / properties / aggregations / propertyNames / type
      Added value: +"string"
  2. Changed18 schema fields changedv2.0.1
    • changedInput schema / properties / fields / description
      Previous value: -"Schema field definitions"New value: +"Schema field definitions (FieldDto[])"
    • addedInput schema / properties / fields / items / properties / aggregations
      Added value: +{
      +  "additionalProperties": {
      +    "items": {
      +      "enum": [
      +        "COUNT",
      +        "SUM",
      +        "MAX",
      +        "MIN",
      +        "AVG"
      +      ],
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "description": "Metric fields only: aggregation functions per interval, e.g. {\"Min1\": [\"AVG\"], \"Min5\": [\"AVG\",\"MAX\"]}",
      +  "propertyNames": {
      +    "enum": [
      +      "Min1",
      +      "Min5",
      +      "Min30",
      +      "Hour2",
      +      "Day1"
      +    ]
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / fields / items / properties / counter
      Added value: +{
      +  "description": "Counter metric (default false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / fields / items / properties / dataType
      Added value: +{
      +  "description": "Data type (dimension fields must be STRING)",
      +  "enum": [
      +    "STRING",
      +    "INTEGER",
      +    "LONG",
      +    "FLOAT"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / fields / items / properties / desc
      Added value: +{
      +  "description": "Field description",
      +  "type": "string"
      +}
    • changedInput schema / properties / fields / items / properties / dimension / description
      Previous value: -"Whether this field is a dimension"New value: +"true if this field is a dimension (default false)"
    • removedInput schema / properties / fields / items / properties / fieldName
      Removed value: -{
      -  "description": "Field name",
      -  "type": "string"
      -}
    • removedInput schema / properties / fields / items / properties / fieldType
      Removed value: -{
      -  "description": "Field data type",
      -  "enum": [
      -    "STRING",
      -    "INTEGER",
      -    "LONG",
      -    "FLOAT"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / fields / items / properties / idDimension
      Added value: +{
      +  "description": "Dimension used to identify resources in event rules (exactly one dimension must be the idDimension)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / fields / items / properties / metric
      Added value: +{
      +  "description": "true if this field is a metric (default false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / fields / items / properties / metricType
      Added value: +{
      +  "description": "Metric type",
      +  "enum": [
      +    "BASIC",
      +    "EXTENDED",
      +    "CUSTOM"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / fields / items / properties / name
      Added value: +{
      +  "description": "Field name",
      +  "type": "string"
      +}
    • changedInput schema / properties / fields / items / required
      Previous value: -[
      -  "fieldName",
      -  "fieldType"
      -]New value: +[
      +  "name",
      +  "dataType"
      +]
    • addedInput schema / properties / fields / minItems
      Added value: +1
    • changedInput schema / properties / prodName / description
      Previous value: -"Product name(s) for the custom schema"New value: +"Schema (product) name, must start with \"Custom/\" (e.g. \"Custom/MyProduct\")"
    • removedInput schema / properties / prodName / items
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / prodName / pattern
      Added value: +"^Custom\\/"
    • changedInput schema / properties / prodName / type
      Previous value: -"array"New value: +"string"
  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?

The annotations are minimal (destructiveHint=false), so the description has to carry most of the behavioral explanation. It usefully highlights two hard validation rules: the prodName must start with 'Custom/', and exactly one field must set idDimension=true; if an agent violates either rule, the request will fail. However, it does not say whether creation is idempotent, what permissions are needed, or whether the created schema is returned, which are significant gaps for a creation tool.

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?

The description is two compact sentences with no filler, and the critical prefix constraint is front-loaded. The semicolon-joined clause is slightly dense but remains readable.

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 schema-creation tool with no output schema and only a weak destructiveHint annotation, the description covers the identity and key validation rules but not the response shape or side effects. It is adequate but leaves an agent guessing about what comes back and whether the call is reversible.

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?

The schema has 100% description coverage and already documents the 'Custom/' pattern and the exactly-one-idDimension rule. The description repeats these constraints for emphasis but adds no new meaning, such as details about field ordering or metric-aggregation requirements, beyond what the schema explicitly states. When schema coverage is this high, a baseline of 3 is appropriate.

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: 'Create a user-defined custom schema in Cloud Insight for custom metrics.' That is more precise than the bare name, because it ties the schema to custom metrics in Cloud Insight. It does not explicitly contrast with siblings such as ncloud_create_custom_resource, but the resource type (schema vs. resource) is distinct enough that an agent can differentiate them.

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?

The description implies that the tool is used when defining custom metric schemas, but it gives no explicit when-to-use or when-not-to-use guidance and no alternatives. It states creation-time validation rules rather than telling the agent the conditions under which this tool should be selected.

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