Skip to main content
Glama

store-query

Read-only

Run a read-only SELECT against DBA Brain's runtime store—job runs, metrics, backup catalog, and SLA data—with results always rolled back.

Instructions

Run one read-only SELECT on dbabrain's own runtime store (job runs, metrics, the backup catalog, SLA), always rolled back. The tables are listed by 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. Addedv1.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, but the description adds genuinely non-derivable behavior: only ONE SELECT is permitted per call and execution is always rolled back, so no state can change. It does not mention statement timeouts, row limits, or what happens on multi-statement input.

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?

Two tight sentences; the core constraint (single SELECT, rolled back) is front-loaded and the discovery pointer follows. No filler or redundant restatement of the annotations.

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

Completeness3/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 values need no explanation, and the safety profile is covered. Still, for a SQL-execution tool the definition omits dialect/dialect-specific caveats and the meaning of max_rows, which an agent needs to call it correctly.

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

Parameters2/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 carry semantics. It partially covers 'sql' by constraining it to one read-only SELECT, but says nothing about 'max_rows' — notably what the default 0 means (unlimited?) and how it interacts with large result sets — leaving half the parameters unexplained.

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 one read-only SELECT on dbabrain's own runtime store') and enumerates the data domains covered (job runs, metrics, backup catalog, SLA). The pointer to store-schema for table discovery separates it cleanly from schema-listing and plan-explaining siblings.

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?

Establishes context clearly: single statement, read-only, always rolled back, and directs the agent to store-schema to learn the tables. It stops short of explicit when-not-to-use conditions (e.g., use export-data for bulk extraction or app-command-set for writes).

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