Skip to main content
Glama

Create an instant sandbox database

create_sandbox
Idempotent

Create a seeded SQLite sandbox with realistic, referentially intact tables to test SQL queries and app code without touching a real database.

Instructions

Create and seed a real, isolated SQLite sandbox database for testing.

Perfect for AI coding agents: spins up a queryable database with realistic, referentially intact tables (0 orphan foreign keys) so you can test SQL queries, analytics logic, or application code immediately without touching a real database.

Args: domain: Pre-built domain template ('saas', 'ecommerce', 'fintech', 'healthcare'). story: Plain-English description (e.g. 'A restaurant with tables, bookings, and guests'). schema: Explicit schema dict if you want exact column control. rows: Base row count (default: 100). Transactions scale proportionally. seed: Random seed for 100% reproducible results (default: 42). db_path: Target SQLite file path (default: '.misata/sandbox.db').

Returns: Dictionary with db_url, db_path, table summaries, DDL, and sample verification queries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNo
seedNo
storyNo
domainNo
schemaNo
db_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, and idempotentHint=true, so safety and repeatability are partly covered. The description usefully adds that seeded data has '0 orphan foreign keys' (referential integrity) and that the result is reproducible via a default seed, and discloses the default write path '.misata/sandbox.db'.

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?

Front-loaded with the purpose followed by Args and Returns sections, which is well organized and every element is informative. There is mild promotional padding ('Perfect for AI coding agents') and the narrative benefit paragraph could be trimmed, but nothing is truly wasted.

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?

For a 6-parameter creation tool with annotations covering the safety profile and an output schema covering return values, the description supplies purpose, all parameter meanings, and a return summary. The remaining gap is guidance on how it differs from the many sibling generation/seed tools.

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

Parameters5/5

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

Schema description coverage is 0%, so the schema provides only titles and defaults. The description compensates fully: it names the four built-in domains, explains 'story' as plain English, clarifies 'schema' as an explicit dict for column control, notes rows scaling, and explains seed reproducibility (default 42) and db_path default.

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

Purpose4/5

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

States a specific verb+resource ('Create and seed a ... SQLite sandbox database') and adds the distinguishing traits of being real, isolated, and for testing. It does not, however, differentiate itself from close siblings like seed_database, generate_dataset, or create_from_schema, so an agent cannot route confidently on description alone.

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?

Gives a clear usage context: 'test SQL queries, analytics logic, or application code immediately without touching a real database,' which tells the agent when this is the right tool. There are no explicit exclusions or named alternatives despite several overlapping siblings (seed_database, generate_dataset, generate_from_schema).

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