Skip to main content
Glama
croc100

litescope

Diff two databases

litescope_diff
Read-onlyIdempotent

Compare two databases and output schema and row-count differences in JSON format. Compatible with local files, D1, and Turso.

Instructions

Compare two SQLite or D1 databases and return their schema and row-count differences as JSON. Works across any combination of local files, D1, and Turso — e.g. diff a local migration target against a live D1 database. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newYesChanged ('after') 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).
oldYesBaseline ('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
summaryYesCounts of tables added/removed/modified.
data_changesNoPer-table row-count differences (present when data differs).
schema_changesYesPer-table schema differences.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, so the safety profile is clear. The description adds value by specifying the output format (JSON) and supported database sources, which are not covered by 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: first sentence states purpose and output, second sentence expands on sources and gives an example. No wasted words; each sentence provides essential information.

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 presence of an output schema (covering return values), detailed parameter descriptions (100% coverage), and annotations that cover safety and idempotency, the description is complete. It adequately informs an AI agent about the tool's functionality and usage scope.

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

Parameters4/5

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

Schema coverage is 100% and both parameters have detailed descriptions already. The tool description adds context by defining 'old' as baseline and 'new' as changed, and gives examples of sources and authentication notes, which enhances understanding beyond the schema.

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?

Description clearly states the tool compares two databases and returns schema and row-count differences as JSON, which is a specific verb+resource. It distinguishes from sibling litescope_migrate_diff by specifying the output is schema and row-count differences, not just migration-related.

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 provides clear context on when to use the tool (e.g., diff a local migration target against a live D1 database) and lists supported database types (local files, D1, Turso). However, it does not explicitly state when not to use or mention alternatives among sibling tools.

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