Skip to main content
Glama
MCP PostgreSQL Read-Only Server

MCP PostgreSQL Read-Only Server

by japentaca

execute_common_queries

Runs predefined read-only queries to explore a PostgreSQL database, returning database version, current user/database, and table sizes.

Instructions

Ejecuta consultas predefinidas comunes para explorar la base de datos

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": {
      "query_type": "<query_type>"
    },
    "name": "execute_common_queries"
  }
}

Input Schema

NameRequiredDescriptionDefault
query_typeYesTipo de consulta común a ejecutar

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does not state that the operation is read-only, that the queries are fixed and cannot be parameterized, or that no side effects occur. For a database-executing tool with zero annotation coverage, this is a meaningful gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single efficient sentence with no filler, and the purpose is front-loaded. It is slightly under-specified rather than verbose, but there is no wasted wording to trim.

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 one-parameter enum tool with no output schema, the definition is minimally adequate: the agent knows it runs a fixed query and picks a type from the enum. It omits what the results look like and how this differs from the arbitrary-query sibling, and the Spanish description is inconsistent with the English sibling names and schema text.

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 100% and the single parameter is a fully enumerated query_type, so the schema already conveys everything needed to select a value. The description adds only that the queries are 'predefined' and 'common', which does not add meaning beyond the enum. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb ('Ejecuta') and resource ('consultas predefinidas comunes') and adds the intent 'para explorar la base de datos'. However, 'consultas comunes' is vague about which queries are run — the actual set is only discoverable from the schema enum. It only weakly distinguishes itself from the sibling execute_select_query, which presumably runs arbitrary SQL.

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?

There is no guidance on when to choose this tool over execute_select_query, describe_table, or list_tables. The phrase 'para explorar la base de datos' hints at an exploration context but never states an exclusion or a selection rule, leaving the agent to infer the choice from the enum values alone.

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