• STATISTICS
  • TRENDS
  • AUDIT
  • HUMAN

How to analyze agency transparency reports with your AI

Connect FOIA.gov to your AI client to turn raw XML data into performance metrics. Once connected, your agent handles the data extraction and math.

Ask AI about this page

Short answer

How can I use AI to analyze FOIA agency reports?

Your AI uses the FOIA.gov Connector to pull raw XML annual reports directly from the source. It then processes these files to calculate processing times and agency performance trends. You get a clear statistical breakdown of agency transparency.

Data outcomes

What you get from the analysis

The AI turns raw XML into these specific outputs.

STATISTICS

Performance metrics

The AI calculates average processing times and volume trends from the XML data. You get hard numbers on how quickly agencies handle requests.

TRENDS

Year-over-year changes

By comparing multiple annual reports, your agent identifies if an agency is getting faster or falling behind. This highlights long-term transparency shifts.

AUDIT

Backlog identification

The AI scans report data to find specific agencies struggling with request volumes. You'll see exactly where bottlenecks are forming.

HUMAN

Final report review

The AI provides the raw calculations and summaries. You must review these findings to ensure the statistical interpretations match your research goals.

The workflow

What your AI does when the data arrives.

The AI moves from raw XML files to structured statistical insights.

  1. Fetch XML data

    Your agent reaches out to FOIA.gov to grab the specific annual report files you need for your study.

    get_annual_report_xml
  2. Parse report structures

    The AI reads the raw XML tags to identify key fields like request dates and agency names.

    get_annual_report_xml
  3. Run statistical math

    Your agent calculates the mean and median for processing durations across the entire dataset.

    get_annual_report_xml
  4. Summarize findings

    The AI converts the calculated numbers into a readable summary of agency performance.

    get_annual_report_xml

Try it

Copy these to start.

Use these prompts once you've connected the FOIA.gov Connector.

Starting points

These are opening lines. Swap out the agency names or years to match your specific research needs.

FOIA.gov Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_QVJ73jQfdjJfOUeBAPUp0dxxpvTDMFeaMaalwTc0/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — FOIA.gov capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "foiagov-freedom-of-information-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_QVJ73jQfdjJfOUeBAPUp0dxxpvTDMFeaMaalwTc0/mcp"
    }
  }
}
Copy into chat04
  • Get the 2023 annual report XML for the Department of Justice and summarize the total number of requests processed.

  • Compare the processing times for the FBI versus the CIA using their latest annual reports.

  • Analyze the 2022 XML report for the EPA and tell me the average number of days it took to close a request.

  • Identify any agencies in the most recent annual reports that show a significant increase in request backlogs.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect FOIA.gov once, then ask.

Click the link to connect. Your credentials stay encrypted, and you can immediately start asking your AI to pull reports.

Connect FOIA.gov to your AI

FAQ

How this task behaves

  • 01

    Can the AI submit new FOIA requests?

    No. This Connector only pulls existing annual report data from FOIA.gov. It cannot submit or track individual new requests.

  • 02

    Does the AI change the data on the government website?

    No. The AI only reads the XML files. It has no ability to modify or delete any government records.

  • 03

    What format is the data in?

    The AI pulls raw XML files, which it then parses to perform its analysis.

  • 04

    Can I analyze reports from any agency?

    Yes, as long as the agency has published its annual reports in the XML format on FOIA.gov.

  • 05

    Does the AI handle the math itself?

    Yes. Once it pulls the XML, your agent performs the statistical calculations like averages and totals.

  • More questions about FOIA.gov? See everything the FOIA.gov Connector can do

Connect FOIA.gov to Claude, Cursor, ChatGPT & more