From cloudbase
Manages CloudBase Relational Database via MCP tools: provision/destroy MySQL, execute SQL queries, initialize schemas, and update table permissions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cloudbase:relational-database-toolThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
If this environment only installed the current skill, start from the CloudBase main entry and use the published `cloudbase/references/...` paths for sibling skills.
If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.mdhttps://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/relational-database-tool/SKILL.mdKeep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool or web-development, use the standalone fallback URL shown next to that reference.
querySqlDatabase, manageSqlDatabase, queryPermissions, or managePermissions.../relational-database-web/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/relational-database-web/SKILL.md)../http-api/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/http-api/SKILL.md)_openid and permissions review after creating new SQL tables.Use this skill when an agent needs to operate on CloudBase Relational Database via MCP tools, for example:
Do NOT use this skill for:
Recognize MCP context
querySqlDatabase, manageSqlDatabase, queryPermissions, managePermissions, you are in MCP context.Pick the right tool for the job
querySqlDatabasemanageSqlDatabasequeryPermissions(action="getResourcePermission")managePermissions(action="updateResourcePermission")Always be explicit about safety
querySqlDatabase(action="getInstanceInfo") or a read-only SQL check before writes.These tools are the supported way to interact with CloudBase Relational Database via MCP:
querySqlDatabaseSELECT and other read-only SQL queries with action="runQuery"action="getInstanceInfo"action="describeCreateResult" or action="describeTaskStatus"Example flow:
{
"action": "runQuery",
"sql": "SELECT id, email FROM users ORDER BY created_at DESC LIMIT 50"
}
manageSqlDatabaseaction="provisionMySQL"action="destroyMySQL"INSERT, UPDATE, DELETE, CREATE TABLE, ALTER TABLE, DROP TABLE with action="runStatement"action="initializeSchema"Important: When creating a new table, you must include the _openid column for per-user access control:
_openid VARCHAR(64) DEFAULT '' NOT NULL
Note: when a user is logged in, _openid is automatically populated by the server from the authenticated session. Do not manually fill it in normal inserts.
Before calling this tool, confirm:
When destroying MySQL, confirm:
describeTaskStatus afterward to inspect the destroy result.queryPermissionsqueryPermissions(action="getResourcePermission", resourceType="sqlDatabase", resourceId="<tableName>")managePermissionsmanagePermissions(action="updateResourcePermission", resourceType="sqlDatabase", resourceId="<tableName>", permission="READONLY")permissionssecurity-rule, security-rules, secret-rule, secret-rules, and access-control are still routed to permissionsreadSecurityRule and writeSecurityRule are removed; always use queryPermissions and managePermissionsquerySqlDatabase(action="getInstanceInfo").manageSqlDatabase(action="provisionMySQL", confirm=true).querySqlDatabase(action="describeCreateResult")querySqlDatabase(action="describeTaskStatus")READY.describeCreateResult; reserve describeTaskStatus for destroy flows whose task response carries TaskName.querySqlDatabase(action="runQuery") with a limited SELECT.LIMIT and relevant filters.manageSqlDatabase(action="initializeSchema").queryPermissions or managePermissions.querySqlDatabase(action="runQuery") to inspect current data or schema if needed.manageSqlDatabase(action="runStatement").querySqlDatabase(action="getInstanceInfo") to confirm the current environment still has a SQL instance.manageSqlDatabase(action="destroyMySQL", confirm=true).querySqlDatabase(action="describeTaskStatus") until the destroy task completes or fails.querySqlDatabase(action="getInstanceInfo") to confirm the instance no longer exists.MCP tools are for agent operations and database management:
SDKs are for application code:
When working as an MCP agent, always prefer these MCP tools for CloudBase Relational Database, and avoid mixing them with SDK initialization in the same flow.
npx claudepluginhub tencentcloudbase/cloudbase-mcp --plugin cloudbaseProvides a high-level overview of CloudBase platform capabilities, console navigation, and cross-platform best practices. Routes users to more specific implementation skills for web, auth, mini programs, and other services.
Guides safe database workflows: schema inspection before queries, read-before-write previews for mutations, user confirmations, and post-change verification.
Provides expert guidance for Azure Database for MySQL covering troubleshooting, best practices, architecture, security, configuration, HA/replication, backups, and migration. Includes local reference content and remote documentation fetching.