[
  {
    "name": "nasa_get_apod",
    "description": "Get the NASA Astronomy Picture of the Day with explanation. Optionally specify a date. Example: get_apod({ date: \"2024-01-15\", _apiKey: \"DEMO_KEY\" })",
    "inputSchema": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "Date in YYYY-MM-DD format (optional, defaults to today). Range: 1995-06-16 to today."
        },
        "_apiKey": {
          "type": "string",
          "description": "NASA API key (optional, defaults to DEMO_KEY — get a free key at api.nasa.gov)"
        }
      },
      "required": []
    }
  },
  {
    "name": "get_asteroids",
    "description": "Get near-Earth asteroids approaching within a date range (max 7 days). Returns size, velocity, and miss distance. Example: get_asteroids({ start_date: \"2024-01-01\", end_date: \"2024-01-07\", _apiKey: \"DEMO_KEY\" })",
    "inputSchema": {
      "type": "object",
      "properties": {
        "start_date": {
          "type": "string",
          "description": "Start date in YYYY-MM-DD format"
        },
        "end_date": {
          "type": "string",
          "description": "End date in YYYY-MM-DD format (max 7 days after start)"
        },
        "_apiKey": {
          "type": "string",
          "description": "NASA API key (optional, defaults to DEMO_KEY)"
        }
      },
      "required": [
        "start_date",
        "end_date"
      ]
    }
  },
  {
    "name": "get_mars_photos",
    "description": "\"Show me photos from the Mars rover\" / \"Perseverance images from sol 1000\" / \"latest pictures from Mars\" — raw images from NASA's Perseverance rover (Mars 2020), straight off the mars.nasa.gov feed. Filter by Martian sol and by camera. Returns image URLs at four resolutions, the sol, the UTC and Mars-local capture times, and the camera instrument. Keyless. Covers Perseverance only — Curiosity, Opportunity and Spirit have no live public image feed. Example: get_mars_photos({ sol: 1000, camera: \"NAVCAM_LEFT\" })",
    "inputSchema": {
      "type": "object",
      "properties": {
        "sol": {
          "type": "number",
          "description": "Martian sol (mission day) to retrieve images from, e.g. 1000. Perseverance landed on sol 0 (2021-02-18) and is past sol 1900. Omit for the most recent images."
        },
        "camera": {
          "type": "string",
          "description": "Camera instrument, exact: \"NAVCAM_LEFT\", \"NAVCAM_RIGHT\", \"FRONT_HAZCAM_LEFT_A\", \"FRONT_HAZCAM_RIGHT_A\", \"REAR_HAZCAM_LEFT\", \"REAR_HAZCAM_RIGHT\", \"MCZ_LEFT\"/\"MCZ_RIGHT\" (Mastcam-Z), \"SHERLOC_WATSON\", \"SUPERCAM_RMI\", \"SKYCAM\", \"PIXL_MCC\", \"CACHECAM\". Short forms FHAZ/RHAZ/NAVCAM/MAST are accepted. Optional."
        },
        "limit": {
          "type": "number",
          "description": "Max images to return (default 20, max 100)."
        }
      },
      "required": []
    }
  },
  {
    "name": "search_nasa_images",
    "description": "Search the NASA Image and Video Library for images/videos of any subject — planets, missions, astronauts, launches, galaxies, etc. PREFER for \"NASA photos of Jupiter\", \"images of the Apollo 11 mission\", \"pictures of a nebula\". Returns title, description, date, NASA ID, media type, and a thumbnail URL. Keyless.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "Search terms, e.g. \"jupiter\", \"apollo 11\", \"crab nebula\"."
        },
        "media_type": {
          "type": "string",
          "description": "Optional filter: \"image\", \"video\", or \"audio\"."
        },
        "limit": {
          "type": "number",
          "description": "Max results to return (default 10, max 50)."
        }
      },
      "required": [
        "query"
      ]
    }
  },
  {
    "name": "get_solar_flares",
    "description": "Get recent solar flare events from NASA DONKI space-weather data. Returns each flare's class (e.g. C4.0, M1.8, X1.2), begin/peak/end times, source region, and active region number. Use for \"recent solar flares\", \"is there solar activity / a solar storm\", space-weather questions.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "start_date": {
          "type": "string",
          "description": "Start date YYYY-MM-DD (optional; default ~30 days ago)."
        },
        "end_date": {
          "type": "string",
          "description": "End date YYYY-MM-DD (optional; default today)."
        },
        "_apiKey": {
          "type": "string",
          "description": "NASA API key (optional, defaults to DEMO_KEY)"
        }
      },
      "required": []
    }
  },
  {
    "name": "donki_cme",
    "description": "\"Was there a coronal mass ejection this week?\" / \"is a CME heading for Earth?\" — coronal mass ejections catalogued by NASA DONKI, the space-weather event database run by NASA's Community Coordinated Modeling Center. AUTHORITATIVE for CME occurrence and geometry: returns each eruption's start time, the instruments that saw it, the analysts' note describing the source region, and for analysed events the modelled speed in km/s, the direction (latitude/longitude on the solar disk), half-angle width and whether the analysis is the most accurate available. A CME is the thing that causes an aurora or a satellite drag event two or three days later, so speed plus direction is what says whether it will reach Earth.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "start_date": {
          "type": "string",
          "description": "Start date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago)."
        },
        "end_date": {
          "type": "string",
          "description": "End date YYYY-MM-DD (optional; defaults to today)."
        },
        "min_speed_km_s": {
          "type": "number",
          "description": "Only return CMEs whose best analysis measured at least this speed in km/s. ~500 is fast, ~1000+ is a major event."
        },
        "limit": {
          "type": "number",
          "description": "Max events to return (default 50, max 200)."
        },
        "_apiKey": {
          "type": "string",
          "description": "NASA API key (optional, defaults to DEMO_KEY)"
        }
      },
      "required": []
    }
  },
  {
    "name": "donki_geomagnetic_storms",
    "description": "\"Was there a geomagnetic storm?\" / \"will there be an aurora tonight?\" / \"how strong was the Kp index?\" — geomagnetic storm events from NASA DONKI, each with the full series of observed Kp index readings and their timestamps. AUTHORITATIVE for whether Earth's magnetic field was actually disturbed, as opposed to whether a flare happened: Kp 5 is a minor storm, Kp 7 puts aurora over the northern US and northern Europe, Kp 8-9 is severe. Also returns the CMEs and shocks DONKI linked to each storm, so you can trace a storm back to the eruption that caused it.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "start_date": {
          "type": "string",
          "description": "Start date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago)."
        },
        "end_date": {
          "type": "string",
          "description": "End date YYYY-MM-DD (optional; defaults to today)."
        },
        "min_kp": {
          "type": "number",
          "description": "Only return storms whose peak observed Kp reached at least this value (5 = minor storm, 7 = strong, 9 = extreme)."
        },
        "limit": {
          "type": "number",
          "description": "Max storms to return (default 50, max 200)."
        },
        "_apiKey": {
          "type": "string",
          "description": "NASA API key (optional, defaults to DEMO_KEY)"
        }
      },
      "required": []
    }
  },
  {
    "name": "donki_solar_energetic_particles",
    "description": "Solar energetic particle (SEP) events from NASA DONKI — bursts of high-energy protons arriving at Earth after a flare or CME. These are the events behind radiation warnings for polar airline routes, astronaut EVA holds and satellite single-event upsets. Returns the event time, the detecting instruments and energy channels (e.g. \"GOES-P: SEISS >10 MeV\"), and the flare or CME DONKI linked as the source.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "start_date": {
          "type": "string",
          "description": "Start date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago). SEP events are rare — a year-wide window is often the right query."
        },
        "end_date": {
          "type": "string",
          "description": "End date YYYY-MM-DD (optional; defaults to today)."
        },
        "limit": {
          "type": "number",
          "description": "Max events to return (default 50, max 200)."
        },
        "_apiKey": {
          "type": "string",
          "description": "NASA API key (optional, defaults to DEMO_KEY)"
        }
      },
      "required": []
    }
  },
  {
    "name": "donki_notifications",
    "description": "\"What is the current space weather forecast?\" — the alerts, watches, warnings and weekly summary reports NASA DONKI issues to spacecraft operators. This is the narrative layer over the event catalogues: a human forecaster's text saying what happened, what is expected and what the impact is. Filter by message type (alert, watch, warning, summary) or by event class (CME, flare, geomagnetic storm, SEP, radiation belt enhancement).",
    "inputSchema": {
      "type": "object",
      "properties": {
        "start_date": {
          "type": "string",
          "description": "Start date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago)."
        },
        "end_date": {
          "type": "string",
          "description": "End date YYYY-MM-DD (optional; defaults to today)."
        },
        "type": {
          "type": "string",
          "description": "Message class: \"all\" (default), \"FLR\" (flare), \"SEP\", \"CME\", \"IPS\" (interplanetary shock), \"MPC\" (magnetopause crossing), \"GST\" (geomagnetic storm), \"RBE\" (radiation belt enhancement), \"report\" (weekly summary)."
        },
        "message_type": {
          "type": "string",
          "description": "Filter the returned rows by the DONKI messageType field: \"Alert\", \"Watch\", \"Warning\" or \"Report\". Applied after fetching."
        },
        "limit": {
          "type": "number",
          "description": "Max messages to return (default 20, max 100)."
        },
        "include_body": {
          "type": "boolean",
          "description": "Include the full message text (default true). Set false for a compact index — these bodies are long."
        },
        "_apiKey": {
          "type": "string",
          "description": "NASA API key (optional, defaults to DEMO_KEY)"
        }
      },
      "required": []
    }
  }
]
