Skip to main content
Glama
dbadmin-mcp

dbadmin-mcp

by legavaz

run_select

Runs one read-only SELECT with a configurable row limit and statement timeout, preventing writes while safely inspecting query results.

Instructions

Выполнить одиночный SELECT в транзакции только для чтения: лимит строк, statement_timeout. Запись невозможна.

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": "run_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
limitNoмаксимум строк (по умолчанию 100, не более 500)
connectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so well: it declares the read-only transaction mode, that writes are impossible, and that row-limit and statement_timeout guards apply. It does not say how a rejected write surfaces (error vs silently blocked) or what the response shape is.

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 with the core action and the key constraint front-loaded; no filler, and the safety caveat sits at the end where it is read before acting.

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?

For a 3-parameter, no-output-schema, no-annotation tool, the definition covers the essential safety story but omits the meaning of 'connection' and any statement about returned rows or error behavior. An agent can call it correctly but must guess at connection selection.

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 description coverage is only 33% (only 'limit' is documented), so the description must compensate. It clarifies that 'sql' takes a single SELECT and that a row cap applies, but never explains the 'connection' parameter, and it mentions statement_timeout which is not an actual parameter, adding mild confusion.

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?

States a specific verb and resource: execute a single SELECT inside a read-only transaction, with row limit and statement_timeout. The closing clause 'Запись невозможна' implicitly separates it from the write siblings (delete_apply, delete_preview, delete_script), though no sibling is named explicitly.

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?

Usage is implied rather than stated: the tool is for read-only SELECT queries and cannot write. There is no explicit guidance about when to prefer this over a related sibling such as 'explain' for query plans, nor any prerequisite (permissions, connection selection) spelled out.

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