From alibabacloud-core
Shared reference for using Alibaba Cloud OpenAPI MCP Server Core effectively. Covers tool usage patterns, API exploration workflow, CLI command generation, cross-account access, and safety policy configuration. Referenced by other alibabacloud-core skills as the canonical guide for MCP Core interactions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/alibabacloud-core:mcp-core-best-practicesThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill documents the canonical patterns for using the `alibabacloud-core` MCP
This skill documents the canonical patterns for using the alibabacloud-core MCP
server — the generalized OpenAPI MCP Server Core that covers all Alibaba Cloud
APIs without requiring pre-selection of specific operations.
| Tool | Purpose |
|---|---|
AlibabaCloud___SearchApis | Natural language search for APIs matching a requirement |
AlibabaCloud___CallCLI | Execute a single CLI command remotely |
AlibabaCloud___GetApiDefinition | Get full API definition (params, response, errors) by product/version/name |
AlibabaCloud___ListApis | List all APIs for a product, optionally filtered |
AlibabaCloud___ListProductRegions | List regions where a product is available |
AlibabaCloud___GenerateCLICommand | Generate a CLI command from API definition + parameters |
AlibabaCloud___ListProducts | List all Alibaba Cloud products |
AlibabaCloud___SearchDocument | Search Alibaba Cloud documentation by keyword |
AlibabaCloud___ReadDocument | Read a specific documentation page by URL |
When the target API is unknown, use AlibabaCloud___SearchApis with a natural
language description of the requirement. Each query should be granular enough to
map to a single API call.
For known products, use AlibabaCloud___ListApis with a filter keyword to browse
available operations.
Once the target API is identified, use AlibabaCloud___GetApiDefinition to
retrieve the full definition including:
Use AlibabaCloud___GenerateCLICommand to produce a correct CLI command from the
API definition and user-provided parameters. This avoids manual CLI syntax errors.
Use AlibabaCloud___CallCLI to execute the generated command. Key constraints:
aliyunIMPORTANT: For any operation involving member accounts, cross-account queries,
or Resource Directory account resolution, you MUST first load the
multi-account-query skill (invoke it via the Skill tool) before proceeding.
That skill contains the complete workflow for alias-to-UID resolution, pagination
handling, and proper use of x_assume_account_id. Do not attempt cross-account
operations without reading it first.
For Resource Directory member accounts, pass additional parameters to
AlibabaCloud___CallCLI:
| Parameter | Usage |
|---|---|
x_assume_account_id | Target member account UID |
x_assume_role_name | Custom role name (default: ResourceDirectoryAccountAccessRole) |
x_assume_role_arn | Full role ARN (highest priority) |
Priority: x_assume_role_arn > x_assume_account_id + x_assume_role_name >
default configuration.
When using AlibabaCloud___CallCLI, the following are NOT supported:
|) or shell operatorsgrep, awk, sed, or other shell tools>, >>, <)$())file://, fileb://)For commands that need local file access (e.g., ossutil cp), use the Bash tool
directly instead of MCP.
AlibabaCloud___ListProductRegions to check product availability in a
specific region before making calls.--region when operating across regions or when the default
region may not match the target.AlibabaCloud___SearchDocument: Find relevant docs by keyword.AlibabaCloud___ReadDocument: Read full content of a known documentation URL.Use these to verify behavior, understand quotas, or find configuration guides that are not captured in API definitions alone.
GetApiDefinition output.ListProductRegions to find valid regions.The in-plugin skills (alibabacloud-sdk-usage, alibabacloud-cli-guidance,
alibabacloud-terraform-usage, multi-account-query) cover SDK codegen,
CLI guidance, Terraform HCL, and cross-account queries. They do not cover
purpose-built operational solutions, less common products, or end-to-end
workflows that the Alibaba Cloud team publishes as standalone skills.
When the user's request falls outside the in-plugin coverage, defer to
alibabacloud-find-skills instead of forcing a generic SDK or CLI synthesis.
alibabacloud-find-skills when ANY of the following is truealibabacloud-find-skills whenCallCLI / GetApiDefinition / one-shot SDK call
(use the in-plugin skills directly)find-skills earlier in this
conversation and returned no match — don't re-search the same intentalibabacloud-find-skills via the Skill tool — it handles
search, presentation, and install in its own workflowWhen building stable workflows:
SearchApis to identify the correct API during development.GenerateCLICommand to produce validated commands.This progression — explore, validate, codify, restrict — ensures both flexibility during development and safety in production.
npx claudepluginhub acloudlabs-unofficial/alibabacloud-agent-toolkit --plugin alibabacloud-coreCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.