Skip to main content
Glama
sqlite-mcp-server

sqlite-mcp-server

by mismi

List Tables

sqlite_list_tables
Read-onlyIdempotent

Lists tables and views in a connected SQLite database with row and column counts, helping you discover the schema before describing columns or querying rows.

Instructions

List the tables and views in the connected SQLite database, with row and column counts.

Start here when you do not know the schema, then use sqlite_describe_table for columns and keys and sqlite_query to read rows.

Returns one page at a time; when more exist, the result includes next_offset to pass back as offset. Example: "What data is in this database?" -> no arguments.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sqlite_list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum objects to return
offsetNoNumber of objects to skip, for pagination
response_formatNo'markdown' for readable text, 'json' for structured datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior, so the safety profile is covered. The description adds value beyond that by disclosing pagination semantics and the next_offset contract, though it does not describe the shape of each table entry (e.g., field names for the counts).

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?

Three short paragraphs, front-loaded with purpose, then routing, then pagination behavior. Every sentence earns its place, though the example invocation line is a nice-to-have rather than essential.

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?

With no output schema, the description carries the burden of describing returns and does so at a high level (tables/views, row and column counts, next_offset). It stops short of enumerating the actual response fields or explaining response_format output differences, which is a minor gap for a discovery tool.

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 description coverage is 100%, so the baseline is 3, but the description goes further by explaining the offset/next_offset round-trip, which is the non-obvious part of using the pagination parameter. It adds nothing about limit or response_format, but the schema handles those.

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?

States a specific verb and resource ("List the tables and views in the connected SQLite database") and adds the differentiating detail that row and column counts are included. An agent can distinguish this from sqlite_describe_table and sqlite_query without opening any schema.

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

Usage Guidelines5/5

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

Explicitly says when to use this tool ("Start here when you do not know the schema") and names the alternatives with their roles: sqlite_describe_table for columns/keys, sqlite_query for reading rows. It even supplies a concrete trigger phrase for the zero-argument case.

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