Skip to main content
Glama
devopam

MCPg - Production-grade PostgreSQL MCP Server

Recommend rerank strategy

recommend_rerank_strategy
Read-only

Evaluates reranker idle time, top-k stability, score clustering, and NDCG changes to produce a concise recommendation and full list of findings for improving RAG reranker strategy.

Instructions

Roll-up advisor over the four analytics for one window. Returns a single headline summary + the full list of findings. Built from whichever combination of reranker_idle / topk_stable / score_clustering / rerank_hurts_ndcg / rerank_lifts_ndcg fires. Also feeds the RAG Reranker Pipeline category in audit_database. Reads from mcpg_rag.rerank_events.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
databaseNoOptional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids.
retrieval_indexNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryYes
findingsYes
window_daysYes
retrieval_indexYes
Behavior2/5

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

Description states 'feeds the RAG Reranker Pipeline category in audit_database,' which suggests a write operation, contradicting the readOnlyHint=true annotation. No disclosure of side effects or safety. The 'feeds' wording is ambiguous and potentially misleading.

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?

Two sentences, concise and front-loaded with key purpose. However, the mention of 'four analytics' is inconsistent with the five listed components, reducing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Does not list the four analytics, mentions five components instead. Lacks guidance on when to use this tool vs. individual analyzers. Does not explain the output schema or how results are consumed. Incomplete for a roll-up advisor with 3 parameters and output schema.

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

Parameters2/5

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

Schema description coverage is only 33% (database param described). The description mentions 'days' but does not explain its meaning or default behavior. retrieval_index is not explained at all. The description fails to compensate for low schema coverage.

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?

Clearly states it is a roll-up advisor over four analytics for one window, returns a summary and list of findings. Names specific components (reranker_idle, topk_stable, etc.). Distinguishes from sibling analytics tools by explicitly acting as a consolidator.

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

Usage Guidelines3/5

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

Implied usage as a roll-up over analytics, but no explicit when-to-use or when-not-to-use guidance. Does not mention alternatives (e.g., using individual analyzers) or exclusions.

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/devopam/MCPg'

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