Skip to main content
Glama

db_processlist

Check a database instance's connection saturation and session summary. Returns grouped sessions with counts, oldest age, and top 10 longest queries, or a raw processlist dump.

Instructions

Show an instance's DB connection saturation + a session summary. By default SUMMARISES server-side (saturation, sessions grouped by command/state with counts + oldest age, and the 10 longest-running queries) instead of dumping every row. Pass full=true for the raw SHOW FULL PROCESSLIST / pg_stat_activity dump. Requires a db_profile for the instance; password from your secret store. Read-only query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoWebsite/app to target when the instance hosts several DBs (e.g. 'shop.example.com'); matched loosely against stored site labels. Omit for a single-DB instance.
fullNoReturn the raw per-session dump instead of the summary.
instance_idYesInstance ID, name, or custom-server name.
Behavior4/5

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

With no annotations, the description carries full burden. It explicitly states 'Read-only query', describes default vs full behavior, and requirements. It lacks details on error cases but is transparent about core behavior.

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 a single well-structured paragraph, front-loaded with action and key details, no fluff, and includes an example usage for 'full'. Every sentence adds value.

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?

Given the tool's complexity (summary vs raw, auth requirements), the description covers main aspects. However, it lacks details on output structure (no output schema), which would help an agent. Still sufficient for basic understanding.

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?

Schema coverage is 100% with descriptions for each parameter. The description adds extra context for `full` (default behavior), `app` (target website), and `instance_id` (requires db_profile). This enhances the schema information.

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 shows an instance's DB connection saturation and session summary, with specific verb 'Show' and resource. It distinguishes from siblings by emphasizing default summarization vs raw dump, and is unique among sibling tools like db_top_queries.

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 explains when to use vs pass 'full=true' and mentions requirements (db_profile, secret store). It implies usage context but does not explicitly compare with siblings or say when not to use.

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/zb-ss/servonaut'

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