Pre-Built Tool Categories
Thetools/ directory contains pre-built tool configurations organized by category:
| Directory | Category | Description | Key Tools |
|---|---|---|---|
| sample/ | Sample Data | Demonstration tools using IBM i SAMPLE schema (employee, department, project data) | Employee lookup, department analysis, project management |
| sys-admin/ | System Administration | High-level system service discovery and metadata exploration | Service catalogs, schema browsing, example queries |
| security/ | Security Analysis | Library list security assessment and vulnerability detection | Library list configuration, authority checks, security analysis |
| performance/ | Performance Monitoring | System performance metrics and resource utilization | System status, active jobs, memory pools, HTTP server stats |
| developer/ | Development Tools | Object statistics and dependency analysis for developers | Recently used objects, stale object detection, dependency tracking |
YAML File Format
SQL tools are defined in YAML files with three main sections:Sources
Database connectionsDefine IBM i system connections with credentials, ports, and connection optionsSources Reference →
Tools
SQL operationsIndividual queries with parameters, validation, and security controlsTools Reference →
Toolsets
Basic Structure
Why YAML? Separating SQL definitions from application code enables SQL professionals to build and maintain tools without TypeScript knowledge while ensuring security through parameter validation and prepared statements.
Key Concepts
Sources - Database Connections
Define reusable connection configurations with environment variables for security:- Environment variable substitution for credentials
- Multiple environment support (dev, test, prod)
- Connection pooling and timeouts
- SSL/TLS configuration
Complete Sources Reference
Learn about all source configuration options, security best practices, and troubleshooting →
Tools - SQL Operations
Individual SQL queries with parameter validation and security controls:- String - Pattern validation, length constraints, enums
- Integer - Range validation, defaults
- Float - Decimal numbers for calculations
- Boolean - True/false flags
- Array - Lists of values for IN clauses
Complete Tools Reference
Explore all tool configuration options, parameter types, security features, and examples →
Toolsets - Logical Organization
Group related tools for discovery and selective loading:- By functional domain (monitoring, security, reporting)
- By business process (onboarding, payroll, inventory)
- By user role (developer, DBA, auditor)
- By environment (production, development, testing)
Complete Toolsets Reference
Learn about toolset organization, selective loading, and best practices →
Security & Validation
Automatic Security
- SQL Injection Protection - All parameters use prepared statements
- Type Validation - Parameters validated against defined schemas
- IBM i Authorities - Queries respect object-level permissions
- Audit Logging - Optional detailed execution logs
Security Configuration
Mark sensitive tools for enhanced protection:Loading and Configuration
Load Specific Toolsets
Environment Variables
Complete Example
A simple but complete YAML configuration:Complete Examples: See the Building SQL Tools guide for the comprehensive
employee-info.yaml example that demonstrates all parameter types and SQL patterns in a production-ready configuration.Next Steps
Sources Reference
Database connection configuration
Tools Reference
SQL tool definitions and parameters
Toolsets Reference
Organizing tools into groups
Building SQL Tools
Step-by-step guide with complete examples
Configuration Guide
Server configuration and environment variables
Design Philosophy: YAML SQL tools democratize AI agent development for IBM i environments. SQL professionals build sophisticated tools using familiar SQL syntax, while the MCP server handles AI integration, security, parameter validation, and protocol management automatically.