Skip to main content
Glama
SQLite MCP Server

SQLite MCP Server

by aktnk

list_data

Execute a SELECT query against a specified SQLite database and return up to 10,000 rows as a JSON list for analysis or further processing.

Instructions

SQLiteからデータを取得し、JSON形式のリストで返します。
- db_path: .dbファイルのフルパス(許可ディレクトリ内のみ)
- sql: 実行するSELECTクエリ(最大10,000件)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "db_path": "<db_path>",
      "sql": "<sql>"
    },
    "name": "list_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
db_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behavioral facts: db_path must be inside permitted directories, and results are capped at 10,000 rows. It omits whether non-SELECT statements are rejected, permission requirements, and error behavior, so the disclosure is partial rather than complete.

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 purpose is front-loaded in one sentence and the two parameters follow as compact bullets with zero filler. Every line earns its place.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the safety constraints are covered. However, for a tool that executes arbitrary SQL strings, the description leaves unclear whether only SELECT is permitted, how errors surface, and whether access is read-only, which an agent needs to call it safely.

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 0%, so the description must compensate, and it does explain both parameters: db_path is the full path to the .db file restricted to allowed directories, and sql is the SELECT query to run with a 10,000-row limit. It adds genuine meaning beyond the bare 'Sql' and 'Db Path' titles, though it gives no SQL dialect/format details.

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?

The description gives a concrete verb and resource (retrieve data from SQLite) plus the return shape (JSON list), so an agent knows exactly what it does. It does not name the siblings visualize_data or export_csv to distinguish itself from them, which keeps it below a 5.

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

Usage Guidelines2/5

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

There is no statement of when to choose this tool over visualize_data or export_csv, nor any when-not-to-use condition beyond the allowed-directory restriction. The usage is only faintly implied by 'returns a JSON list' versus the export/visualize siblings.

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

Deploy Server

Other Tools