mcp_huaweicloud_gaussdb
v0.1.1Huawei Cloud GaussDB management MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_backups
List backups for a GaussDB instance. Scenario: verify recovery points before maintenance, resize, expansion, or parameter changes. Args: instance_id: Target GaussDB instance ID. backup_type: Optional backup type filter. begin_time: Optional ISO 8601 range start accepted by the GaussDB API. end_time: Optional ISO 8601 range end accepted by the GaussDB API. limit: Page size, clamped to 1-100; default 20. marker: Offset marker returned by the previous call. Returns: A paginated backup list with status, type, size and timestamp…
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
backup_type | ||
begin_time | ||
end_time | ||
limit | integer | |
marker |
create_manual_backup
Create a manual backup for a GaussDB instance. Scenario: establish a named recovery point before an approved change. Backup creation is asynchronous. Args: instance_id: Target GaussDB instance ID. name: Unique 4-64 character name beginning with a letter. description: Optional description, up to the cloud API limit. confirm: Set true when a guardrail rule requests explicit confirmation. Returns: Backup or job identifiers and verification guidance.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
name * | string | |
confirm | boolean | |
description |
get_backup_policy
Get the automatic backup policy of a GaussDB instance. Scenario: inspect retention and the UTC schedule before changing backup policy. Args: instance_id: Target GaussDB instance ID. Returns: The effective automatic backup policy.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string |
configure_backup_policy
Configure the automatic backup retention and UTC schedule. Scenario: change automatic backup timing after get_backup_policy confirms the current policy. Args: instance_id: Target GaussDB instance ID. keep_days: Retention in days, 1-732. start_time: One-hour UTC window in HH:00-HH:00 format, for example 21:00-22:00. period: Comma-separated weekday numbers 1-7. differential_period: Optional differential-backup interval in minutes. Allowed values are 15, 30, 60, 180, 360, 720, and 1440. If omitted, the server reads the current backup…
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
keep_days * | integer | |
period * | string | |
start_time * | string | |
confirm | boolean | |
differential_period |
pay_order
Pay one pending GaussDB order from the account balance after explicit cost approval. Scenario: get_order returned an unpaid yearly/monthly order. Obtain approval for its exact ID, amount and currency. This submits a real payment; confirm is not proof of human approval. Args: order_id: Exact GaussDB order ID from create_instance/get_order, at most 64 characters. expected_amount: Approved decimal amount as a string, e.g. '1248.00'. Must match both official_amount and amount_after_discount; discounted orders are rejected to avoid losing a disc…
| Parameter | Type | Description |
|---|---|---|
currency * | string | |
expected_amount * | string | |
order_id * | string | |
confirm | boolean |
get_order
Inspect a GaussDB yearly/monthly order, amounts and paginated order lines. Scenario: create_instance returned order_id instead of a job_id. Check the order before payment or cancellation; an unpaid order does not mean the instance has been provisioned. Args: order_id: Exact order ID returned by create_instance, e.g. CS202610300000EXAMPLE. Accepts 1-64 letters, digits, underscores or hyphens; only GaussDB orders are allowed. limit: Order lines per page, default 20, clamped to 1-100. marker: Offset returned by the previous get_order call; omit fo…
| Parameter | Type | Description |
|---|---|---|
order_id * | string | |
limit | integer | |
marker |
cancel_order
Cancel one unpaid GaussDB order after rechecking its cloud state and product scope. Scenario: abandon an unneeded pending-payment order from create_instance. Run get_order first and obtain authorization for this exact order; cancellation cannot be undone. Args: order_id: Exact GaussDB order ID from create_instance or get_order, at most 64 characters. confirm: Must be true after approval; false performs no cancellation. Returns: Submission and verification flags plus the current order state. Requires BSS order read/update permissions. Paid, mix…
| Parameter | Type | Description |
|---|---|---|
order_id * | string | |
confirm | boolean |
list_instances
List GaussDB instances in the configured region. Scenario: discover instances before inspecting, backing up, resizing, expanding, or restarting one. Args: name: Optional exact instance-name filter. limit: Page size, clamped to 1-100; default 20. marker: Offset marker returned by the previous call. Returns: A paginated, field-whitelisted instance list.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
marker | ||
name |
get_instance
Get one GaussDB instance and its management-relevant details. Scenario: inspect status, topology, network, storage, flavor and tags before a change. Args: instance_id: GaussDB instance ID obtained from list_instances. Returns: The field-whitelisted instance object, node summaries and node_ids for analyze_slow_sql, or an MCP_NOT_FOUND envelope.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string |
list_flavors
List available GaussDB specifications before creation or resize. Scenario: find a valid spec_code and check availability-zone sales status. Args: version: Optional database engine version filter. ha_mode: enterprise (distributed independent), combined (distributed basic mixed), or centralization_standard. discover_create_options derives combined automatically for distributed basic instances. limit: Page size, clamped to 1-100; default 20. marker: Offset marker returned by the previous call. Returns: A paginated list…
| Parameter | Type | Description |
|---|---|---|
ha_mode | ||
limit | integer | |
marker | ||
version |
discover_create_options
Discover every cloud-side prerequisite for creating a GaussDB instance. Scenario: prepare a valid create_instance call without asking the user to manually find project, domain, engine, flavor, availability-zone, VPC, subnet, or security-group IDs. Args: ha_mode: centralization_standard for centralized creation, or enterprise for distributed creation. For product_type=basic, distributed availability is queried from the combined flavor family automatically. deployment_mode: For centralized instances, single, triset (1 primary + 2 standby),…
| Parameter | Type | Description |
|---|---|---|
deployment_mode | ||
ha_mode | string | |
limit | integer | |
product_type | string | |
version |
create_instance
Create a Huawei Cloud GaussDB instance. Scenario: provision one instance after selecting a flavor and preparing VPC resources. Creation can incur charges and runs asynchronously. Args: configuration: Creation settings. Required keys are name, datastore, ha, password, flavor_ref, volume, availability_zone, vpc_id, subnet_id and security_group_id. Optional keys follow CreateDatabaseInstanceRequestBody, including backup_strategy, charge_info, replica_num, sharding_num, coordinator_num and enterprise_project_id. deployment_solut…
| Parameter | Type | Description |
|---|---|---|
configuration * | object | |
confirm | boolean |
delete_instance
Permanently delete a Huawei Cloud GaussDB instance. Scenario: remove a reviewed instance that is no longer needed and stop its ongoing charges. The operation is irreversible and always requires confirm=true. The service re-reads the cloud resource and applies protected-ID, name, and tag rules before deletion. Args: instance_id: Exact GaussDB instance ID obtained from list_instances or get_instance. confirm: Must be true after reviewing the instance identity and deletion impact. Returns: The deleted instance identity and asynchronous job or order i…
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
confirm | boolean |
resize_instance
Change the vCPU and memory specification of a GaussDB instance. Scenario: resize an instance after list_flavors returns the target flavor_ref. This may affect connections and billing. Args: instance_id: Target GaussDB instance ID. flavor_ref: Target spec_code from list_flavors. is_auto_pay: Must be false; approve the returned order separately through pay_order. confirm: Set true when a guardrail rule requests explicit confirmation. Returns: The asynchronous job or order identifier and tracking guidance.
| Parameter | Type | Description |
|---|---|---|
flavor_ref * | string | |
instance_id * | string | |
confirm | boolean | |
is_auto_pay | boolean |
expand_instance
Expand GaussDB storage, coordinator nodes, or DN shards. Scenario: increase one capacity dimension after checking instance status and GaussDB expansion constraints. Exactly one expansion input must be supplied. Args: instance_id: Target GaussDB instance ID. new_volume_size_gb: Target total storage size in GiB for storage expansion. coordinator_az_codes: One AZ code per new coordinator node for CN expansion. dn_shard_count: Number of new DN shards for shard expansion. is_auto_pay: Must be false; approve the returned order separately through…
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
confirm | boolean | |
coordinator_az_codes | ||
dn_shard_count | ||
is_auto_pay | boolean | |
new_volume_size_gb |
restart_instance
Restart a GaussDB instance. Scenario: apply a restart-required parameter or recover an instance during an approved maintenance window. Existing connections may be interrupted. Args: instance_id: Target GaussDB instance ID; inspect it with get_instance first. confirm: Set true when a guardrail rule requests explicit confirmation. Returns: The target instance and asynchronous job identifier.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
confirm | boolean |
get_instance_parameters
List the current parameter configuration of a GaussDB instance. Scenario: inspect values, valid ranges, read-only status, and restart requirements before tuning. Args: instance_id: Target GaussDB instance ID. name: Optional case-insensitive parameter-name substring. modifiable_only: Return only parameters whose v3.2 live metadata has readonly=false. limit: Page size, clamped to 1-100; default 20. marker: Offset marker returned by the previous call. Returns: A paginated parameter list including readonly, explicit modifiability s…
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
limit | integer | |
marker | ||
modifiable_only | boolean | |
name |
update_instance_parameters
Update up to 100 GaussDB instance parameters. Scenario: apply reviewed parameter values. The tool always refreshes the live parameter metadata, rejects unknown and read-only names, validates clear type/range rules, and identifies restart or sensitive changes before writing. Args: instance_id: Target GaussDB instance ID. values: Mapping of parameter names to string values; 1-100 entries. The exact MCP argument object is {"instance_id": "...", "values": {"parameter_name": "new_value"}}. confirm: Required for parameters that need restart or ar…
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
values * | object | |
confirm | boolean |
list_monitoring_metrics
Discover one live CES metric level: instance, node, or component. Scenario: find CPU, memory, disk, session or transaction metrics actually reported by the selected instance, including centralized/distributed node and component dimensions. Args: instance_id: GaussDB instance ID obtained from list_instances. metric_name: Optional exact metric ID, e.g. rds001_cpu_util; discover availability first. node_id: Omit for instance-level metrics only. For CPU/memory, pass an actual node ID from get_instance. CES does not expand partial dimensions or wild…
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
component_id | ||
limit | integer | |
marker | ||
metric_name | ||
node_id |
query_monitoring_metrics
Batch-query GaussDB monitoring time series and summaries through CES. Scenario: investigate CPU, memory, storage, connection or transaction trends. First discover current metrics with list_monitoring_metrics; never treat missing samples as zero. Args: instance_id: Target instance ID; all metric dimensions must belong to this instance. metrics: 1-20 objects from list_monitoring_metrics.items, including metric_name and complete ordered dimensions; namespace/unit may be retained from discovery. start_time: Epoch milliseconds or ISO 8601 with a tim…
| Parameter | Type | Description |
|---|---|---|
end_time * | ||
instance_id * | string | |
metrics * | array | |
start_time * | ||
aggregation | string | |
max_points | integer | |
period | integer |
analyze_slow_sql
Query and rank GaussDB slow SQL records by average execution time. Scenario: investigate performance degradation across selected nodes and return a compact ranked view. SQL text is cloud-provided data and may contain business-sensitive information. Args: instance_id: Target GaussDB instance ID. node_ids: One to 100 node IDs from get_instance.node_ids. start_time: Query start as Unix epoch milliseconds or timezone-aware ISO 8601, for example 1761046200000, 2026-10-21T15:30:00+08:00, or 2026-10-21T07:30:00Z. end_time: Query end in the sam…
| Parameter | Type | Description |
|---|---|---|
end_time * | ||
instance_id * | string | |
node_ids * | array | |
start_time * | ||
limit | integer | |
threshold | integer |
get_job
Get the status of an asynchronous GaussDB management job. Scenario: track instance creation, backup, resize, expansion, restart, or parameter operations. Args: job_id: Job ID returned by a GaussDB write tool. Returns: Job status, progress, timestamps, instance reference and failure reason.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
wait_job
Wait for a GaussDB management job to reach a terminal status. Scenario: track a long-running create, backup, resize, expansion, restart, parameter, or switchover job without requiring the Agent to issue many individual get_job calls. Args: job_id: Job ID returned by a GaussDB write tool. timeout_seconds: Maximum local wait, from 1 to 1800 seconds; default 300. poll_interval_seconds: Poll interval, from 1 to 60 seconds; default 10. Returns: Latest job state, terminal/success flags, timeout flag, poll count and elapsed time.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
poll_interval_seconds | integer | |
timeout_seconds | integer |
list_openapi_operations
List public GaussDB OpenAPI operations available through the installed Huawei SDK. Scenario: discover an API capability that does not have a dedicated scenario tool. Args: query: Optional snake_case operation-name or Chinese/English description substring. category: Optional category returned by this tool, such as backup_restore. risk: Optional READ, WRITE, or DANGEROUS filter. limit: Page size, clamped to 1-100. marker: Offset marker from the previous response. Returns: Paginated snake_case operation names, request models, descript…
| Parameter | Type | Description |
|---|---|---|
category | ||
limit | integer | |
marker | ||
query | ||
risk |
describe_openapi_operation
Describe the exact nested request structure for one public GaussDB OpenAPI operation. Scenario: inspect field names and types before using a generic OpenAPI invocation tool. Args: operation: Exact snake_case SDK operation value returned by list_openapi_operations. Returns: Operation metadata and a recursive JSON-schema-like SDK request model.
| Parameter | Type | Description |
|---|---|---|
operation * | string |
invoke_read_openapi
Invoke a catalog-classified READ GaussDB OpenAPI operation. Scenario: query any supported public GaussDB API after describing its request model. Args: operation: Exact snake_case READ operation value returned by list_openapi_operations. request: Object containing the fields described by describe_openapi_operation. The exact MCP argument object is {"operation": "...", "request": {...}}. Returns: The operation name, risk classification, and recursively converted SDK response.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
request * | object |
invoke_write_openapi
Invoke a catalog-classified WRITE GaussDB OpenAPI operation. Scenario: execute a reversible or additive operation without a dedicated scenario tool. Args: operation: Exact snake_case WRITE operation value returned by list_openapi_operations. request: Object containing the fields described by describe_openapi_operation. The exact MCP argument object is {"operation": "...", "request": {...}}. Operations marked direct_invoke_supported=false must use their dedicated safer tool. confirm: Set true when a configured guardrail rule requests con…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
request * | object | |
confirm | boolean |
invoke_dangerous_openapi
Invoke a destructive, disruptive, or billing-sensitive GaussDB OpenAPI operation. Scenario: run a reviewed dangerous operation when no dedicated scenario tool exists. The global guardrail always requires confirm=true and applies protected-resource rules. Args: operation: Exact snake_case DANGEROUS operation value from list_openapi_operations. request: Object containing the fields described by describe_openapi_operation. The exact MCP argument object is {"operation": "...", "request": {...}}. confirm: Must be true after reviewing resource identi…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
request * | object | |
confirm | boolean |