Skip to main content
Glama

Server info

get_server_info
Read-onlyIdempotent

Retrieve PostgreSQL server version, current database and role, database size, uptime, and replica status to verify environment details and diagnose connectivity.

Instructions

PostgreSQL version, current database and role, database size, uptime, and whether it is a replica.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_server_info"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds what information is exposed (including the current role, which has security relevance), but says nothing about cost, whether it touches system catalogs, or any permission 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 front-loaded sentence listing exactly the fields returned, with zero filler. Every element earns its place and nothing is repeated from the title or annotations.

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?

With no input parameters and no output schema, the description is the only documentation of what comes back, and it delivers that as an enumerated field list. It stops short of describing the return structure or format, but for a trivial read-only info tool this is close to 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 tool takes zero parameters, so there is no parameter semantics to document; baseline of 4 applies. The description instead spends its words on the return contents, which is the useful place to spend them.

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?

Names the resource (server info) and enumerates the concrete fields returned: PostgreSQL version, current database and role, database size, uptime, replica status. That is far more specific than a title restatement, though it does not explicitly distinguish itself from the sibling get_database_stats, which could plausibly overlap on size/metadata.

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?

The description states only what the tool returns, with no when-to-use guidance, no prerequisites, and no mention of alternatives such as get_database_stats or list_roles for related information. The agent must infer context from the field list alone.

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