Skip to main content
Glama
ChingEnLin
by ChingEnLin

connect_server

Read-only

Connect to a PostgreSQL flexible server using its ARM resource ID, resolving the FQDN and storing it in session context for subsequent queries. Authentication uses short-lived Microsoft Entra tokens from your Azure login.

Instructions

Connect to a PostgreSQL flexible server by its ARM resource ID.

Resolves the server FQDN and stores it in session context. The password is a short-lived Microsoft Entra token minted from your own Azure login — nothing is stored on disk.

Args: server_id: ARM resource ID of the flexible server (from list_postgres_servers). server_name: Human-readable server name, for display. Defaults to the ARM name. database: Optional default database for subsequent calls. schema: Optional default schema. Defaults to 'public' when unset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNo
databaseNo
server_idYes
server_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already mark the tool as read-only and non-destructive. The description adds meaningful context: the password is a short-lived Microsoft Entra token minted from the user's Azure login, nothing is stored on disk, and the connection state is stored in session context. This goes well beyond the annotation hints.

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 front-loaded with the core action, followed by a concise security note and a compact Args list. Every sentence contributes useful information, with no fluff or redundancy.

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?

The description covers the tool's purpose, prerequisite source (list_postgres_servers), authentication behavior, parameter meanings, and session side effects. Since an output schema exists, not explaining return values is acceptable. This is complete for an AI agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides no parameter descriptions (0% coverage). The description's Args section fully compensates by explaining server_id's origin, server_name's display purpose, database as an optional default, and schema defaulting to 'public'. This gives the agent everything it needs to fill parameters correctly.

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 clearly states the tool connects to a PostgreSQL flexible server by ARM resource ID, resolves FQDN, and stores it in session context. This specific action distinguishes it from sibling tools like list_tables or run_query, which operate independently of connection setup.

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?

The description references list_postgres_servers as the source for server_id and notes defaults for subsequent calls, implying it is a prerequisite for later query tools. However, it does not explicitly state when not to use it or name alternative connection methods, so it falls short of full exclusion guidance.

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/ChingEnLin/SQMCPaL'

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