Skip to main content
Glama
sjk4425

ncloud-mcp-server

by sjk4425

ncloud_serverless_batch_create_users

Batch create 1-10 database users atomically on a cluster, with dry-run preview and per-user validation. Existing users cause the entire batch to fail, ensuring no partial changes.

Instructions

Create 1-10 DB users atomically (POST /mysql/v1/clusters/{clusterName}/users/batch-create → 202 Operation). Validation failures come back as 400 partialFailure with per-index failures; an existing name fails the whole batch (409). Use dryRun=true to preview (passwords masked).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usersYesUsers to create (1-10)
dryRunNo
clusterNameYesCluster name (3-30 chars, lowercase letters/digits/'-', no leading or trailing '-'; immutable after creation)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.16.0

TDQS

A4.6/5.0
Behavior5/5

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

The description adds substantial behavior beyond the single destructiveHint annotation: atomicity, 202 async operation, 400 partialFailure with per-index errors, 409 whole-batch failure on existing names, and masked passwords in dry-run. This is exactly the kind of failure-mode and side-effect context an agent needs.

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 dense sentences deliver the essential facts in order: what it does, how failures behave, and how to preview safely. No filler or repetition of schema details that are already documented.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a create operation with no output schema, the description covers the essential return status (202), the main error modes, and the safety preview. It does not mention how to follow up on the async operation, but the endpoint reference and 'Operation' wording are likely sufficient for an agent to infer next steps.

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?

The schema covers clusterName and users well, and the description adds meaning to dryRun ('preview, passwords masked') that the schema lacks. It also clarifies the batch size range in prose. A minor gap is that dryRun's exact relationship to validation failures is implied rather than explicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb-resource pair ('Create 1-10 DB users') and names the exact endpoint, which clearly distinguishes it from single-user or delete-user sibling tools. The batch scope and atomicity are front-loaded with no ambiguity.

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

Usage Guidelines4/5

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

The description gives clear invocation context: batch creation of 1-10 users, atomic behavior, validation errors, and a dry-run preview mode. It does not explicitly name alternatives or say 'use single create_user for one user,' but the batch purpose and count range make the intended use clear.

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