Skip to main content
Glama
ugurcl

dbridge-mcp

Run a read-only SQL query

run_query

Executes a single read-only SELECT or WITH statement against a connected database and returns the result rows as JSON, CSV, or Markdown.

Instructions

Runs a single read-only SELECT or WITH statement and returns the rows as JSON. Writes are rejected and results are capped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesA single read-only SELECT or WITH statement, written in the connected database's SQL dialect
formatNoOutput format for the rows: json (default), csv, or markdown
Behavior3/5

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

With no annotations, the description carries full burden. It discloses critical behaviors: read-only enforcement, result capping, and default JSON output. However, it omits details on error handling, pagination, or authentication requirements.

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, well-structured sentence conveys the tool's action, constraints, and output. Every word adds value; no redundancy or filler.

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?

Given the tool's complexity (2 parameters, no output schema), the description provides essential context: read-only, results capped, output format options. It could mention result structure (array of row objects) or error responses, but is mostly complete.

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?

The input schema covers both parameters (sql, format) with descriptions. The description adds value beyond the schema by specifying 'single' statement, 'read-only', and 'capped results'. This clarifies constraints not in 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?

The description explicitly states the verb (runs), resource (SQL query), and constraints (read-only, SELECT/WITH, capped results). It clearly distinguishes the tool's purpose from sibling tools, which are more specific (e.g., count_rows, describe_table).

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?

The description implies appropriate use cases (arbitrary read-only queries) but does not explicitly contrast with sibling tools or provide when-not-to-use guidance. For a general query tool, this is adequate but not outstanding.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ugurcl/dbridge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server