{"at":"2026-11-23T02:49:19.218Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:49:20.263Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"gracedb-mcp","version":"0.4.0"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T02:49:20.263Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:49:20.265Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"gracedb-mcp","version":"0.4.0"}},"cacheScope":"private","resultType":"complete","tools":[{"description":"Search GraceDB superevents, newest first.\n\nArgs:\n    start: Inclusive lower bound on creation time (ISO-8601, e.g. ``2023-05-01``\n        or ``2023-05-01T00:00:00``). Optional.\n    end: Inclusive upper bound on creation time (same format). Optional.\n    max_far: Maximum false-alarm rate in Hz. Lower = more significant. A common\n        \"confident detection\" threshold is ``3.2e-8`` (~1 per year). Optional.\n    min_confidence: Minimum astrophysical probability in [0, 1], computed as\n        ``1 - P(Terrestrial)`` from each event's p_astro file. Applied as a\n        post-filter (requires extra fetches per event). Optional.\n    category: ``Production`` (real alerts), ``MDC`` (simulated signals injected\n        continuously, useful for testing) or ``Test``.\n    max_results: Maximum number of superevents to return.\n\nReturns:\n    A dict with the resolved ``query`` string and a list of matching ``superevents``.\n","inputSchema":{"properties":{"category":{"default":"Production","title":"Category","type":"string"},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End"},"max_far":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Max Far"},"max_results":{"default":20,"title":"Max Results","type":"integer"},"min_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min Confidence"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start"}},"title":"search_supereventsArguments","type":"object"},"name":"search_superevents","outputSchema":{"additionalProperties":true,"title":"search_supereventsDictOutput","type":"object"}},{"description":"Fetch the full record and source classification for one superevent.\n\nArgs:\n    graceid: The superevent id, e.g. ``S230518h``.\n\nReturns:\n    A dict with the raw superevent record, the available file list, the\n    parsed source-classification probabilities (BBH / BNS / NSBH / Terrestrial)\n    when a p_astro file has been published, and ``pipelines``: each search\n    pipeline's best candidate (O4 onwards), so you can see which pipelines\n    found the signal and how significant each one rated it.\n","inputSchema":{"properties":{"graceid":{"title":"Graceid","type":"string"}},"required":["graceid"],"title":"get_event_metadataArguments","type":"object"},"name":"get_event_metadata","outputSchema":{"additionalProperties":true,"title":"get_event_metadataDictOutput","type":"object"}},{"description":"Download GraceDB artifacts (skymaps, p_astro, PE results, logs) for an event.\n\nThese are the files GraceDB actually hosts. This is NOT raw strain data\n(use ``download_strain_data`` for that).\n\nArgs:\n    graceid: The superevent id, e.g. ``S230518h``.\n    filenames: Specific filenames to download. If omitted, downloads every\n        file attached to the superevent.\n\nReturns:\n    A dict mapping each requested filename to the local path it was saved to,\n    and ``resources`` mapping it to a ``gracedb://`` URI readable over MCP\n    (files over 50 MB are local only).\n","inputSchema":{"properties":{"filenames":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Filenames"},"graceid":{"title":"Graceid","type":"string"}},"required":["graceid"],"title":"download_event_filesArguments","type":"object"},"name":"download_event_files","outputSchema":{"additionalProperties":true,"title":"download_event_filesDictOutput","type":"object"}},{"description":"GraceDB labels on a superevent, in the order they were applied, with meanings.\n\nLabels record the event's history: data-quality checks (DQOK, DQV), human\nreview (ADVOK, ADVNO = retracted), injections (INJ), and which products are\nready (SKYMAP_READY, PE_READY).\n\nArgs:\n    graceid: The superevent id, e.g. ``S190814bv``.\n","inputSchema":{"properties":{"graceid":{"title":"Graceid","type":"string"}},"required":["graceid"],"title":"get_event_labelsArguments","type":"object"},"name":"get_event_labels","outputSchema":{"additionalProperties":true,"title":"get_event_labelsDictOutput","type":"object"}},{"description":"Audit the public alerts of a period: how many, how many retracted, how fast, and by whom.\n\nCounts all superevents created in the period, the significant public alerts\n(label GCN_PRELIM_SENT) and the alerts sent only as low-significance\n(LOW_SIGNIF_PRELIM_SENT, O4 onwards). Breaks the significant alerts down by\ndetector network, pipeline and search, and lists every retracted superevent\n(ADVNO) with the hours from creation to retraction. GraceDB does not record why\nan alert was retracted: read the LVK retraction circular (``search_gcn_circulars``).\n\nArgs:\n    start: Start of the period (ISO-8601 date or time, UTC); matched against\n        superevent creation time.\n    end: End of the period, inclusive.\n    category: ``Production`` (real alerts), ``MDC`` (simulated) or ``Test``.\n","inputSchema":{"properties":{"category":{"default":"Production","title":"Category","type":"string"},"end":{"title":"End","type":"string"},"start":{"title":"Start","type":"string"}},"required":["start","end"],"title":"audit_alertsArguments","type":"object"},"name":"audit_alerts","outputSchema":{"additionalProperties":true,"title":"audit_alertsDictOutput","type":"object"}},{"description":"Search published gravitational-wave events in the GWOSC catalogues.\n\nUnlike GraceDB alerts, catalogue events are vetted detections with estimated\nsource parameters. Each event appears once, in its newest version.\n\nArgs:\n    catalog: Restrict to one catalogue, e.g. ``GWTC-1-confident``,\n        ``GWTC-2.1-confident``, ``GWTC-3-confident``, ``GWTC-4.0``. Omit for all.\n    gps_start: Earliest event GPS time. Optional.\n    gps_end: Latest event GPS time. Optional.\n    min_snr: Minimum network matched-filter SNR (louder signals are clearer).\n    min_p_astro: Minimum probability of astrophysical origin, 0-1.\n    min_total_mass: Minimum total source-frame mass in solar masses.\n    max_total_mass: Maximum total source-frame mass in solar masses.\n    max_distance_mpc: Maximum luminosity distance in megaparsecs.\n    max_results: Maximum number of events to return (newest first).\n\nReturns:\n    ``count`` of all matches and up to ``max_results`` event summaries with\n    masses, distance, redshift, spin (chi_eff), SNR, FAR and p_astro.\n","inputSchema":{"properties":{"catalog":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Catalog"},"gps_end":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps End"},"gps_start":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Start"},"max_distance_mpc":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Max Distance Mpc"},"max_results":{"default":50,"title":"Max Results","type":"integer"},"max_total_mass":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Max Total Mass"},"min_p_astro":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min P Astro"},"min_snr":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min Snr"},"min_total_mass":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min Total Mass"}},"title":"search_catalog_eventsArguments","type":"object"},"name":"search_catalog_events","outputSchema":{"additionalProperties":true,"title":"search_catalog_eventsDictOutput","type":"object"}},{"description":"Source parameters for one published event, with 90% credible intervals.\n\nArgs:\n    name: A catalogue name such as ``GW150914`` or ``GW200129_065458``, or a\n        GraceDB superevent id such as ``S190814bv`` (matched by GPS time).\n\nReturns:\n    Masses, distance, redshift, spin, SNR, FAR and p_astro as\n    ``{value, interval_90}``, plus the GraceDB id, available strain files,\n    parameter-estimation sets and the GWOSC event page.\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"get_catalog_eventArguments","type":"object"},"name":"get_catalog_event","outputSchema":{"additionalProperties":true,"title":"get_catalog_eventDictOutput","type":"object"}},{"description":"Search NASA GCN Circulars: rapid reports from telescopes, satellites and neutrino\ndetectors about transients, including follow-up of gravitational-wave alerts.\n\nReports name gravitational-wave events by their GraceDB id (``S230518h``), so a\ncatalogue name such as ``GW190814`` is also searched as ``S190814bv``.\n\nArgs:\n    event: An event name: GraceDB id (``S230518h``), GW name (``GW170817``), GRB\n        (``GRB 230518A``), IceCube alert (``IceCube-261020A``), etc. Matches\n        circulars with the name in their subject, i.e. reports about the event.\n    query: Free search in Lucene syntax over ``subject``, ``body`` and ``submitter``,\n        e.g. ``subject:\"Fermi\" AND body:\"upper limit\"``. Combined with ``event``\n        using AND when both are given. Use ``body:\"S230518h\"`` to also find\n        circulars that only mention an event in passing.\n    start_date: Only circulars submitted on or after this date (``YYYY-MM-DD``).\n    end_date: Only circulars submitted on or before this date (``YYYY-MM-DD``).\n    sort: ``newest`` (default) or ``relevance`` (best for well-studied events with\n        hundreds of circulars, such as GW170817).\n    page: Page of results, for more than ``max_results`` matches.\n    include_bodies: Include each circular's full text (about 1-3 kB each).\n    max_results: Circulars per page, at most 50.\n\nReturns:\n    ``total`` matching circulars and one page of them with id, subject, event,\n    submission time, links (GCN page, ADS for citation), and optionally the text;\n    plus ``archive_url`` to see the same search on the GCN website.\n","inputSchema":{"properties":{"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End Date"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Event"},"include_bodies":{"default":false,"title":"Include Bodies","type":"boolean"},"max_results":{"default":25,"title":"Max Results","type":"integer"},"page":{"default":1,"title":"Page","type":"integer"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Query"},"sort":{"default":"newest","title":"Sort","type":"string"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start Date"}},"title":"search_gcn_circularsArguments","type":"object"},"name":"search_gcn_circulars","outputSchema":{"additionalProperties":true,"title":"search_gcn_circularsDictOutput","type":"object"}},{"description":"Full text of one GCN Circular, with its links (GCN page, ADS for citation).\n\nArgs:\n    circular_id: The circular number, e.g. ``33813``.\n","inputSchema":{"properties":{"circular_id":{"title":"Circular Id","type":"integer"}},"required":["circular_id"],"title":"get_gcn_circularArguments","type":"object"},"name":"get_gcn_circular","outputSchema":{"additionalProperties":true,"title":"get_gcn_circularDictOutput","type":"object"}},{"description":"Download public strain time series around an event from GWOSC.\n\nIMPORTANT: GraceDB does not host raw strain. This tool reads the event GPS\ntime (``t_0``) from GraceDB, then fetches open strain from GWOSC. It only\nsucceeds for events whose data has been publicly released (past observing\nruns); fresh low-latency alerts will not have public strain yet.\n\nRequires the optional ``gwpy`` dependency (``pip install gracedb-mcp[strain]``).\n\nArgs:\n    graceid: The superevent id, e.g. ``S190814bv``. When ``gps_time`` is given\n        this is only used as the output folder name (e.g. ``GW150914``).\n    detectors: Detector prefixes to fetch, e.g. ``[\"H1\", \"L1\", \"V1\"]``.\n        Defaults to H1 and L1.\n    duration: Length of the segment in seconds, centred on ``t_0``. Up to 30 s\n        fits the short file GWOSC publishes around catalogue events (the event is\n        not exactly centred in it); longer windows read ~100 MB hour-long files.\n    sample_rate: Target sample rate in Hz (4096 or 16384 typically).\n    gps_time: Centre time in GPS seconds. Skips the GraceDB lookup, which is\n        needed for O1 events such as GW150914 (``1126259462.4``) that predate\n        GraceDB superevents.\n\nReturns:\n    A dict mapping each detector to the saved ``.hdf5`` strain file path, and\n    ``resources`` mapping it to a ``gracedb://`` URI readable over MCP.\n","inputSchema":{"properties":{"detectors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Detectors"},"duration":{"default":30.0,"title":"Duration","type":"number"},"gps_time":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Time"},"graceid":{"title":"Graceid","type":"string"},"sample_rate":{"default":4096,"title":"Sample Rate","type":"integer"}},"required":["graceid"],"title":"download_strain_dataArguments","type":"object"},"name":"download_strain_data","outputSchema":{"additionalProperties":true,"title":"download_strain_dataDictOutput","type":"object"}},{"description":"Convert an ISO-8601 UTC timestamp to GPS seconds (handy for building queries).\n\nArgs:\n    iso_timestamp: e.g. ``2015-09-14T09:50:45`` (UTC assumed if no tz given).\n","inputSchema":{"properties":{"iso_timestamp":{"title":"Iso Timestamp","type":"string"}},"required":["iso_timestamp"],"title":"utc_to_gpsArguments","type":"object"},"name":"utc_to_gps","outputSchema":{"additionalProperties":true,"title":"utc_to_gpsDictOutput","type":"object"}},{"description":"Check which detectors have public GWOSC strain data for a time span.\n\nCall this before ``download_strain_data``. Public strain exists only for\nreleased observing runs, and detectors are often offline, so coverage is\nfrequently partial.\n\nArgs:\n    gps_start: Start of the span in GPS seconds. Use together with ``gps_end``.\n    gps_end: End of the span in GPS seconds, at most 7 days after ``gps_start``.\n    event: Instead of a span, a GraceDB superevent id (``S190814bv``) or a\n        catalogue name (``GW150914``); checks ``window`` seconds centred on it.\n    window: Span in seconds around ``event``.\n    detectors: Detectors to check. Defaults to H1, L1, V1 and K1.\n\nReturns:\n    For each detector, the public data segments and the fraction of the span\n    they cover. ``available`` lists detectors with complete coverage, also\n    counting the short files GWOSC publishes around catalogue events.\n","inputSchema":{"properties":{"detectors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Detectors"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Event"},"gps_end":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps End"},"gps_start":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Start"},"window":{"default":64.0,"title":"Window","type":"number"}},"title":"check_data_availabilityArguments","type":"object"},"name":"check_data_availability","outputSchema":{"additionalProperties":true,"title":"check_data_availabilityDictOutput","type":"object"}},{"description":"Observing runs whose data GWOSC has publicly released, oldest first.\n\nArgs:\n    gps: Optional GPS time; the answer says which released run covers it, or that\n        it falls outside every released run (detectors off, or data not public yet).\n\nReturns:\n    Each run's name, GPS and UTC span, detectors and dataset DOI (cite it when\n    using the data).\n","inputSchema":{"properties":{"gps":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps"}},"title":"list_observing_runsArguments","type":"object"},"name":"list_observing_runs","outputSchema":{"additionalProperties":true,"title":"list_observing_runsDictOutput","type":"object"}},{"description":"Data-quality flags for each detector over a span, from GWOSC.\n\nFlags say whether data passes each search's vetoes: CBC (compact binaries), BURST,\nCW (continuous waves) and STOCH (stochastic background), at categories CAT1 (most\nbasic checks) to CAT3 (strictest). ``NO_<search>_HW_INJ`` flags mark time free of\nhardware injections, simulated signals physically added to the detector. CW\ninjections are weak, long-lasting signals present for much of each run; they matter\nfor continuous-wave searches, not for transients such as compact-binary mergers.\n\nArgs:\n    gps_start: Start of the span in GPS seconds. Use together with ``gps_end``.\n    gps_end: End of the span in GPS seconds, at most 7 days after ``gps_start``.\n    event: Instead of a span, a GraceDB superevent id or catalogue name; checks\n        ``window`` seconds centred on it.\n    window: Span in seconds around ``event``.\n    detectors: Detectors to check. Defaults to H1, L1, V1 and K1.\n\nReturns:\n    Per detector: ``data_coverage`` (fraction of the span with public data),\n    ``failed`` (flags vetoing part of the time that has data), hardware\n    injections in that time, and every flag's coverage.\n","inputSchema":{"properties":{"detectors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Detectors"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Event"},"gps_end":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps End"},"gps_start":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Start"},"window":{"default":64.0,"title":"Window","type":"number"}},"title":"check_data_qualityArguments","type":"object"},"name":"check_data_quality","outputSchema":{"additionalProperties":true,"title":"check_data_qualityDictOutput","type":"object"}},{"description":"Analyse a gravitational-wave sky map: how big the localisation is, how far away,\nand how likely given sky positions or telescope fields are to contain the source.\n\nArgs:\n    graceid: Superevent id, e.g. ``S230518h``.\n    filename: Sky map to use, e.g. ``bayestar.multiorder.fits``. Defaults to the\n        most recently uploaded one; later maps (Bilby, publication maps) are\n        usually more accurate than the rapid BAYESTAR map.\n    positions: Up to 100 sky positions (e.g. candidate host galaxies or optical\n        transients) to check.\n    fields: Up to 20 circular telescope fields; returns the probability inside each.\n\nReturns:\n    50% and 90% credible areas (deg^2), the overall distance estimate (Mpc), the\n    most probable position, and the other available sky maps. For each position:\n    the credible level (smallest credible region containing it; below 0.9 means\n    inside the 90% region), probability density per deg^2 and, inside the 99%\n    region, the distance along that line of sight (compare it with a galaxy's\n    distance before calling it a likely host). For each field: the enclosed\n    probability.\n","inputSchema":{"$defs":{"SkyPosition":{"properties":{"dec":{"description":"Declination in degrees (J2000).","maximum":90,"minimum":-90,"title":"Dec","type":"number"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Label, e.g. a galaxy name.","title":"Name"},"ra":{"description":"Right ascension in degrees (J2000).","exclusiveMaximum":360,"minimum":0,"title":"Ra","type":"number"}},"required":["ra","dec"],"title":"SkyPosition","type":"object"},"TelescopeField":{"properties":{"dec":{"description":"Declination in degrees (J2000).","maximum":90,"minimum":-90,"title":"Dec","type":"number"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Label, e.g. a galaxy name.","title":"Name"},"ra":{"description":"Right ascension in degrees (J2000).","exclusiveMaximum":360,"minimum":0,"title":"Ra","type":"number"},"radius":{"description":"Field radius in degrees.","exclusiveMinimum":0,"maximum":30,"title":"Radius","type":"number"}},"required":["ra","dec","radius"],"title":"TelescopeField","type":"object"}},"properties":{"fields":{"anyOf":[{"items":{"$ref":"#/$defs/TelescopeField"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Filename"},"graceid":{"title":"Graceid","type":"string"},"positions":{"anyOf":[{"items":{"$ref":"#/$defs/SkyPosition"},"type":"array"},{"type":"null"}],"default":null,"title":"Positions"}},"required":["graceid"],"title":"analyze_skymapArguments","type":"object"},"name":"analyze_skymap","outputSchema":{"additionalProperties":true,"title":"analyze_skymapDictOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T02:49:20.416Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:49:21.521Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"gracedb-mcp","version":"0.4.0"}}}}
{"at":"2026-11-23T02:49:21.521Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:49:21.521Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:49:21.523Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Search GraceDB superevents, newest first.\n\nArgs:\n    start: Inclusive lower bound on creation time (ISO-8601, e.g. ``2023-05-01``\n        or ``2023-05-01T00:00:00``). Optional.\n    end: Inclusive upper bound on creation time (same format). Optional.\n    max_far: Maximum false-alarm rate in Hz. Lower = more significant. A common\n        \"confident detection\" threshold is ``3.2e-8`` (~1 per year). Optional.\n    min_confidence: Minimum astrophysical probability in [0, 1], computed as\n        ``1 - P(Terrestrial)`` from each event's p_astro file. Applied as a\n        post-filter (requires extra fetches per event). Optional.\n    category: ``Production`` (real alerts), ``MDC`` (simulated signals injected\n        continuously, useful for testing) or ``Test``.\n    max_results: Maximum number of superevents to return.\n\nReturns:\n    A dict with the resolved ``query`` string and a list of matching ``superevents``.\n","inputSchema":{"properties":{"category":{"default":"Production","title":"Category","type":"string"},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End"},"max_far":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Max Far"},"max_results":{"default":20,"title":"Max Results","type":"integer"},"min_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min Confidence"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start"}},"title":"search_supereventsArguments","type":"object"},"name":"search_superevents","outputSchema":{"additionalProperties":true,"title":"search_supereventsDictOutput","type":"object"}},{"description":"Fetch the full record and source classification for one superevent.\n\nArgs:\n    graceid: The superevent id, e.g. ``S230518h``.\n\nReturns:\n    A dict with the raw superevent record, the available file list, the\n    parsed source-classification probabilities (BBH / BNS / NSBH / Terrestrial)\n    when a p_astro file has been published, and ``pipelines``: each search\n    pipeline's best candidate (O4 onwards), so you can see which pipelines\n    found the signal and how significant each one rated it.\n","inputSchema":{"properties":{"graceid":{"title":"Graceid","type":"string"}},"required":["graceid"],"title":"get_event_metadataArguments","type":"object"},"name":"get_event_metadata","outputSchema":{"additionalProperties":true,"title":"get_event_metadataDictOutput","type":"object"}},{"description":"Download GraceDB artifacts (skymaps, p_astro, PE results, logs) for an event.\n\nThese are the files GraceDB actually hosts. This is NOT raw strain data\n(use ``download_strain_data`` for that).\n\nArgs:\n    graceid: The superevent id, e.g. ``S230518h``.\n    filenames: Specific filenames to download. If omitted, downloads every\n        file attached to the superevent.\n\nReturns:\n    A dict mapping each requested filename to the local path it was saved to,\n    and ``resources`` mapping it to a ``gracedb://`` URI readable over MCP\n    (files over 50 MB are local only).\n","inputSchema":{"properties":{"filenames":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Filenames"},"graceid":{"title":"Graceid","type":"string"}},"required":["graceid"],"title":"download_event_filesArguments","type":"object"},"name":"download_event_files","outputSchema":{"additionalProperties":true,"title":"download_event_filesDictOutput","type":"object"}},{"description":"GraceDB labels on a superevent, in the order they were applied, with meanings.\n\nLabels record the event's history: data-quality checks (DQOK, DQV), human\nreview (ADVOK, ADVNO = retracted), injections (INJ), and which products are\nready (SKYMAP_READY, PE_READY).\n\nArgs:\n    graceid: The superevent id, e.g. ``S190814bv``.\n","inputSchema":{"properties":{"graceid":{"title":"Graceid","type":"string"}},"required":["graceid"],"title":"get_event_labelsArguments","type":"object"},"name":"get_event_labels","outputSchema":{"additionalProperties":true,"title":"get_event_labelsDictOutput","type":"object"}},{"description":"Audit the public alerts of a period: how many, how many retracted, how fast, and by whom.\n\nCounts all superevents created in the period, the significant public alerts\n(label GCN_PRELIM_SENT) and the alerts sent only as low-significance\n(LOW_SIGNIF_PRELIM_SENT, O4 onwards). Breaks the significant alerts down by\ndetector network, pipeline and search, and lists every retracted superevent\n(ADVNO) with the hours from creation to retraction. GraceDB does not record why\nan alert was retracted: read the LVK retraction circular (``search_gcn_circulars``).\n\nArgs:\n    start: Start of the period (ISO-8601 date or time, UTC); matched against\n        superevent creation time.\n    end: End of the period, inclusive.\n    category: ``Production`` (real alerts), ``MDC`` (simulated) or ``Test``.\n","inputSchema":{"properties":{"category":{"default":"Production","title":"Category","type":"string"},"end":{"title":"End","type":"string"},"start":{"title":"Start","type":"string"}},"required":["start","end"],"title":"audit_alertsArguments","type":"object"},"name":"audit_alerts","outputSchema":{"additionalProperties":true,"title":"audit_alertsDictOutput","type":"object"}},{"description":"Search published gravitational-wave events in the GWOSC catalogues.\n\nUnlike GraceDB alerts, catalogue events are vetted detections with estimated\nsource parameters. Each event appears once, in its newest version.\n\nArgs:\n    catalog: Restrict to one catalogue, e.g. ``GWTC-1-confident``,\n        ``GWTC-2.1-confident``, ``GWTC-3-confident``, ``GWTC-4.0``. Omit for all.\n    gps_start: Earliest event GPS time. Optional.\n    gps_end: Latest event GPS time. Optional.\n    min_snr: Minimum network matched-filter SNR (louder signals are clearer).\n    min_p_astro: Minimum probability of astrophysical origin, 0-1.\n    min_total_mass: Minimum total source-frame mass in solar masses.\n    max_total_mass: Maximum total source-frame mass in solar masses.\n    max_distance_mpc: Maximum luminosity distance in megaparsecs.\n    max_results: Maximum number of events to return (newest first).\n\nReturns:\n    ``count`` of all matches and up to ``max_results`` event summaries with\n    masses, distance, redshift, spin (chi_eff), SNR, FAR and p_astro.\n","inputSchema":{"properties":{"catalog":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Catalog"},"gps_end":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps End"},"gps_start":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Start"},"max_distance_mpc":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Max Distance Mpc"},"max_results":{"default":50,"title":"Max Results","type":"integer"},"max_total_mass":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Max Total Mass"},"min_p_astro":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min P Astro"},"min_snr":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min Snr"},"min_total_mass":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Min Total Mass"}},"title":"search_catalog_eventsArguments","type":"object"},"name":"search_catalog_events","outputSchema":{"additionalProperties":true,"title":"search_catalog_eventsDictOutput","type":"object"}},{"description":"Source parameters for one published event, with 90% credible intervals.\n\nArgs:\n    name: A catalogue name such as ``GW150914`` or ``GW200129_065458``, or a\n        GraceDB superevent id such as ``S190814bv`` (matched by GPS time).\n\nReturns:\n    Masses, distance, redshift, spin, SNR, FAR and p_astro as\n    ``{value, interval_90}``, plus the GraceDB id, available strain files,\n    parameter-estimation sets and the GWOSC event page.\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"get_catalog_eventArguments","type":"object"},"name":"get_catalog_event","outputSchema":{"additionalProperties":true,"title":"get_catalog_eventDictOutput","type":"object"}},{"description":"Search NASA GCN Circulars: rapid reports from telescopes, satellites and neutrino\ndetectors about transients, including follow-up of gravitational-wave alerts.\n\nReports name gravitational-wave events by their GraceDB id (``S230518h``), so a\ncatalogue name such as ``GW190814`` is also searched as ``S190814bv``.\n\nArgs:\n    event: An event name: GraceDB id (``S230518h``), GW name (``GW170817``), GRB\n        (``GRB 230518A``), IceCube alert (``IceCube-261020A``), etc. Matches\n        circulars with the name in their subject, i.e. reports about the event.\n    query: Free search in Lucene syntax over ``subject``, ``body`` and ``submitter``,\n        e.g. ``subject:\"Fermi\" AND body:\"upper limit\"``. Combined with ``event``\n        using AND when both are given. Use ``body:\"S230518h\"`` to also find\n        circulars that only mention an event in passing.\n    start_date: Only circulars submitted on or after this date (``YYYY-MM-DD``).\n    end_date: Only circulars submitted on or before this date (``YYYY-MM-DD``).\n    sort: ``newest`` (default) or ``relevance`` (best for well-studied events with\n        hundreds of circulars, such as GW170817).\n    page: Page of results, for more than ``max_results`` matches.\n    include_bodies: Include each circular's full text (about 1-3 kB each).\n    max_results: Circulars per page, at most 50.\n\nReturns:\n    ``total`` matching circulars and one page of them with id, subject, event,\n    submission time, links (GCN page, ADS for citation), and optionally the text;\n    plus ``archive_url`` to see the same search on the GCN website.\n","inputSchema":{"properties":{"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End Date"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Event"},"include_bodies":{"default":false,"title":"Include Bodies","type":"boolean"},"max_results":{"default":25,"title":"Max Results","type":"integer"},"page":{"default":1,"title":"Page","type":"integer"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Query"},"sort":{"default":"newest","title":"Sort","type":"string"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start Date"}},"title":"search_gcn_circularsArguments","type":"object"},"name":"search_gcn_circulars","outputSchema":{"additionalProperties":true,"title":"search_gcn_circularsDictOutput","type":"object"}},{"description":"Full text of one GCN Circular, with its links (GCN page, ADS for citation).\n\nArgs:\n    circular_id: The circular number, e.g. ``33813``.\n","inputSchema":{"properties":{"circular_id":{"title":"Circular Id","type":"integer"}},"required":["circular_id"],"title":"get_gcn_circularArguments","type":"object"},"name":"get_gcn_circular","outputSchema":{"additionalProperties":true,"title":"get_gcn_circularDictOutput","type":"object"}},{"description":"Download public strain time series around an event from GWOSC.\n\nIMPORTANT: GraceDB does not host raw strain. This tool reads the event GPS\ntime (``t_0``) from GraceDB, then fetches open strain from GWOSC. It only\nsucceeds for events whose data has been publicly released (past observing\nruns); fresh low-latency alerts will not have public strain yet.\n\nRequires the optional ``gwpy`` dependency (``pip install gracedb-mcp[strain]``).\n\nArgs:\n    graceid: The superevent id, e.g. ``S190814bv``. When ``gps_time`` is given\n        this is only used as the output folder name (e.g. ``GW150914``).\n    detectors: Detector prefixes to fetch, e.g. ``[\"H1\", \"L1\", \"V1\"]``.\n        Defaults to H1 and L1.\n    duration: Length of the segment in seconds, centred on ``t_0``. Up to 30 s\n        fits the short file GWOSC publishes around catalogue events (the event is\n        not exactly centred in it); longer windows read ~100 MB hour-long files.\n    sample_rate: Target sample rate in Hz (4096 or 16384 typically).\n    gps_time: Centre time in GPS seconds. Skips the GraceDB lookup, which is\n        needed for O1 events such as GW150914 (``1126259462.4``) that predate\n        GraceDB superevents.\n\nReturns:\n    A dict mapping each detector to the saved ``.hdf5`` strain file path, and\n    ``resources`` mapping it to a ``gracedb://`` URI readable over MCP.\n","inputSchema":{"properties":{"detectors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Detectors"},"duration":{"default":30.0,"title":"Duration","type":"number"},"gps_time":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Time"},"graceid":{"title":"Graceid","type":"string"},"sample_rate":{"default":4096,"title":"Sample Rate","type":"integer"}},"required":["graceid"],"title":"download_strain_dataArguments","type":"object"},"name":"download_strain_data","outputSchema":{"additionalProperties":true,"title":"download_strain_dataDictOutput","type":"object"}},{"description":"Convert an ISO-8601 UTC timestamp to GPS seconds (handy for building queries).\n\nArgs:\n    iso_timestamp: e.g. ``2015-09-14T09:50:45`` (UTC assumed if no tz given).\n","inputSchema":{"properties":{"iso_timestamp":{"title":"Iso Timestamp","type":"string"}},"required":["iso_timestamp"],"title":"utc_to_gpsArguments","type":"object"},"name":"utc_to_gps","outputSchema":{"additionalProperties":true,"title":"utc_to_gpsDictOutput","type":"object"}},{"description":"Check which detectors have public GWOSC strain data for a time span.\n\nCall this before ``download_strain_data``. Public strain exists only for\nreleased observing runs, and detectors are often offline, so coverage is\nfrequently partial.\n\nArgs:\n    gps_start: Start of the span in GPS seconds. Use together with ``gps_end``.\n    gps_end: End of the span in GPS seconds, at most 7 days after ``gps_start``.\n    event: Instead of a span, a GraceDB superevent id (``S190814bv``) or a\n        catalogue name (``GW150914``); checks ``window`` seconds centred on it.\n    window: Span in seconds around ``event``.\n    detectors: Detectors to check. Defaults to H1, L1, V1 and K1.\n\nReturns:\n    For each detector, the public data segments and the fraction of the span\n    they cover. ``available`` lists detectors with complete coverage, also\n    counting the short files GWOSC publishes around catalogue events.\n","inputSchema":{"properties":{"detectors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Detectors"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Event"},"gps_end":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps End"},"gps_start":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Start"},"window":{"default":64.0,"title":"Window","type":"number"}},"title":"check_data_availabilityArguments","type":"object"},"name":"check_data_availability","outputSchema":{"additionalProperties":true,"title":"check_data_availabilityDictOutput","type":"object"}},{"description":"Observing runs whose data GWOSC has publicly released, oldest first.\n\nArgs:\n    gps: Optional GPS time; the answer says which released run covers it, or that\n        it falls outside every released run (detectors off, or data not public yet).\n\nReturns:\n    Each run's name, GPS and UTC span, detectors and dataset DOI (cite it when\n    using the data).\n","inputSchema":{"properties":{"gps":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps"}},"title":"list_observing_runsArguments","type":"object"},"name":"list_observing_runs","outputSchema":{"additionalProperties":true,"title":"list_observing_runsDictOutput","type":"object"}},{"description":"Data-quality flags for each detector over a span, from GWOSC.\n\nFlags say whether data passes each search's vetoes: CBC (compact binaries), BURST,\nCW (continuous waves) and STOCH (stochastic background), at categories CAT1 (most\nbasic checks) to CAT3 (strictest). ``NO_<search>_HW_INJ`` flags mark time free of\nhardware injections, simulated signals physically added to the detector. CW\ninjections are weak, long-lasting signals present for much of each run; they matter\nfor continuous-wave searches, not for transients such as compact-binary mergers.\n\nArgs:\n    gps_start: Start of the span in GPS seconds. Use together with ``gps_end``.\n    gps_end: End of the span in GPS seconds, at most 7 days after ``gps_start``.\n    event: Instead of a span, a GraceDB superevent id or catalogue name; checks\n        ``window`` seconds centred on it.\n    window: Span in seconds around ``event``.\n    detectors: Detectors to check. Defaults to H1, L1, V1 and K1.\n\nReturns:\n    Per detector: ``data_coverage`` (fraction of the span with public data),\n    ``failed`` (flags vetoing part of the time that has data), hardware\n    injections in that time, and every flag's coverage.\n","inputSchema":{"properties":{"detectors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Detectors"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Event"},"gps_end":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps End"},"gps_start":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Gps Start"},"window":{"default":64.0,"title":"Window","type":"number"}},"title":"check_data_qualityArguments","type":"object"},"name":"check_data_quality","outputSchema":{"additionalProperties":true,"title":"check_data_qualityDictOutput","type":"object"}},{"description":"Analyse a gravitational-wave sky map: how big the localisation is, how far away,\nand how likely given sky positions or telescope fields are to contain the source.\n\nArgs:\n    graceid: Superevent id, e.g. ``S230518h``.\n    filename: Sky map to use, e.g. ``bayestar.multiorder.fits``. Defaults to the\n        most recently uploaded one; later maps (Bilby, publication maps) are\n        usually more accurate than the rapid BAYESTAR map.\n    positions: Up to 100 sky positions (e.g. candidate host galaxies or optical\n        transients) to check.\n    fields: Up to 20 circular telescope fields; returns the probability inside each.\n\nReturns:\n    50% and 90% credible areas (deg^2), the overall distance estimate (Mpc), the\n    most probable position, and the other available sky maps. For each position:\n    the credible level (smallest credible region containing it; below 0.9 means\n    inside the 90% region), probability density per deg^2 and, inside the 99%\n    region, the distance along that line of sight (compare it with a galaxy's\n    distance before calling it a likely host). For each field: the enclosed\n    probability.\n","inputSchema":{"$defs":{"SkyPosition":{"properties":{"dec":{"description":"Declination in degrees (J2000).","maximum":90,"minimum":-90,"title":"Dec","type":"number"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Label, e.g. a galaxy name.","title":"Name"},"ra":{"description":"Right ascension in degrees (J2000).","exclusiveMaximum":360,"minimum":0,"title":"Ra","type":"number"}},"required":["ra","dec"],"title":"SkyPosition","type":"object"},"TelescopeField":{"properties":{"dec":{"description":"Declination in degrees (J2000).","maximum":90,"minimum":-90,"title":"Dec","type":"number"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Label, e.g. a galaxy name.","title":"Name"},"ra":{"description":"Right ascension in degrees (J2000).","exclusiveMaximum":360,"minimum":0,"title":"Ra","type":"number"},"radius":{"description":"Field radius in degrees.","exclusiveMinimum":0,"maximum":30,"title":"Radius","type":"number"}},"required":["ra","dec","radius"],"title":"TelescopeField","type":"object"}},"properties":{"fields":{"anyOf":[{"items":{"$ref":"#/$defs/TelescopeField"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Filename"},"graceid":{"title":"Graceid","type":"string"},"positions":{"anyOf":[{"items":{"$ref":"#/$defs/SkyPosition"},"type":"array"},{"type":"null"}],"default":null,"title":"Positions"}},"required":["graceid"],"title":"analyze_skymapArguments","type":"object"},"name":"analyze_skymap","outputSchema":{"additionalProperties":true,"title":"analyze_skymapDictOutput","type":"object"}}]}}}
