Skip to main content
Glama
devopam

MCPg - Production-grade PostgreSQL MCP Server

Recommend headline tools

recommend_headline_tools
Read-only

Analyzes audit log to recommend which tools to headline per capability bucket, highlighting recommended newcomers and departures from current headlined tools for operator review.

Instructions

Empirically curate describe_self's per-bucket headline_tools from the audit log. Reads mcpg_audit.events over the last lookback_days (default 7, capped at 90), groups successful calls by capability bucket, and reports the top-top_n (default 6) tools per bucket with newcomers (recommended but not in the hand-curated current list) and departures (currently headlined but not in the recommendation). The output is a REVIEWABLE recommendation, not an auto-applied override — operators decide whether to update mcpg.about.CAPABILITIES. Returns audit_table_present=False with a diagnostic when the audit subsystem is off. Returns an object with audit_table_present, lookback_days, top_n, events_examined, detail, and buckets (list of objects with bucket_id, current, recommended, newcomers, departures, call_counts).

Example: recommend_headline_tools(lookback_days=14, top_n=6)

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description discloses key behavioral traits beyond annotations: it reads the audit log, uses a capped lookback window (default 7, max 90), groups by capability bucket, and returns a diagnostic when the audit subsystem is off. The annotations already declare readOnlyHint=true, and the description reinforces this by describing a read-only operation. It adds value by detailing the exact return structure and edge cases.

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 and front-loaded: the first sentence captures the core purpose. Subsequent sentences detail behavior, output structure, and an example. It is moderately concise—every sentence adds information without redundancy. The example at the end is helpful and fits within the description length.

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 that the input schema is simple (3 optional parameters with defaults), annotations are present (readOnlyHint), and output schema is partially described in the description, the description is highly complete. It covers all necessary details: key parameters, default behaviors, edge cases (audit off), and the full return structure (including nested objects). No significant gaps remain.

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 schema has 33% description coverage (only 'database' is described), but the description adds meaningful details for all parameters: it explains the purpose, default values, and constraints (e.g., lookback_days capped at 90, top_n default 6). This compensates for the schema's lack of parameter descriptions and provides clear semantics for agent invocation.

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 specific action: 'Empirically curate describe_self's per-bucket headline_tools from the audit log.' It uses a precise verb+resource structure ('curate...headline_tools') and distinguishes itself from sibling tools by explicitly referencing the per-bucket headline tools context and the describe_self scope.

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 the tool (to get a recommendation for updating headline tools) and what the output is (a reviewable recommendation, not auto-applied). It also covers the special case when the audit subsystem is off. However, it does not explicitly state when not to use it or provide alternatives among the many sibling recommend_* tools.

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