Skip to main content
Glama
Airgap-fleet

db-bridge

by Airgap-fleet

query

Run parameterized SELECT statements with optional parameters to retrieve rows from a PostgreSQL database. Prevents SQL injection through read-only, audit-logged access.

Instructions

Execute a parameterized SELECT query and return rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesParameterized SELECT SQL query (use $1, $2, etc. for parameters)
paramsNoOptional list of query parameters

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.3

TDQS

A3.6/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 disclosure burden. It clearly states that the tool executes a SELECT query and returns rows, which communicates the core read-only behavior. It does not mention limits or edge cases, but the SELECT restriction makes the primary safety profile clear.

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?

The description is a single, focused sentence with every word contributing meaning. It is front-loaded with the action and resource, and the return behavior is stated clearly without redundancy.

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?

For a simple SELECT query tool, the description is nearly complete. The schema covers parameters fully and an output schema exists to describe return values. The only meaningful gap is the lack of guidance about when to prefer 'query' over sibling tools, but the SELECT qualifier mitigates this.

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%, so the baseline is 3. The description adds only the word 'parameterized', which is already captured in the schema's sql parameter description. It does not provide additional semantic value beyond what the schema already documents.

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 clearly states the specific verb-resource pairing: 'Execute a parameterized SELECT query and return rows.' The SELECT qualifier distinguishes it from general execution tools like 'execute', though it does not explicitly name sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given about when to use this tool versus alternatives like 'execute' or 'explain_analyze'. The only implicit signal is that SELECT queries belong here, but there is no explicit when-to-use or when-not-to-use guidance.

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

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/Airgap-fleet/db-bridge'

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