Skip to main content
Glama

store_query

Read-only

Run read-only SELECT queries against DBA Brain's runtime store to inspect schema and data; automatic rollback and row caps keep queries bounded.

Instructions

One read-only SELECT on dbabrain's runtime store (sql), always rolled back; max_rows up to the node's cap. Tables: store_schema.

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": {
      "sql": "<sql>"
    },
    "name": "store_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
max_rowsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, and the description goes beyond them by disclosing that execution is always rolled back and that row output is bounded by the node's cap via `max_rows`. That is real behavioral context an agent could not derive from the annotations, though auth requirements and error behavior remain unstated.

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?

A single dense sentence that front-loads the core constraint (read-only, one SELECT, rolled back) and closes with the table-name pointer. Every clause carries information; nothing is padding.

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 exists, so return documentation is correctly omitted, and the reference to `store_schema` covers discovery of table structure. What remains missing for a SQL execution tool is guidance on choosing it over `run-sql` and any statement-length or dialect limits.

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

Parameters4/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 partially: `sql` is constrained to a single read-only SELECT and `max_rows` is explained as bounded by the node's cap. It still leaves the meaning of `max_rows` default 0 and the shape of `sql` dialect/quoting rules unstated.

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 description states a specific verb and scope: one read-only SELECT over "dbabrain's runtime store", with the column named (`sql`) and a pointer to `store_schema` for table structure. It is clear what the tool does, though it never contrasts itself with the similar `run-sql` sibling, so differentiation relies on inference.

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?

"One read-only SELECT ... always rolled back" implies the boundary of acceptable use (single statement, no writes, no multi-statement scripts), which is genuine implicit guidance. However, there is no explicit when-to-use versus the obvious `run-sql` alternative and no stated prerequisites, so an agent must guess which of the two SQL tools applies.

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