Skip to main content
Glama
croc100

litescope

Plan a migration (no apply)

litescope_migrate_plan
Read-onlyIdempotent

Plan a migration between two SQLite or D1 databases, preview the SQL, and get a blast-radius analysis classifying each operation as safe, risky, or destructive with estimated write-lock duration. Read-only.

Instructions

Plan a migration between two SQLite or D1 databases WITHOUT applying it. Returns the migration SQL plus a blast-radius analysis: each operation classified safe / risky / destructive, with an estimated write-lock duration for table rebuilds. Use this before applying any migration to a D1 database. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newYesTarget ('after') source with the desired schema — Database source: a local file path (./app.db), a Cloudflare D1 DSN (d1://DB_ID when CLOUDFLARE_API_TOKEN+CLOUDFLARE_ACCOUNT_ID are set, or d1://TOKEN@ACCOUNT_ID/DB_ID), or a Turso DSN (turso://TOKEN@ORG/DB).
oldYesCurrent ('before') source — Database source: a local file path (./app.db), a Cloudflare D1 DSN (d1://DB_ID when CLOUDFLARE_API_TOKEN+CLOUDFLARE_ACCOUNT_ID are set, or d1://TOKEN@ACCOUNT_ID/DB_ID), or a Turso DSN (turso://TOKEN@ORG/DB).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesThe migration SQL.
operationsYesEach operation classified safe/risky/destructive with lock estimate.
statementsYesNumber of SQL statements in the plan.
destructiveYesTrue if any operation drops or rewrites data.
Behavior5/5

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

The description adds significant behavioral context beyond annotations: returns SQL and blast-radius with safety classification and lock duration estimates, and reaffirms read-only nature. No contradiction with annotations.

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

Conciseness5/5

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

The description is two sentences, front-loading the core purpose and output. Every sentence adds value: purpose, output details, usage guidance, and safety reaffirmation. No wasted words.

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

Completeness5/5

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

Given the annotations cover safety and idempotency, and an output schema exists for return values, the description is complete. It covers what the tool returns, when to use it, and that it's read-only, leaving no critical gaps.

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 coverage is 100%, so the schema already documents both 'old' and 'new' parameters thoroughly. The description adds no additional detail beyond stating the parameters exist, meeting the baseline for this dimension.

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 plans a migration without applying it, returning SQL and blast-radius analysis. This distinguishes it from potential apply-like siblings and explicitly mentions 'read-only'.

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 explicitly says 'Use this before applying any migration to a D1 database,' providing clear context. It lacks explicit when-not-to-use or alternatives, but the context is strong enough for selection.

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/croc100/Litescope'

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