Skip to main content
Glama
postgresai

postgresai

Official

list_report_files

Lists metadata for files in a Postgres checkup report, filtered by report ID or check ID. Use it to discover available JSON or markdown report files before viewing findings or recommendations.

Instructions

List files in a checkup report (metadata only, no content). Checkup reports are JSON, one file per check. Either report_id or check_id must be provided. For findings and recommendations, use the issues tools (list_issues, view_issue).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_report_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFile type: 'json' (default), or 'md' for markdown that the legacy postgres-checkup tool uploaded
debugNoEnable verbose debug logs
org_idNoOrganization ID. Optional with a per-organization token (uses the stored org); REQUIRED with a global token, which can reach every organization the user belongs to and will not assume one. Use orgs_list / `pgai orgs` to discover valid values.
check_idNoFilter by check ID (e.g., 'H002', 'F004')
report_idNoCheckup report ID (optional if check_id is provided)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses that only metadata is returned and no file content, which sets expectations. It does not state the operation is read-only in explicit terms, nor does it cover result volume, ordering, or pagination behavior for a report that may hold many files.

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?

Three short sentences, front-loaded with the action and scope, then the requirement, then the alternative route. No filler and nothing repeated from the schema.

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?

For a five-parameter, fully documented list tool with no output schema, the description covers purpose, the key required-one-of constraint, what is and is not returned, and where to go instead. Remaining gaps (pagination, sort order, shape of the metadata) are minor given the rich schema descriptions.

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%, so the baseline is 3, but the description adds a genuine cross-parameter constraint — "Either report_id or check_id must be provided" — which the schema does not enforce given that both are declared non-required. That single clause materially changes how the agent constructs the call.

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?

"List files in a checkup report" gives a specific verb and resource, and the parenthetical "metadata only, no content" pins down the exact scope. It also routes the agent away from the issues tools, so it is distinguishable from the sibling set without opening a schema.

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?

It states the selection constraint (report_id or check_id must be supplied) and explicitly redirects to list_issues/view_issue for findings and recommendations. It does not, however, explain when to prefer this over other file-related siblings such as download_file, which is the natural next step after listing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.