Tidb Sql
Executes complex TiDB SQL queries directly within this agent for rapid data analysis and testing without external database connections.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add tidb-sql npx -- -y @trustedskills/tidb-sql
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"tidb-sql": {
"command": "npx",
"args": [
"-y",
"@trustedskills/tidb-sql"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with a TiDB database using SQL queries. It enables querying data, executing stored procedures, and performing other database operations directly through natural language prompts. The agent can retrieve information from the database and use it in subsequent actions or responses.
When to use it
- Data Analysis: An agent needs to analyze sales trends over a specific period by running SQL queries against a TiDB database.
- Report Generation: Automatically generate reports based on data stored in a TiDB instance, such as daily active user counts.
- Inventory Management: An agent can check stock levels and update inventory records using SQL commands within the TiDB database.
- Customer Support: Agents can retrieve customer order history or account details from TiDB to assist with support requests.
Key capabilities
- SQL Query Execution: Executes SQL statements against a TiDB database.
- Data Retrieval: Retrieves data based on user-defined criteria.
- Stored Procedure Execution: Runs stored procedures within the TiDB instance.
Example prompts
- "What were the total sales for last month?"
- "Show me all customers who placed an order in the last week."
- "Execute the 'update_inventory' stored procedure with quantity 10 and product ID 5."
Tips & gotchas
- Requires access to a TiDB database instance.
- Ensure the AI agent has appropriate permissions within the TiDB database for the requested operations.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.