Best for
- Inspecting or querying SQL data
- Provisioning MySQL for an environment
- Destroying MySQL for an environment
TencentCloudBase/CloudBase-AI-Toolkit/config/source/skills/relational-database-mcp-cloudbase/SKILL.md
[Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP. It defines the canonical SQL management flow with `queryMysqlDatabase`, `manageMysqlDatabase`, `queryPermissions`, and `managePermissions`, including MySQL provisioning, destroy flow, async status checks, safe query execution, schema initialization, and permission updates. New environments should use PostgreSQL — see postgresql-development skill instead.
Decision brief
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill "config/source/skills/relational-database-mcp-cloudbase"Inspect the Agent Skill "relational-database-mcp-cloudbase" from https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/blob/43b60e5cdee1bae336a00ed3a8cc7e5b85ae5dca/config/source/skills/relational-database-mcp-cloudbase/SKILL.md at commit 43b60e5cdee1bae336a00ed3a8cc7e5b85ae5dca. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Recognize MCP context - If you can call tools like queryMysqlDatabase, manageMysqlDatabase, queryPermissions, managePermissions, you are in MCP context. - In this context, never initialize SDKs for CloudBase Relational Database; use MCP tools instead.
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
The agent must inspect SQL data, execute SQL statements, provision or destroy MySQL, initialize table structure, or manage table security rules through MCP tools.
The agent must inspect SQL data, execute SQL statements, provision or destroy MySQL, initialize table structure, or manage table security rules through MCP tools.
The task includes queryMysqlDatabase, manageMysqlDatabase, queryPermissions, or managePermissions.
Permission review
The documentation includes network, browsing, or remote request actions.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do **not** HTTP-fetch remote skill or protocol markdown into the agent context.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 1,082 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
queryMysqlDatabase, manageMysqlDatabase, queryPermissions, or managePermissions.../relational-database-web-cloudbase/SKILL.md../http-api-cloudbase/SKILL.md_openid and permissions review after creating new SQL tables.getConnectionInfo (or inferred host/password) to build a default TCP client for new apps. Prefer SDK / runQuery / runStatement; TCP credentials are an explicit migration exception only.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
queryMysqlDatabase, manageMysqlDatabase, queryPermissions, managePermissions, you are in MCP context.Pick the right tool for the job
queryMysqlDatabasemanageMysqlDatabasequeryPermissions(action="getResourcePermission")managePermissions(action="updateResourcePermission")Always be explicit about safety
queryMysqlDatabase(action="getInstanceInfo") or a read-only SQL check before writes.These tools are the supported way to interact with CloudBase Relational Database via MCP:
queryMysqlDatabaseSELECT and other read-only SQL queries with action="runQuery"action="getInstanceInfo" (lifecycle only — no connection credentials)action="describeCreateResult" or action="describeTaskStatus"action="getConnectionInfo" returns the raw connection/cluster payload (may include credentials) for migrating existing TCP/ORM clients. Do not use this for new business CRUD — prefer Web/Node SDK or runQuery / runStatement.Example flow:
{
"action": "runQuery",
"sql": "SELECT id, email FROM users ORDER BY created_at DESC LIMIT 50"
}
Do NOT call getConnectionInfo and then wire pymysql / mysql2 / DATABASE_URL into a cloud function for greenfield apps. Platform-delegated SQL and SDK access are the default.
manageMysqlDatabaseaction="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 managePermissionsqueryMysqlDatabase(action="getInstanceInfo").manageMysqlDatabase(action="provisionMySQL", confirm=true).queryMysqlDatabase(action="describeCreateResult")queryMysqlDatabase(action="describeTaskStatus")READY.describeCreateResult; reserve describeTaskStatus for destroy flows whose task response carries TaskName.queryMysqlDatabase(action="runQuery") with a limited SELECT.LIMIT and relevant filters.manageMysqlDatabase(action="initializeSchema").queryPermissions or managePermissions.queryMysqlDatabase(action="runQuery") to inspect current data or schema if needed.manageMysqlDatabase(action="runStatement").queryMysqlDatabase(action="getInstanceInfo") to confirm the current environment still has a SQL instance.manageMysqlDatabase(action="destroyMySQL", confirm=true).queryMysqlDatabase(action="describeTaskStatus") until the destroy task completes or fails.queryMysqlDatabase(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.
Frequently asked questions
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
The source record exposes this install command: npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill "config/source/skills/relational-database-mcp-cloudbase". Inspect the command and pinned source before running it.
Static rules flagged network in the source; the page lists the matching lines and excerpts.
Alternatives
synthetic-sciences/openscience
Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.
upex-galaxy/agentic-qa-boilerplate
Atlassian CLI (official `acli` binary, v1.3+ as of 2026) for Jira Cloud, Confluence Cloud, and org admin tasks from the terminal. Use whenever the user wants to create, view, edit, transition, assign, clone, archive, comment on, link, or bulk-operate on Jira work items; list or manage projects, boards, sprints, filters, dashboards, or custom-field definitions; create or update Confluence spaces, pages, or blog posts; activate/deactivate users at the org level; or authenticate to Atlassian from a
VincentChuWaiChow/vanguard-frontier-agentic
Review frontend analytics instrumentation and A/B or multivariate experiment configurations for event-schema correctness, sample-ratio-mismatch risk, statistically valid stopping rules, and consent-gated privacy compliance before shipping a tracking or experiment change.
keboola/cli
Use when working with Keboola Connection projects via the kbagent CLI. Covers: exploring and searching configurations, job history, data lineage, dev branches, workspace SQL debugging, GitOps config sync (pull/push/diff/clone), bucket sharing and linking, encrypting secrets, Storage tables, files, and snapshots, data apps (deploy/logs/secrets), flows and schedules, members and invitations, feature flags, OTLP data streams, scoped Storage tokens, the semantic layer (models, metrics), the Develope