Skip to main content
Glama
kshitiz305

analytics-mcp-server

by kshitiz305

Run Read-Only SQL

analytics_run_query
Read-onlyIdempotent

Run a read-only SQL SELECT query with pagination to safely explore and analyze SQLite data.

Instructions

Run a guarded, read-only SQL SELECT query with pagination.

The query is executed over a read-only connection protected by a SQLite authorizer, and is validated to be a single SELECT/WITH statement, so it cannot modify data. Results are paginated via limit/offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesA single read-only SQL statement. Must start with SELECT or WITH. Writes and multiple statements are rejected.
limitNoMaximum rows to return (1-500).
offsetNoRows to skip, for pagination.
response_formatNo``markdown`` (default) or ``json``.markdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds valuable context: the query runs on a read-only connection with a SQLite authorizer, is validated as a single SELECT/WITH, and results are paginated. This fully discloses behavior beyond annotations.

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 two sentences, front-loaded with the core purpose, and every sentence adds value. No wasted words.

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 an output schema present, return values are covered. The description addresses purpose, safety, pagination, and validation. It could mention error handling or result format, but overall it is complete for this tool.

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 coverage is 100%, so parameter descriptions are already present. The description mentions pagination via limit/offset but does not add new meaning beyond the schema. Baseline of 3 is appropriate.

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 explicitly states 'Run a guarded, read-only SQL SELECT query with pagination,' clearly identifying the verb and resource. It distinguishes from sibling tools (like analytics_import_csv or analytics_describe_table) by emphasizing read-only execution and pagination.

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 explains that the tool is for read-only queries and validates statements, implying it is safe to run. It does not explicitly list alternatives or when-not-to-use, but the context is clear enough for an agent to choose appropriately.

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

Install Server

Other Tools

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/kshitiz305/analytics-mcp-server'

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