Skip to main content
Glama
kenb38291-tech

fastmcp-sqlite

export_query

Run a SQL query and stream results directly to a CSV or JSONL file on disk, using constant memory and zero tokens for large data exports.

Instructions

Execute a SQL query and stream results directly to a local CSV or JSONL file on disk. Zero token consumption, constant O(1) memory usage, ideal for large query exports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbNoOptional path to SQLite database file. Defaults to configured default database.
sqlYesThe SQL query to execute and export to disk.
formatNoExport file format: 'csv' (comma-separated values) or 'jsonl' (line-delimited JSON).csv
paramsNoOptional query parameters (positional list, named dict, or JSON string).
target_fileYesDestination file path on disk (e.g. 'output.csv' or 'data.jsonl').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It discloses key behaviors: streaming results directly to disk, zero token consumption, and constant memory usage. It stops short of stating file-overwrite behavior, but the core side effect and performance traits are transparent.

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 description is a single efficient sentence that front-loads the core action and result, then adds the most distinctive benefits (zero token consumption, O(1) memory) without filler.

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?

For a tool with a fully documented schema and an output schema, the description is largely complete: it explains what happens, where output goes, and why it is useful. It could more explicitly contrast with the query sibling or mention overwrite behavior, but those are minor omissions rather than blockers.

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 100%, so the parameters are already well-documented. The description reinforces the CSV/JSONL file destination and SQL execution, but adds little semantic value beyond what the schema provides.

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 uses a specific verb ('Execute') and resource ('SQL query') and clearly states the outcome: streaming results to a local CSV or JSONL file. This makes it easy to distinguish from sibling tools like query, which would return results in-context rather than writing to disk.

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 gives clear context for when to use this tool: 'ideal for large query exports' and highlights zero token consumption and O(1) memory usage. It does not explicitly name alternatives or state when-not-to-use, but the use case is clear enough to guide selection.

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

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/kenb38291-tech/fastmcp-sqlite'

If you have feedback or need assistance with the MCP directory API, please join our Discord server