Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
db_engineNo'postgresql'|'mysql'|'sqlite'|'mongodb'postgresql
descriptionYesData model description, e.g. 'Multi-tenant SaaS with users, teams, projects, and tasks'
migration_toolNo'alembic'|'flyway'|'raw_sql'alembic
existing_schemaNoOptional: existing DDL or schema JSON for ALTER TABLE migrations
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavior itself. It says the tool 'produces' artifacts (SQL, ER diagram, etc.), which implies generation rather than execution, but it does not specify the output format, error handling, or whether any actions are taken on a database. The pairing with sql_injection LoRA adds context but does not substitute for deeper behavioral clarity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with purpose, followed by a clear enumeration of outputs. The closing sentence about the sql_injection LoRA is useful but not strictly necessary. It is well-structured without being verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is fairly complex, producing multiple outputs (DDL, ER diagram, migrations, query templates), and there is no output schema. The description captures the core functionality effectively, but it would be more complete if it described the structure of the returned result or how the outputs are delivered. Still, the main use case is well covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all four parameters. The description mentions the data model description and migration tool, but does not add meaningful detail beyond what is in the schema. Therefore, the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's role via 'DB Agent — schema design, query optimisation, and migration scripts' and elaborates with a concrete list of outputs from a data model description. This distinguishes it from sibling tools like timps_sql_optimizer and timps_db_migration_pilot by covering the full schema design and migration workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description strongly implies when to use: 'Given a description of your data model it produces...' and lists the scenarios (schema design, query optimisation, migration scripts). However, it does not explicitly mention alternatives or exclusions, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sandeeprdy1729/timps-swarm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server