Skip to main content
Glama
SQLite MCP Server

SQLite MCP Server

by aktnk

visualize_data

Run a SELECT query against a SQLite database and render the results as bar, line, or scatter chart images using chosen x and y columns.

Instructions

SQLiteからデータを取得し、グラフを生成して画像として返します。
- db_path: .dbファイルのフルパス(許可ディレクトリ内のみ)
- sql: 実行するSELECTクエリ(最大10,000件)
- x_col: X軸にするカラム名
- y_col: Y軸にするカラム名
- chart_type: 'bar' (棒), 'line' (折れ線), 'scatter' (散布図)

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>",
      "x_col": "<x_col>",
      "y_col": "<y_col>"
    },
    "name": "visualize_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
titleNoSQL Query Result
x_colYes
y_colYes
db_pathYes
chart_typeNobar

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose two useful constraints — db_path must be inside a permitted directory and the query is capped at 10,000 rows — but never states the returned image format, whether a file path or inline image is returned, whether the query is strictly read-only enforced, or how errors surface.

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?

One lead sentence followed by a tight per-parameter bullet list — front-loaded and easy to scan, with no filler. The omission of the title parameter is a completeness flaw rather than verbosity.

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?

For a tool whose entire deliverable is an image and with no output schema or annotations to fall back on, the description should explain the return representation and failure modes; neither is covered. It is adequate to call correctly, but not to anticipate the result.

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

Parameters3/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 for five parameters, adding the directory restriction on db_path, the SELECT-only plus 10,000-row cap on sql, and enum glosses for chart_type. However, the sixth parameter 'title' is documented nowhere, so the list is incomplete.

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 opening sentence names a specific pipeline verb sequence — fetch from SQLite, generate a chart, return it as an image — so an agent knows exactly what comes out. It does not explicitly contrast with siblings like export_csv or list_data, which would be the fifth point.

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: the tool is evidently for when a visual chart is wanted rather than raw rows. There is no explicit 'use this instead of export_csv when…' routing, no prerequisite checks stated, and no guidance on what to do if no permitted directory exists.

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