Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_create_mongodb_instance

Provisions a Cloud DB for MongoDB instance with your chosen cluster type, VPC, subnet, and admin credentials. Use dryRun to preview the configuration before creating.

Instructions

Create a new Cloud DB for MongoDB instance. Backups are always on (only the retention period and time can be set). Use dryRun=true to preview without creating.

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": {
      "cloudMongoDbServiceName": "<cloudMongoDbServiceName>",
      "cloudMongoDbServerNamePrefix": "<cloudMongoDbServerNamePrefix>",
      "clusterTypeCode": "<clusterTypeCode>",
      "vpcNo": "<vpcNo>",
      "subnetNo": "<subnetNo>",
      "cloudMongoDbUserName": "<cloudMongoDbUserName>",
      "cloudMongoDbUserPassword": "<cloudMongoDbUserPassword>"
    },
    "name": "ncloud_create_mongodb_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
vpcNoYesVPC number
dryRunNoIf true, returns a preview without actually creating the instance
subnetNoYesSubnet number
backupTimeNoBackup start time HH:mm in 15-minute steps (default 02:00)
configPortNoConfig port (default 17017)
memberPortNoMember port (default 17017, range 10000-65535)
mongosPortNoMongos port (default 17017)
shardCountNoNumber of shards (2-3, default 2; SHARDED_CLUSTER only)
compressCodeNoCompression algorithm (SNPP | ZLIB | ZSTD | NONE)
clusterTypeCodeYesCluster type code (STAND_ALONE | SINGLE_REPLICA_SET | SHARDED_CLUSTER)
configProductCodeNoConfig server product code
configServerCountNoNumber of config servers (for sharded cluster)
engineVersionCodeNoMongoDB engine version code. Several versions share one image product code, so set this to pick a version (latest if omitted)
memberProductCodeNoMember server product code
memberServerCountNoNumber of member servers in the replica set
mongosProductCodeNoMongos server product code
mongosServerCountNoNumber of mongos servers (for sharded cluster)
arbiterProductCodeNoArbiter server product code
arbiterServerCountNoNumber of arbiter servers
dataStorageTypeCodeNoData storage type: SSD | HDD (G2 images, default SSD); CB2 for G3 images (public zone only). Available types depend on the zone — check ncloud_get_mongodb_products
cloudMongoDbUserNameYesInitial admin user name
cloudMongoDbServiceNameYesMongoDB service name (3-15 chars: lowercase letters, numbers, hyphen). Unique; becomes the replica set name
cloudMongoDbUserPasswordYesInitial admin user password
backupFileRetentionPeriodNoBackup retention period in days (1-30, default 1)
cloudMongoDbImageProductCodeNoMongoDB image product code
cloudMongoDbServerNamePrefixYesServer name prefix (3-15 chars: lowercase letters, numbers, hyphen; starts with a letter). A random suffix is appended

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed7 schema fields changedv2.2.0
    • changedInput schema / properties / backupFileRetentionPeriod / description
      Previous value: -"Backup retention period in days (1-30)"New value: +"Backup retention period in days (1-30, default 1)"
    • addedInput schema / properties / backupTime
      Added value: +{
      +  "description": "Backup start time HH:mm in 15-minute steps (default 02:00)",
      +  "type": "string"
      +}
    • changedInput schema / properties / cloudMongoDbServerNamePrefix / description
      Previous value: -"Server name prefix"New value: +"Server name prefix (3-15 chars: lowercase letters, numbers, hyphen; starts with a letter). A random suffix is appended"
    • changedInput schema / properties / cloudMongoDbServiceName / description
      Previous value: -"MongoDB service name (3-20 chars, lowercase letters and numbers)"New value: +"MongoDB service name (3-15 chars: lowercase letters, numbers, hyphen). Unique; becomes the replica set name"
    • changedInput schema / properties / dataStorageTypeCode / description
      Previous value: -"Data storage type (SSD | HDD | CB2)"New value: +"Data storage type: SSD | HDD (G2 images, default SSD); CB2 for G3 images (public zone only). Available types depend on the zone — check ncloud_get_mongodb_products"
    • changedInput schema / properties / engineVersionCode / description
      Previous value: -"MongoDB engine version code"New value: +"MongoDB engine version code. Several versions share one image product code, so set this to pick a version (latest if omitted)"
    • changedInput schema / properties / shardCount / description
      Previous value: -"Number of shards (2-3, for SHARDED_CLUSTER)"New value: +"Number of shards (2-3, default 2; SHARDED_CLUSTER only)"
  3. First observedv1.10.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations only declare destructiveHint=false, so the description carries most of the burden. It usefully discloses a non-obvious behavior (backups are always on and cannot be disabled; only retention and time are settable) and the dryRun preview path. It does not say whether provisioning is long-running/asynchronous, what happens on partial failure, or that the service name becomes the replica set name — all material for a create call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with zero filler; the action comes first, then the notable behavioral constraint, then the safe-test instruction. Nothing to cut and nothing buried.

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 26-parameter, 7-required provisioning tool with no output schema, the description is thin: it omits the dependency chain for codes (VPC, subnet, image/member/mongos product codes) and how clusterTypeCode determines which sub-groups of parameters are required versus ignored. The rich schema compensates substantially, making it adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds cross-cutting meaning the schema does not: the dryRun toggle is framed as a preview, and the backup sentence explains that backupTime and backupFileRetentionPeriod are the only tunable backup knobs. It does not clarify cluster-type-dependent parameter groups (shardCount/mongos/config only apply to SHARDED_CLUSTER), but the schema largely covers that.

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 leads with a specific verb and resource ('Create a new Cloud DB for MongoDB instance'), which is unambiguous and clearly distinct from the delete/get MongoDB siblings and the other create_*_instance engines. It stops short of explicitly contrasting alternatives, but the action itself is unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one concrete usage rule — use dryRun=true to preview without creating — which is genuinely helpful for a provisioning call. It offers no guidance on prerequisites (resolving VPC/subnet/product codes via ncloud_get_mongodb_target_vpcs, ncloud_get_mongodb_products) or on choosing cluster type, which is where an agent most needs steering for a 26-parameter tool.

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