mcp-huaweicloud-rc
v0.1.0MCP Server for Huawei Cloud RC (Resource Center)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_query
Execute a ResourceQL query and return the matching resources. Scenario: user wants to query their Huawei Cloud resources using the ResourceQL expression language (e.g. generated by the nl-to-resourceql skill). The tool sends the expression to the RC API and returns the matching resources. Args: expression: a valid ResourceQL expression string, e.g. ``SELECT * FROM resources WHERE provider = 'ecs' LIMIT 10``. limit: max results to return, 1-100 (default 50). Returns: Paginated envelope with the query results. Items keep the fields…
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
limit | integer |
list_providers
List all cloud service providers available in the Resource Center. Scenario: user wants to discover which cloud services and resource types are available for querying in ResourceQL. The tool returns each provider with its display name, category, and resource types. Args: offset: pagination offset (default 0). limit: max providers per page, 1-100; when omitted the API default is used. x_language: response language, e.g. ``zh-cn``. Returns: Paginated envelope with items (provider, display_name, category_display_name, reso…
| Parameter | Type | Description |
|---|---|---|
limit | ||
offset | ||
x_language |
list_all_resources
List all resources across services, with optional filters. Scenario: user wants an inventory of all resources under the account, optionally filtered by region, enterprise project, resource type (provider.type), resource group, name or tags. Args: region_id: filter by region, e.g. ``cn-north-4``. ep_id: filter by enterprise project ID. resource_type: filter by resource type in ``provider.type`` form, e.g. ``ecs.cloudservers``. limit: max resources per page, 1-100; when omitted the API default is used. marker: pagi…
| Parameter | Type | Description |
|---|---|---|
ep_id | ||
group_id | ||
limit | ||
marker | ||
name | ||
region_id | ||
resource_id | ||
resource_type | ||
tags |
show_resource_detail
Show the full detail of a single resource by ID. Scenario: user wants the full metadata (tags, properties, billing mode, provisioning state) of one resource to debug or audit it. Args: resource_id: the resource UUID (run list_all_resources to find it). Returns: Single result with id, name, provider, type, region_id, ep_id, group_id, purchase_model, created, updated, tags, properties.
| Parameter | Type | Description |
|---|---|---|
resource_id * | string |
list_all_tags
List all resource tags under the account. Scenario: user wants to see every tag key (and its values) used across resources, optionally filtered by a tag key prefix, e.g. for building tag-based governance policies. Args: key: optional tag key filter. limit: max tags per page, 1-100; when omitted the API default is used. marker: pagination marker returned by a previous call. Returns: Paginated envelope with items (key, value[]).
| Parameter | Type | Description |
|---|---|---|
key | ||
limit | ||
marker |
count_all_resources
Count resources matching the given filters. Scenario: user wants the number of resources (e.g. how many ECS in cn-north-4) to size capacity or audit usage. Args: resource_id: filter by exact resource ID. name: filter by resource name. group_id: filter by resource group ID (effective once the SDK supports this field). resource_type: resource types in ``provider.type`` form (max 100). region_id: region IDs (max 10). ep_id: enterprise project IDs (max 10). project_id: project IDs (max 10). tags: tag filters,…
| Parameter | Type | Description |
|---|---|---|
ep_id | ||
group_id | ||
name | ||
project_id | ||
region_id | ||
resource_id | ||
resource_type | ||
tags |
collect_resources_summary
Collect a per-provider/per-type/per-region resource summary. Scenario: user wants a high-level breakdown of resource counts grouped by provider, resource type and region. Args: name: filter by resource name. resource_type: resource types in ``provider.type`` form (max 100). region_id: region IDs (max 10). ep_id: enterprise project IDs (max 10). project_id: project IDs (max 10). tags: tag filters, ``key`` or ``key=value`` (max 5). Returns: Paginated envelope with items (provider, types[type, regions[region_id, count]]).…
| Parameter | Type | Description |
|---|---|---|
ep_id | ||
name | ||
project_id | ||
region_id | ||
resource_type | ||
tags |
create_resource_group
Create a resource group. Scenario: user is organizing resources into logical groups (e.g. by environment or business unit) to manage them collectively. Args: group_name: unique group name, 1-50 chars of letters, digits, underscore or hyphen. description: optional description, 2-500 chars. Returns: Single result with group_id, group_name, description, created.
| Parameter | Type | Description |
|---|---|---|
group_name * | string | |
description |
delete_resource_group
Delete a resource group (irreversible). Scenario: user wants to remove a resource group. With confirm=false the tool returns a preview (group info); call again with confirm=true to actually delete. Args: group_id: resource group UUID (run list_resource_groups first). confirm: must be explicitly true to execute; false returns a preview.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | |
confirm | boolean |
update_resource_group
Update the description of a resource group. Scenario: user wants to change a resource group's description (e.g. after repurposing the group). Args: group_id: resource group UUID (run list_resource_groups first). description: new description, 2-500 chars. Returns: Single result with group_id, group_name, description, updated.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | |
description |
show_resource_group
Show the detail of a single resource group. Scenario: user wants the metadata (name, description, timestamps) of one resource group. Args: group_id: resource group UUID (run list_resource_groups first). Returns: Single result with group_id, group_name, description, created, updated.
| Parameter | Type | Description |
|---|---|---|
group_id * | string |
list_resource_groups
List resource groups with pagination. Scenario: user wants an inventory of their resource groups. Args: limit: max groups per page, 1-100; when omitted the API default is used. marker: pagination marker returned by a previous call. Returns: Paginated envelope with items (group_id, group_name, description, created, updated).
| Parameter | Type | Description |
|---|---|---|
limit | ||
marker |
add_resources_to_group
Add resources to a resource group. Scenario: user wants to assign a set of resources (by ID) to a resource group so they can be managed/queried together. Args: group_id: target resource group UUID. resource_ids: resource UUIDs to add (1-512, no duplicates). Returns: Paginated envelope with the resources now in the group.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | |
resource_ids * | array |
remove_resource_from_group
Remove a resource from a resource group. Scenario: user wants to un-assign a resource from a group (e.g. after moving it to another business unit). Args: group_id: resource group UUID. resource_id: resource UUID to remove. Returns: Single result with the removed resource detail.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | |
resource_id * | string |
show_resource_relations
List the relations of a resource to other resources. Scenario: user wants to understand how a resource is connected to others (e.g. an ECS to its VPC/subnet/EIP) for impact analysis. Args: resource_id: the source resource UUID. related_resource_id: optional filter by related resource UUID. related_resource_type: optional filter by related resource type in ``provider.type`` form. limit: max relations per page, 1-100; when omitted the API default is used. marker: pagination marker returned by a previous call. Retu…
| Parameter | Type | Description |
|---|---|---|
resource_id * | string | |
limit | ||
marker | ||
related_resource_id | ||
related_resource_type |
create_stored_query
Create a named stored ResourceQL query. Scenario: user wants to save a frequently used ResourceQL query (with a name and description) so it can be re-run later by name. Args: name: query name, 1-256 chars. expression: ResourceQL expression, 1-4096 chars. description: optional description, 0-512 chars. Returns: Single result with id, name, description, expression, created.
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
name * | string | |
description |
list_stored_queries
List stored queries with optional name filter. Scenario: user wants to browse their saved ResourceQL queries. Args: limit: max queries per page, 1-100; when omitted the API default is used. marker: pagination marker returned by a previous call. name: optional query name filter. Returns: Paginated envelope with items (id, name, description, expression, created, updated).
| Parameter | Type | Description |
|---|---|---|
limit | ||
marker | ||
name |
show_stored_query
Show the detail of a single stored query. Scenario: user wants the full expression of a saved ResourceQL query, e.g. to copy or reuse it. Args: query_id: stored query UUID (run list_stored_queries first). Returns: Single result with id, name, description, expression, created, updated.
| Parameter | Type | Description |
|---|---|---|
query_id * | string |
update_stored_query
Update a stored query (name, expression, description). Scenario: user wants to revise a saved ResourceQL query. Args: query_id: stored query UUID (run list_stored_queries first). name: new query name, 1-256 chars. expression: new ResourceQL expression, 1-4096 chars. description: optional new description, 0-512 chars. Returns: Single result with id, name, description, expression, updated.
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
name * | string | |
query_id * | string | |
description |
delete_stored_query
Delete a stored query (irreversible). Scenario: user wants to remove a saved ResourceQL query. With confirm=false the tool returns a preview; call again with confirm=true to actually delete. Args: query_id: stored query UUID (run list_stored_queries first). confirm: must be explicitly true to execute; false returns a preview.
| Parameter | Type | Description |
|---|---|---|
query_id * | string | |
confirm | boolean |