Database query
Skill hashwnath/microsoft-cape-mcp-skills/skills/database_query
Execute SQL queries against enterprise databases via MCPFrom its SKILL.md
npx -y skills add hashwnath/microsoft-cape-mcp-skills --skill database_queryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, 291 tokens by cl100k_base, as published. Nobody here has run it
Database Query
Execute SQL queries against enterprise databases through a managed MCP connection with connection pooling, rate limiting, and full observability.
When to Use This Skill
Use this skill when the user asks to:
- Query customer data, revenue reports, or business metrics
- Look up records in enterprise databases
- Generate data summaries or aggregations
- Run ad-hoc analytical queries
Instructions
- Parse the user's natural language request into a SQL query.
- Identify the target database (default: "enterprise").
- Validate the query is read-only (SELECT statements only for safety).
- Call the
database_querytool with the SQL and database parameters. - Format the results as a readable table or summary.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| sql | string | Yes | SQL query to execute |
| database | string | No | Target database name (default: enterprise) |
Safety Rules
- Only execute SELECT queries. Never execute INSERT, UPDATE, DELETE, or DDL.
- Limit results to 1000 rows unless the user explicitly requests more.
- Do not expose raw connection strings or credentials in responses.
Error Handling
- If the query syntax is invalid, suggest corrections.
- If the database is unavailable, inform the user and suggest trying later.
- Rate limits are handled automatically by the middleware layer.
What ships with it: 2 files
2.8 KB alongside SKILL.md, 1 of them executable
references/
- schema_guide.md814 B
scripts/
- query_executor.pyruns2.0 KB