Tsql Functions
This skill provides a library of T-SQL functions for database queries, streamlining complex data manipulation and analysis tasks.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add tsql-functions npx -- -y @trustedskills/tsql-functions
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"tsql-functions": {
"command": "npx",
"args": [
"-y",
"@trustedskills/tsql-functions"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The tsql-functions skill enables AI agents to execute Transact-SQL (T-SQL) commands directly against SQL Server databases. It allows for real-time data retrieval, complex querying, and database management tasks without requiring manual code generation or external tooling.
When to use it
- Retrieve specific customer records or inventory levels instantly from a live SQL Server instance.
- Generate dynamic reports by running aggregate queries on large datasets.
- Perform administrative tasks such as creating temporary tables or updating schema definitions.
- Debug complex stored procedures by executing and inspecting their output within the chat interface.
Key capabilities
- Executes standard T-SQL statements including
SELECT,INSERT,UPDATE, andDELETE. - Supports complex query logic with joins, subqueries, and window functions.
- Integrates seamlessly with SQL Server environments to return structured data results.
- Facilitates direct interaction between the AI agent and the database engine for immediate insights.
Example prompts
- "Show me the total sales revenue for the last quarter by region."
- "Update the status of all orders older than 30 days to 'pending_review'."
- "List the top 10 customers by purchase frequency along with their contact details."
Tips & gotchas
Ensure the AI agent has the necessary permissions to execute T-SQL commands on your specific SQL Server instance, as unauthorized access attempts will fail. Always validate generated queries in a test environment before running them against production data to prevent accidental data loss or performance issues.
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.