timps_db_agent
Generate schema SQL, ER diagrams, index recommendations, migration scripts, and query templates from a data model description, with SQL injection protection.
Instructions
DB Agent — schema design, query optimisation, and migration scripts. Given a description of your data model it produces: CREATE TABLE SQL, an ER diagram in Mermaid, index recommendations, a migration script (Alembic / Flyway / raw SQL), and query templates. Pairs with the sql_injection LoRA for secure query generation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"description": "<description>"
},
"name": "timps_db_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_engine | No | 'postgresql'|'mysql'|'sqlite'|'mongodb' | postgresql |
| description | Yes | Data model description, e.g. 'Multi-tenant SaaS with users, teams, projects, and tasks' | |
| migration_tool | No | 'alembic'|'flyway'|'raw_sql' | alembic |
| existing_schema | No | Optional: existing DDL or schema JSON for ALTER TABLE migrations |