relational-database-mcp-cloudbase
This is the required documentation for agents operating on the CloudBase Relational Database. It lists the only four supported tools for running SQL and managing security rules. Read the full content to understand why you must NOT use standard Application SDKs and how to safely execute INSERT, UPDATE, or DELETE operations without corrupting production data.
What this skill does
## When to use this skill Use this skill when an **agent** needs to operate on **CloudBase Relational Database via MCP tools**, for example: - Inspecting or querying data in tables - Modifying data or schema (INSERT/UPDATE/DELETE/DDL) - Reading or changing table security rules Do **NOT** use this skill for: - Building Web or Node.js applications that talk to CloudBase Relational Database (use the Web/Node Relational Database skills) - Auth flows or user identity (use the Auth skills) ## How to use this skill (for a coding agent) 1. **Recognize MCP context** - If you can call tools like `executeReadOnlySQL`, `executeWriteSQL`, `readSecurityRule`, `writeSecurityRule`, you are in MCP context. - In this context, **never initialize SDKs for CloudBase Relational Database**; use MCP tools instead. 2. **Pick the right tool for the job** - Reads → `executeReadOnlySQL` - Writes/DDL → `executeWriteSQL` - Inspect rules → `readSecurityRule` - Change rules → `writeSecurityRule` 3. **Always be explicit about safety** - Before destructive operations (DELETE, DROP, etc.), summarize what you are about to run and why. - Prefer running read-only SELECTs first to verify assumptions. --- ## Available MCP tools (CloudBase Relational Database) These tools are the **only** supported way to interact with CloudBase Relational Database via MCP: ### 1. `executeReadOnlySQL` - **Purpose:** Run `SELECT` queries (read-only). - **Use for:** - Listing rows, aggregations, joins. - Inspecting data before changing it. **Example call (conceptual):** ```sql SELECT id, email FROM users WHERE active = true ORDER BY created_at DESC LIMIT 50; ``` Call this through the MCP tool instead of embedding SQL in code. ### 2. `executeWriteSQL` - **Purpose:** Run **write or DDL** statements: - `INSERT`, `UPDATE`, `DELETE` - `CREATE TABLE`, `ALTER TABLE`, `DROP TABLE` - **Use for:** - Data migrations - Fixing or seeding data - Schema changes **Important:** When creating a new table, you **must** include the `_openid` column for per-user access control: ```sql _openid VARCHAR(64) DEFAULT '' NOT NULL ``` > 💡 **Note about `_openid`**: When a user is logged in, the `_openid` field is **automatically populated by the server** with the current user's identity. You do NOT need to manually set this field in INSERT operations - the server will fill it automatically based on the authenticated user's session. Before calling this tool, **confirm**: - The target tables and conditions are correct. - You have run a corresponding `SELECT` via `executeReadOnlySQL` when appropriate. ### 3. `readSecurityRule` - **Purpose:** Read security rules for a given table. - **Use for:** - Understanding who can read/write a table. - Auditing permissions on sensitive tables. Security rule types typically include: - `READONLY` – anyone can read, no one can write - `PRIVATE` – only authenticated users can read/write - `ADMINWRITE` – anyone can read, only admins can write - `ADMINONLY` – only admins can read/write - `CUSTOM` – custom security logic ### 4. `writeSecurityRule` - **Purpose:** Set or update security rules for a table. - **Use for:** - Hardening access to sensitive data - Opening up read access while restricting writes - Applying custom rules when needed When using this tool: - Clearly explain the **intent** (who should read/write what). - Prefer standard rule types (`READONLY`, `PRIVATE`, etc.) before `CUSTOM`. --- ## Scenario 1: Safely inspect data in a table 1. Use `executeReadOnlySQL` with a limited `SELECT`: - Include a `LIMIT` clause. - Filter by relevant conditions. 2. Review the result set and confirm it matches expectations. This pattern prevents accidental full-table scans and gives you context before any write operations. --- ## Scenario 2: Apply a schema change 1. Use `executeReadOnlySQL` to inspect the current schema or data (if needed). 2. Plan the `CREATE TABLE` / `ALTER TABLE` statement. 3. Run it once via `executeWriteSQL`. 4. Optionally, validate by running `SELECT` again. Always describe: - What schema change you are making. - Why it is safe in the current context. --- ## Scenario 3: Tighten security rules on a sensitive table 1. Call `readSecurityRule` for the table to see current settings. 2. Decide on the target rule (e.g., from `READONLY` → `PRIVATE`). 3. Explain the change and why it matches the user’s requirements. 4. Call `writeSecurityRule` with the new rule. 5. Optionally, re-read the rule to confirm the update. --- ## Key principle: MCP tools vs SDKs - **MCP tools** are for **agent operations** and **database management**: - Run ad-hoc SQL. - Inspect and change security rules. - Do not depend on application auth state. - **SDKs** are for **application code**: - Frontend Web apps → Web Relational Database skill. - Backend Node apps → Node Relational Database quickstart. 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.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.