Skip to main content
Glama

Read Studio database

read_msty_database
Read-onlyIdempotent

Run read-only SQL queries against the Studio SQLite database to inspect stats, list tables, or retrieve rows without modifying data.

Instructions

Run a read-only query against the Studio SQLite database. Use query=stats or query=tables for overviews, or a SELECT/WITH/PRAGMA statement. Do not use this to change data. Credential columns read as NULL. Returns JSON with query_type and either stats, a table list, or rows.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum SQL rows to return. Integer from 1 to 500. Default 100.
queryNostats, tables, or a read-only SQL SELECT/WITH/PRAGMA statement. Default stats.stats

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv6.2.1
    • addedInput schema / properties / limit / description
      Added value: +"Maximum SQL rows to return. Integer from 1 to 500. Default 100."
    • addedInput schema / properties / query / description
      Added value: +"stats, tables, or a read-only SQL SELECT/WITH/PRAGMA statement. Default stats."
  2. Changed2 schema fields changedv6.1.5
    • addedInput schema / properties / query / default
      Added value: +"stats"
    • removedInput schema / required
      Removed value: -[
      -  "query"
      -]
  3. First observedv5.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered structurally. The description adds genuinely non-obvious behavior: credential columns are redacted to NULL and the response shape varies with query_type. It does not mention error handling for invalid SQL or how the limit interacts with statements that have no LIMIT clause.

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?

Four short sentences, front-loaded with the core action, then usage modes, then the exclusion, then the return shape. No filler and no repetition of the title.

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 and annotations carry the return contract and safety profile, and 100% param coverage means the description needn't document arguments. What is missing is minor but real: no guidance on result truncation when a statement lacks a LIMIT, or on what happens for malformed SQL.

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% and both parameter descriptions are already explicit, including the 1-500 range and default for limit. The description largely restates the query enum (stats/tables/SELECT/WITH/PRAGMA) without adding syntax, cost, or performance guidance, so the baseline 3 applies.

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?

Specific verb + resource: 'Run a read-only query against the Studio SQLite database.' The database name and read-only qualifier distinguish it from the many list_*/get_* catalogue siblings and from query_nexus, which targets a different store. An agent can route to it from the description alone.

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?

Gives concrete entry points (query=stats or query=tables for overviews) and names the accepted statement types, plus an explicit exclusion: 'Do not use this to change data.' It stops short of naming a sibling for writes or explaining when a catalogue list tool is preferable to a raw query, so it is clear but not fully alternative-aware.

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