Relational database mcp cloudbase

From Activer007/ordinary-claude-skills · View interactive version

Relational database mcp cloudbase is an AI agent skill from the GitHub repository Activer007/ordinary-claude-skills. 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, UPDAT

How to use this skill

Skill file

When to use this skill

Use this skill when an agent needs to operate on CloudBase Relational Database via MCP tools, for example:

Do NOT use this skill for:

How to use this skill (for a coding agent)

  1. Recognize MCP context
  1. Pick the right tool for the job
  1. Always be explicit about safety

Available MCP tools (CloudBase Relational Database)

These tools are the only supported way to interact with CloudBase Relational Database via MCP:

1. `executeReadOnlySQL`

Example call (conceptual):

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`

Before calling this tool, confirm:

3. `readSecurityRule`

Security rule types typically include:

4. `writeSecurityRule`

When using this tool:


Scenario 1: Safely inspect data in a table

  1. Use executeReadOnlySQL with a limited SELECT:
  1. 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:


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

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.