Skip to main content
Glama
SQLite MCP Server

SQLite MCP Server

by aktnk

export_csv

Run a SELECT query against a SQLite database and return the resulting rows as a CSV string for data export and reporting.

Instructions

SQLiteからデータを取得し、CSV文字列として返します。
- 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": "export_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
db_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavioral constraints: only SELECT queries, a 10,000-row cap, and db_path restricted to permitted directories. It omits error behavior and CSV format details (headers, encoding, escaping), so it is solid 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?

Purpose is front-loaded in one line, followed by a tight two-bullet parameter list. Every sentence contributes a constraint or definition; nothing is redundant.

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?

An output schema exists, so return values need not be explained, and the description covers purpose, both parameters, sandbox scope, and the row limit. What remains missing is behavioral guidance on selection versus the sibling tools and on failure modes.

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%, but the description compensates for both parameters by explaining that db_path is a full path to a .db file confined to allowed directories and that sql is a SELECT statement capped at 10,000 rows. It does not clarify path format edge cases or whether the cap truncates silently or errors.

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?

States a specific verb and resource: fetch data from SQLite and return it as a CSV string. That is clearly distinguishable from list_data or visualize_data by output format, although the description never names those siblings to make the routing explicit.

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

Usage Guidelines3/5

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

Usage is only implied by the verb and the CSV output format; there is no explicit statement of when to prefer this over list_data or visualize_data, and no stated preconditions beyond the bullet notes. An agent must infer that this is the tool for raw CSV extraction.

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