list_sessions
List current active database sessions from pg_stat_activity to monitor connections and diagnose query activity.
Instructions
查看当前活跃会话(pg_stat_activity)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
List current active database sessions from pg_stat_activity to monitor connections and diagnose query activity.
查看当前活跃会话(pg_stat_activity)
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already indicate readOnlyHint=true, so the read-only nature is covered. The description does not add any additional behavioral details (e.g., no side effects, permissions needed), but since the operation is simple and annotations cover the main trait, this is adequate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence that immediately conveys the tool's purpose. It is concise, front-loaded, and contains no extraneous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple, parameterless, read-only tool, the description sufficiently explains what it does. It does not elaborate on the output format, but given the low complexity and the annotations covering read-only behavior, it is reasonably complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has no parameters, so schema coverage is 100%. Per the rubric, this yields a baseline score of 3 even though the description provides no parameter-specific information, as there are none to describe.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: viewing current active sessions via pg_stat_activity. It is specific and distinguishes this tool from sibling tools that list tables, views, or other database objects.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It only states what it does, without any context about prerequisites, conditions, or when other tools might be more appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mengqi1436/GaussDB-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server