Skip to main content
Glama
postgresai

postgresai

Official

get_report_data

Retrieve checkup report data as JSON or markdown by report ID or check ID to inspect individual check results before using issue tools for findings.

Instructions

Get checkup report file content: the JSON data of each check, in a 'data' field. 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": "get_report_data"
  }
}

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.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return payload layout (check data under a 'data' field), but says nothing about authorization requirements, error behavior when neither ID is supplied, or payload size/limits.

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?

Two sentences, both front-loaded: the primary output contract comes first, then the ID requirement, then the deflecting pointer to sibling tools. No filler.

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

Completeness3/5

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

With no output schema and no annotations, the description would ideally cover failure modes (missing IDs, unknown report) and permission expectations. It covers the happy-path return shape adequately but leaves the operator without guidance on error handling.

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; the description earns an extra point by promoting the either/or relationship between report_id and check_id to a global requirement, which the schema only states one-directionally on report_id.

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?

States a specific verb and resource ("Get checkup report file content") plus the shape of the payload ("JSON data of each check, in a 'data' field"). It also explicitly names what this tool does not cover and points to the sibling tools that do (list_issues, view_issue).

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?

Gives a hard selection constraint ("Either report_id or check_id must be provided") that the schema does not enforce, and routes findings/recommendations queries to the issues tools. It stops short of explaining when to prefer report_id over check_id or when the 'md' type variant is the right choice.

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