Skip to main content
Glama

list_connections

Retrieve configured PostgreSQL connections with IDs, read-only status, and inferred environment; enable probe to test database reachability.

Instructions

List the configured connections: id, read_only and inferred environment. Start here; every other tool needs a connection_id. Set probe=true to also test reachability, which opens a connection to each database.

Input Schema

NameRequiredDescriptionDefault
probeNoTest reachability of every connection (default false: no network access, alive is null).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses the important side effect that probe=true opens a connection to each database, implying that the default listing does not. It does not mention authentication or permission requirements, which leaves a minor gap.

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?

Three short sentences, front-loaded with what is returned, then the prerequisite, then the optional probe behavior. No sentence is wasted.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter listing tool with an output schema, the description covers what is returned, the prerequisite for sibling tools, and the one optional behavioral mode. Nothing an agent needs in order to call it correctly is missing.

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%, so the schema already documents the probe parameter, its default, and the alive-is-null behavior. The description adds only the phrase that probing opens a connection to each database, which is useful but largely overlaps the schema's 'test reachability' wording.

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 states a specific verb and resource ('List the configured connections') and names the returned fields (id, read_only, inferred environment). It also distinguishes its role from all sibling tools by declaring that every other tool needs a connection_id, which no other tool does.

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?

It gives explicit sequencing guidance ('Start here; every other tool needs a connection_id') and explains the optional probe mode. Alternatives are not named, but the prerequisite makes the ordering unambiguous; it does not state when not to use the tool.

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