Skip to main content
Glama

Read Studio database

read_msty_database
Read-onlyIdempotent

Run read-only SQL queries against the Msty Studio SQLite database to retrieve stats, table lists, or rows without changing data. Use SELECT, WITH, or PRAGMA statements for structured JSON results.

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_msty_database"
  }
}

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
workspaceNoOptional Studio workspace name, slug or id from list_workspaces. Omit for the active workspace.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv6.3.0
    • addedInput schema / properties / workspace
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional Studio workspace name, slug or id from list_workspaces. Omit for the active workspace.",
      +  "title": "Workspace"
      +}
  2. 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."
  3. Changed2 schema fields changedv6.1.5
    • addedInput schema / properties / query / default
      Added value: +"stats"
    • removedInput schema / required
      Removed value: -[
      -  "query"
      -]
  4. First observedv5.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still earns credit by disclosing behavior annotations cannot express: credential columns are masked to NULL and results come back as JSON keyed on query_type.

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, each doing distinct work: what it does, how to pick a query mode, the write exclusion, and the masking caveat. The key constraint (read-only) is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter tool with full schema coverage, an output schema, and complete annotations, nothing material is missing. Masking and the general return shape are flagged even though the output schema exists.

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 the schema already documents stats/tables/SELECT-WITH-PRAGMA for query, the 1-500 range for limit, and the workspace lookup. The description restates the query modes without adding syntax, casing, or limit-lowering guidance beyond the schema.

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?

States a specific verb and resource — 'Run a read-only query against the Studio SQLite database' — with the accepted statement types spelled out. No sibling tool in the list offers arbitrary database reads, so the definition is unambiguous on its own.

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 when-to-use routing inside the tool ('query=stats or query=tables for overviews') and an explicit exclusion ('Do not use this to change data'). It stops short of naming an alternative tool for write or catalogue-style operations, which is the only gap.

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