Skip to main content
Glama
croc100

litescope

Inspect schema

litescope_schema
Read-onlyIdempotent

Fetch database schema as JSON: tables, columns with types and constraints, and indexes. Supports SQLite, Cloudflare D1, and Turso.

Instructions

Load the schema of a SQLite or D1 database — tables, columns (name, type, not-null, primary key), and indexes. Returns JSON. Read-only.

Works with local files, D1, and Turso. For D1: set CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID and use source=d1://DB_ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesDatabase 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
tablesYesTables with their columns and indexes.
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive hints. The description adds that it returns JSON and requires environment variables for D1, providing useful behavioral context beyond the 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?

Three sentences with no wasted words. The first sentence captures the core purpose, followed by supported sources and setup notes. Front-loaded and efficient.

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?

For a tool with one parameter and an output schema, the description fully covers what it does, what it returns, and prerequisites. No gaps given the simplicity and existing structured fields.

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 covers the single parameter completely. The description adds examples of source formats (e.g., ./app.db, d1://DB_ID) and clarifies the DSN patterns, providing additional meaning beyond the schema description.

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 it loads the schema of SQLite/D1 databases, listing tables, columns, and indexes, and returns JSON. It is distinct from sibling tools like litescope_query or litescope_check, which focus on querying or health checks.

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 explains the tool works with local files, D1, and Turso, and provides setup instructions for D1 (env vars). It lacks explicit exclusions but gives clear context for when to use.

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