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
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | File type: 'json' (default), or 'md' for markdown that the legacy postgres-checkup tool uploaded | |
| debug | No | Enable verbose debug logs | |
| org_id | No | Organization 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_id | No | Filter by check ID (e.g., 'H002', 'F004') | |
| report_id | No | Checkup report ID (optional if check_id is provided) |