Skip to main content
Glama
call518

MCP PostgreSQL Operations

get_index_io_stats

Analyze PostgreSQL index I/O performance by showing disk reads versus buffer cache hits, identifying indexes with poor cache efficiency and excessive disk I/O to optimize buffer usage.

Instructions

[Tool Purpose]: Analyze I/O performance statistics for indexes (disk reads vs buffer cache hits)

[Exact Functionality]:

  • Show index-level I/O statistics and buffer hit ratios

  • Identify indexes with poor buffer cache performance

  • Provide detailed I/O performance metrics per index

  • Help optimize index and buffer cache usage

[Required Use Cases]:

  • When user requests "index I/O stats", "index buffer performance", etc.

  • When analyzing index-level I/O performance

  • When identifying indexes causing excessive disk I/O

  • When optimizing index buffer cache efficiency

[Strictly Prohibited Use Cases]:

  • Requests for index optimization actions

  • Requests for buffer cache configuration changes

  • Requests for statistics reset

Args: database_name: Database name to analyze (uses default database if omitted) schema_name: Schema name to filter (default: public)

Returns: Index I/O statistics including buffer hit ratios and performance metrics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_nameNo
schema_nameNopublic

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by explaining what the tool does (analyzes I/O statistics, identifies performance issues, helps optimization) and what it doesn't do (no optimization actions, configuration changes, or statistics reset). It could improve by mentioning if this is a read-only operation or has any side effects, but provides substantial behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections ([Tool Purpose], [Exact Functionality], etc.) and front-loaded with purpose. While somewhat verbose, every sentence adds value (use cases, prohibitions, parameter explanations) and there's no redundant information.

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?

Given the tool's analytical nature, 2 parameters, no annotations, but with an output schema (confirmed by context signals), the description is complete: it explains purpose, functionality, use cases, prohibitions, parameters, and return values. The output schema handles return format details, so the description appropriately focuses on context and usage.

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 0%, but the description compensates by explaining both parameters in the Args section: 'database_name: Database name to analyze (uses default database if omitted)' and 'schema_name: Schema name to filter (default: public)'. This adds meaning beyond the bare schema, though it doesn't provide format examples or constraints.

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 explicitly states the tool's purpose as 'Analyze I/O performance statistics for indexes (disk reads vs buffer cache hits)' with specific verbs ('analyze', 'show', 'identify', 'provide', 'help optimize') and clearly distinguishes it from siblings like get_table_io_stats (index vs table focus) and get_index_usage_stats (I/O performance vs usage patterns).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance with '[Required Use Cases]' listing four specific scenarios and '[Strictly Prohibited Use Cases]' listing three clear exclusions, giving comprehensive when-to-use and when-not-to-use instructions that help differentiate from potential alternatives.

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/call518/MCP-PostgreSQL-Ops'

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