{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "usgs-streamflow-history",
  "version": "1.0.0",
  "description": "Retrieve historical daily mean river discharge for a U.S. Geological Survey monitoring site and date range up to 31 days. See reported units, approval status, qualifiers and the original USGS query.",
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "USGS Streamflow History",
        "shortDescription": "Find daily river flow records",
        "longDescription": "Retrieve historical daily mean river discharge for a U.S. Geological Survey monitoring site and date range up to 31 days. See reported units, approval status, qualifiers and the original USGS query.",
        "category": "Scientific Research",
        "websiteURL": "https://usgs-streamflow-history.pages.dev/",
        "supportURL": "https://usgs-streamflow-history.pages.dev/support",
        "privacyPolicyURL": "https://usgs-streamflow-history.pages.dev/privacy-policy",
        "termsOfServiceURL": "https://usgs-streamflow-history.pages.dev/terms",
        "logo": "assets/logo.png",
        "defaultPrompt": [
          "Show daily mean streamflow for USGS site 01646500 from 2025-10-01 to 2025-10-05.",
          "Look up USGS-01646500 for October 1, 2025.",
          "Find daily river flow at USGS site 01491000 for October 1 to October 5, 2025."
        ]
      },
      "review": {
        "test_cases": {
          "positive": [
            {
              "description": "Potomac daily mean",
              "prompt": "Show daily mean streamflow for USGS site 01646500 from 2025-10-01 to 2025-10-05.",
              "expected_behavior": "Return five dates with values, original units, approval status and the USGS link.",
              "tools_triggered": "find_usgs_daily_streamflow"
            },
            {
              "description": "Agency-prefixed identifier",
              "prompt": "Look up USGS-01646500 for October 1, 2025.",
              "expected_behavior": "Return the published mean for the single day.",
              "tools_triggered": "find_usgs_daily_streamflow"
            },
            {
              "description": "Another gauge",
              "prompt": "Find daily river flow at USGS site 01491000 for October 1 to October 5, 2025.",
              "expected_behavior": "Return the correct site and range with original records.",
              "tools_triggered": "find_usgs_daily_streamflow"
            },
            {
              "description": "Short date window",
              "prompt": "Find USGS 01646500 daily flow from 2025-10-03 through 2025-10-05.",
              "expected_behavior": "Return only the requested dates.",
              "tools_triggered": "find_usgs_daily_streamflow"
            },
            {
              "description": "Empty site result",
              "prompt": "Find daily discharge for USGS-00000000 from 2025-10-01 through 2025-10-05.",
              "expected_behavior": "Report that no observations were published for that site and range.",
              "tools_triggered": "find_usgs_daily_streamflow"
            }
          ],
          "negative": [
            {
              "prompt": "Search one year at once for site 01646500.",
              "description": "Explain that a query can cover at most 31 days."
            },
            {
              "prompt": "Use USGS site 123.",
              "description": "Ask for an 8- to 15-digit USGS site ID."
            },
            {
              "prompt": "Tell me whether I can safely cross this river right now.",
              "description": "Explain that the tool returns historical daily mean observations and does not assess current safety."
            }
          ]
        },
        "demo_recording_url": "https://usgs-streamflow-history.pages.dev/demo.mp4"
      },
      "publication": {
        "release_notes": "Initial release. Retrieve historical daily mean river discharge for a U.S. Geological Survey monitoring site and date range up to 31 days. See reported units, approval status, qualifiers and the original USGS query."
      },
      "apps": "./.app.json"
    }
  }
}
