{"at":"2026-11-22T23:59:00.331Z","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-22T23:59:01.674Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"Thermo Orbitrap (Instrument API)","version":"4.2.4"}},"cacheScope":"private","capabilities":{"extensions":{"io.modelcontextprotocol/ui":{}},"logging":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Monitors and controls a Thermo Fisher Orbitrap mass spectrometer (Tribrid Fusion/Lumos/Eclipse/\nAscend, Exploris 240/480, Q Exactive family) through Thermo's licensed Instrument API (IAPI).\n- Start with `get_instrument_status`: the system mode must be On for scans to arrive and for\n  custom scans or acquisitions to run. The IAPI licence is required for any control tool.\n- Scans stream in continuously in On mode. Read them with `get_recent_scans` (filter by MS order)\n  or block for the next one with `wait_for_scan`; centroid lists are capped by `max_centroids`.\n- Before `submit_custom_scan` or `set_repeating_scan`, call `get_possible_scan_parameters`: the\n  instrument decides which parameter names and values are legal (they differ by model, licence\n  and Tune version). Invalid values are refused before anything is sent.\n- A custom scan's `running_number` comes back as the scan's `access_id`: use\n  `wait_for_scan(access_id=...)` to pick up its result. System scans have access_id -1.\n- `start_acquisition` consumes sample and writes a raw file on the instrument PC. Confirm the\n  sample, the raw file path and the duration with the user first.\n- `stop_acquisition` (also cancels custom and repeating scans), `cancel_custom_scans` and\n  `cancel_repeating_scan` are always available; use them if anything looks wrong.\n\nThis MCP server controls a PHYSICAL laboratory instrument through LabMCP.\n- Call `get_connection_info` first: it tells you which instrument is connected, whether it is\n  SIMULATED, whether the server is read-only, and which safety limits apply.\n- Never present simulated data as a real measurement.\n- Field names carry units (e.g. `temperature_c`, `mass_g`, `flow_ml_min`). Convert carefully.\n- Tools annotated as destructive physically act on the instrument (heat, move, dispense,\n  energise). Tell the user what you are about to do and why before calling them.\n- If a safety limit refuses a request, do not work around it - report it to the user.\n- If anything looks wrong, call the stop/abort/off tool immediately.\n","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-22T23:59:01.674Z","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-22T23:59:01.872Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"Thermo Orbitrap (Instrument API)","version":"4.2.4"}},"cacheScope":"private","resultType":"complete","tools":[{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Report which instrument is connected (identity, address, simulated or real),\nwhether the server is read-only, and the active safety limits. Call this first.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"get_connection_info","outputSchema":{"additionalProperties":true,"type":"object"},"title":"Get Connection Info"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the most recent raw commands sent to / replies received from the\ninstrument (newest last). Useful for debugging and for recording what was done.","inputSchema":{"additionalProperties":false,"properties":{"limit":{"default":20,"type":"integer"}},"type":"object"},"name":"get_command_log","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Get Command Log"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Close and re-open the connection to the instrument (e.g. after it was power\ncycled or a cable was re-plugged).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"reconnect","outputSchema":{"additionalProperties":true,"type":"object"},"title":"Reconnect"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Report the instrument model, IAPI service/instrument connection, system mode and state\n(On/Standby/Off; Running/ReadyToDownload/...), whether an acquisition can be paused or\nresumed, the IAPI licence where the API exposes it, requested readbacks, the latest scan\nstatus log (vacuum, source) and how many scans have arrived.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"get_instrument_status","outputSchema":{"properties":{"acquiring":{"type":"boolean"},"acquisition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null},"api_license":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"IAPI licence found (Exploris only; None = not queryable)"},"backend":{"type":"string"},"can_pause":{"type":"boolean"},"can_resume":{"type":"boolean"},"custom_scans_last_minute":{"type":"integer"},"family":{"anyOf":[{"type":"string"},{"type":"null"}]},"instrument_connected":{"type":"boolean"},"last_scan_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_status_log":{"additionalProperties":{"type":"string"},"description":"Latest scan status log (vacuum, source, ...)","type":"object"},"model":{"type":"string"},"readback_names":{"description":"Instrument value names the API exposes","items":{"type":"string"},"type":"array"},"readbacks":{"additionalProperties":true,"description":"Requested instrument values (IInstrumentValues)","type":"object"},"scans_received":{"type":"integer"},"service_connected":{"type":"boolean"},"system_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IState.SystemMode, e.g. On, Standby, Off, Disconnected"},"system_state":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IState.SystemState, e.g. Running, ReadyToDownload, Error"},"timestamp":{"type":"string"}},"required":["model","family","backend","service_connected","instrument_connected","system_mode","system_state","acquiring","can_pause","can_resume","api_license","readbacks","readback_names","last_status_log","scans_received","last_scan_at","custom_scans_last_minute","timestamp"],"type":"object"},"title":"Get Instrument Status"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"List the scan parameters this instrument accepts for custom and repeating scans\n(IScans.PossibleParameters): name, allowed range or choices, default and help. The set\ndepends on the model, licence and Tune version.","inputSchema":{"additionalProperties":false,"properties":{"name_contains":{"anyOf":[{"maxLength":50,"type":"string"},{"type":"null"}],"default":null,"description":"Case-insensitive name filter"},"refresh":{"default":false,"description":"Re-read from the instrument instead of the cache","type":"boolean"}},"type":"object"},"name":"get_possible_scan_parameters","outputSchema":{"properties":{"result":{"items":{"properties":{"choices":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null},"default_value":{"type":"string"},"help":{"type":"string"},"kind":{"description":"none | string | int | float | choice","type":"string"},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"min":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"name":{"type":"string"},"selection":{"description":"Raw IParameterDescription.Selection","type":"string"}},"required":["name","selection","kind","default_value","help"],"type":"object"},"type":"array"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Get Possible Scan Parameters"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the most recent scans received from the instrument (oldest first), optionally\nonly one MS order or one custom scan's access id: scan number, MS order, precursor m/z,\nAGC target, injection time and the most intense centroids. Scans only arrive in On mode.","inputSchema":{"additionalProperties":false,"properties":{"access_id":{"anyOf":[{"maximum":2147483647,"minimum":-1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans with this access id (-1 = system scans)"},"count":{"default":10,"description":"Number of most recent matching scans","maximum":100,"minimum":1,"type":"integer"},"include_header_trailer":{"default":false,"description":"Include the raw header and trailer","type":"boolean"},"max_centroids":{"default":20,"description":"Most intense centroids to return per scan","maximum":500,"minimum":0,"type":"integer"},"ms_order":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans of this MS order (1 = MS1)"},"save_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional .csv path (must not exist yet): write all kept centroids of the returned scans"}},"type":"object"},"name":"get_recent_scans","outputSchema":{"properties":{"buffered_total":{"type":"integer"},"returned":{"type":"integer"},"saved_to":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"scans":{"items":{"properties":{"access_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"RunningNumber of the custom/repeating scan; -1 = system scan"},"agc_target":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_intensity":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"centroid_count":{"description":"Number of centroids in the full scan","type":"integer"},"header":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null},"injection_time_ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"master_scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Survey scan this MSn scan was triggered from"},"ms_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 = MS1 survey scan, 2 = MS2, ..."},"precursor_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"received_at":{"description":"UTC time MsScanArrived fired (ISO 8601)","type":"string"},"scan_mode":{"anyOf":[{"type":"string"},{"type":"null"}]},"scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"sequence":{"description":"Arrival order since the server connected","type":"integer"},"summed_centroid_intensity":{"description":"Sum of all centroid intensities (a TIC proxy)","type":"number"},"top_centroids":{"description":"Most intense centroids, capped by max_centroids","items":{"properties":{"charge":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Charge state assigned by the instrument, if any"},"intensity":{"type":"number"},"mz":{"type":"number"}},"required":["mz","intensity"],"type":"object"},"type":"array"},"trailer":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null}},"required":["sequence","received_at","scan_number","ms_order","scan_mode","precursor_mz","master_scan_number","access_id","agc_target","injection_time_ms","centroid_count","base_peak_mz","base_peak_intensity","summed_centroid_intensity","top_centroids"],"type":"object"},"type":"array"},"timestamp":{"type":"string"}},"required":["scans","returned","buffered_total","timestamp"],"type":"object"},"title":"Get Recent Scans"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Wait for the next scan that arrives after this call (optionally of one MS order, or the\nresult of a custom scan by its access id) and return it. For a custom scan placed with\nsubmit_custom_scan, a result that arrived since it was placed is returned at once. Returns\nfound=false after timeout_s if nothing matching arrived (e.g. the instrument is in Standby).","inputSchema":{"additionalProperties":false,"properties":{"access_id":{"anyOf":[{"maximum":2147483647,"minimum":-1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans with this access id (-1 = system scans)"},"include_header_trailer":{"default":false,"description":"Include the raw header and trailer","type":"boolean"},"max_centroids":{"default":20,"description":"Most intense centroids to return per scan","maximum":500,"minimum":0,"type":"integer"},"ms_order":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans of this MS order (1 = MS1)"},"timeout_s":{"default":10.0,"description":"Longest time to wait","maximum":300,"minimum":0.1,"type":"number"}},"type":"object"},"name":"wait_for_scan","outputSchema":{"properties":{"found":{"type":"boolean"},"message":{"type":"string"},"scan":{"anyOf":[{"properties":{"access_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"RunningNumber of the custom/repeating scan; -1 = system scan"},"agc_target":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_intensity":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"centroid_count":{"description":"Number of centroids in the full scan","type":"integer"},"header":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null},"injection_time_ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"master_scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Survey scan this MSn scan was triggered from"},"ms_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 = MS1 survey scan, 2 = MS2, ..."},"precursor_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"received_at":{"description":"UTC time MsScanArrived fired (ISO 8601)","type":"string"},"scan_mode":{"anyOf":[{"type":"string"},{"type":"null"}]},"scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"sequence":{"description":"Arrival order since the server connected","type":"integer"},"summed_centroid_intensity":{"description":"Sum of all centroid intensities (a TIC proxy)","type":"number"},"top_centroids":{"description":"Most intense centroids, capped by max_centroids","items":{"properties":{"charge":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Charge state assigned by the instrument, if any"},"intensity":{"type":"number"},"mz":{"type":"number"}},"required":["mz","intensity"],"type":"object"},"type":"array"},"trailer":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null}},"required":["sequence","received_at","scan_number","ms_order","scan_mode","precursor_mz","master_scan_number","access_id","agc_target","injection_time_ms","centroid_count","base_peak_mz","base_peak_intensity","summed_centroid_intensity","top_centroids"],"type":"object"},{"type":"null"}]},"waited_s":{"type":"number"}},"required":["found","waited_s","scan","message"],"type":"object"},"title":"Wait For Scan"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Start an acquisition with the instrument's current settings (IAPI StartAcquisition),\nrecording to a raw file. This consumes sample. The instrument must be On; an acquisition\nmust not already be running. Stop it with stop_acquisition. scan_count and until_stopped\nacquisitions are cancelled automatically after max_acquisition_duration_s.","inputSchema":{"additionalProperties":false,"properties":{"comment":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null},"duration_s":{"anyOf":[{"maximum":86400,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"For mode=duration"},"mode":{"description":"Stop after duration_s, after scan_count scans, or only when stopped","enum":["duration","scan_count","until_stopped"],"type":"string"},"raw_file_path":{"anyOf":[{"maxLength":260,"type":"string"},{"type":"null"}],"default":null,"description":"Raw file to write on the instrument PC, e.g. D:\\Data\\run1.raw"},"sample_name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null},"scan_count":{"anyOf":[{"maximum":10000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"For mode=scan_count"}},"required":["mode"],"type":"object"},"name":"start_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Start Acquisition"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Pause the running acquisition (IAPI Pause). Fails if the instrument reports it cannot pause.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"pause_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Pause Acquisition"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Resume a paused acquisition (IAPI Resume). Sample consumption continues.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"resume_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Resume Acquisition"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Stop the running acquisition (IAPI CancelAcquisition), by default also cancelling custom\nand repeating scans, and optionally switch the instrument to Standby (switch back to On in\nTune). Every step is attempted even if an earlier one fails; failures are reported.","inputSchema":{"additionalProperties":false,"properties":{"cancel_scans":{"default":true,"description":"Also cancel pending custom scans and the repeating scan","type":"boolean"},"standby":{"default":false,"description":"Then put the instrument in Standby","type":"boolean"}},"type":"object"},"name":"stop_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Stop Acquisition"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Cancel any pending custom scan and its processing delay (IAPI CancelCustomScan).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"cancel_custom_scans","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Cancel Custom Scans"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Cancel the repeating scan set with set_repeating_scan (IAPI CancelRepetition).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"cancel_repeating_scan","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Cancel Repeating Scan"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Place one custom scan to run next (IAPI CreateCustomScan/SetCustomScan); unset values\nfall back to the instrument's defaults. Every value is checked against\nPossibleParameters and the safety limits, and calls are rate-limited, before anything is\nsent. Fetch the result with wait_for_scan(access_id=running_number).","inputSchema":{"additionalProperties":false,"properties":{"activation_type":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"ActivationType, e.g. HCD or CID"},"agc_target":{"anyOf":[{"maximum":100000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"AGCTarget (charges)"},"analyzer":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Mass analyzer, e.g. Orbitrap or IonTrap (Tribrid)"},"collision_energy":{"anyOf":[{"maximum":500,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"CollisionEnergy (normalized, %)"},"extra_parameters":{"anyOf":[{"additionalProperties":{"type":"string"},"maxProperties":40,"type":"object"},{"type":"null"}],"default":null,"description":"Other IAPI scan values by exact name (see get_possible_scan_parameters)"},"first_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"FirstMass: scan range start (m/z)"},"isolation_width_mz":{"anyOf":[{"exclusiveMinimum":0,"maximum":2000,"type":"number"},{"type":"null"}],"default":null,"description":"IsolationWidth (m/z)"},"last_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"LastMass: scan range end (m/z)"},"max_injection_time_ms":{"anyOf":[{"exclusiveMinimum":0,"maximum":10000,"type":"number"},{"type":"null"}],"default":null,"description":"MaxIT: maximum injection time (ms)"},"microscans":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null},"orbitrap_resolution":{"anyOf":[{"maximum":1000000,"minimum":1000,"type":"integer"},{"type":"null"}],"default":null,"description":"OrbitrapResolution at m/z 200; must be an allowed value"},"polarity":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Polarity as the instrument lists it"},"precursor_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"PrecursorMass (m/z) for MSn/SIM"},"running_number":{"anyOf":[{"maximum":2000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Reported back as access_id (default: auto)"},"scan_description":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"ScanDescription stored with the scan"},"scan_type":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"ScanType, e.g. Full, SIM or MSn"},"single_processing_delay_s":{"default":0.0,"description":"Hold further custom scans this long (ICustomScan.SingleProcessingDelay)","maximum":600,"minimum":0,"type":"number"}},"type":"object"},"name":"submit_custom_scan","outputSchema":{"properties":{"custom_scans_last_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"message":{"type":"string"},"running_number":{"type":"integer"},"sent":{"description":"True if IAPI reports the command was sent to the instrument","type":"boolean"},"values":{"additionalProperties":{"type":"string"},"description":"The exact IAPI scan values sent","type":"object"}},"required":["sent","running_number","values","message"],"type":"object"},"title":"Submit Custom Scan"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Define or replace the scan the instrument repeats when no method or custom scan is\nrunning (IAPI CreateRepeatingScan/SetRepetitionScan). Values are validated like\nsubmit_custom_scan. Cancel with cancel_repeating_scan.","inputSchema":{"additionalProperties":false,"properties":{"activation_type":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"ActivationType, e.g. HCD or CID"},"agc_target":{"anyOf":[{"maximum":100000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"AGCTarget (charges)"},"analyzer":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Mass analyzer, e.g. Orbitrap or IonTrap (Tribrid)"},"collision_energy":{"anyOf":[{"maximum":500,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"CollisionEnergy (normalized, %)"},"extra_parameters":{"anyOf":[{"additionalProperties":{"type":"string"},"maxProperties":40,"type":"object"},{"type":"null"}],"default":null,"description":"Other IAPI scan values by exact name (see get_possible_scan_parameters)"},"first_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"FirstMass: scan range start (m/z)"},"isolation_width_mz":{"anyOf":[{"exclusiveMinimum":0,"maximum":2000,"type":"number"},{"type":"null"}],"default":null,"description":"IsolationWidth (m/z)"},"last_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"LastMass: scan range end (m/z)"},"max_injection_time_ms":{"anyOf":[{"exclusiveMinimum":0,"maximum":10000,"type":"number"},{"type":"null"}],"default":null,"description":"MaxIT: maximum injection time (ms)"},"microscans":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null},"orbitrap_resolution":{"anyOf":[{"maximum":1000000,"minimum":1000,"type":"integer"},{"type":"null"}],"default":null,"description":"OrbitrapResolution at m/z 200; must be an allowed value"},"polarity":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Polarity as the instrument lists it"},"precursor_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"PrecursorMass (m/z) for MSn/SIM"},"running_number":{"anyOf":[{"maximum":2000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Reported back as access_id (default: auto)"},"scan_description":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"ScanDescription stored with the scan"},"scan_type":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"ScanType, e.g. Full, SIM or MSn"}},"type":"object"},"name":"set_repeating_scan","outputSchema":{"properties":{"custom_scans_last_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"message":{"type":"string"},"running_number":{"type":"integer"},"sent":{"description":"True if IAPI reports the command was sent to the instrument","type":"boolean"},"values":{"additionalProperties":{"type":"string"},"description":"The exact IAPI scan values sent","type":"object"}},"required":["sent","running_number","values","message"],"type":"object"},"title":"Set Repeating Scan"}],"ttlMs":0}}}
{"at":"2026-11-22T23:59:02.124Z","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-22T23:59:03.524Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"logging":{},"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":false},"tools":{"listChanged":true}},"instructions":"Monitors and controls a Thermo Fisher Orbitrap mass spectrometer (Tribrid Fusion/Lumos/Eclipse/\nAscend, Exploris 240/480, Q Exactive family) through Thermo's licensed Instrument API (IAPI).\n- Start with `get_instrument_status`: the system mode must be On for scans to arrive and for\n  custom scans or acquisitions to run. The IAPI licence is required for any control tool.\n- Scans stream in continuously in On mode. Read them with `get_recent_scans` (filter by MS order)\n  or block for the next one with `wait_for_scan`; centroid lists are capped by `max_centroids`.\n- Before `submit_custom_scan` or `set_repeating_scan`, call `get_possible_scan_parameters`: the\n  instrument decides which parameter names and values are legal (they differ by model, licence\n  and Tune version). Invalid values are refused before anything is sent.\n- A custom scan's `running_number` comes back as the scan's `access_id`: use\n  `wait_for_scan(access_id=...)` to pick up its result. System scans have access_id -1.\n- `start_acquisition` consumes sample and writes a raw file on the instrument PC. Confirm the\n  sample, the raw file path and the duration with the user first.\n- `stop_acquisition` (also cancels custom and repeating scans), `cancel_custom_scans` and\n  `cancel_repeating_scan` are always available; use them if anything looks wrong.\n\nThis MCP server controls a PHYSICAL laboratory instrument through LabMCP.\n- Call `get_connection_info` first: it tells you which instrument is connected, whether it is\n  SIMULATED, whether the server is read-only, and which safety limits apply.\n- Never present simulated data as a real measurement.\n- Field names carry units (e.g. `temperature_c`, `mass_g`, `flow_ml_min`). Convert carefully.\n- Tools annotated as destructive physically act on the instrument (heat, move, dispense,\n  energise). Tell the user what you are about to do and why before calling them.\n- If a safety limit refuses a request, do not work around it - report it to the user.\n- If anything looks wrong, call the stop/abort/off tool immediately.\n","protocolVersion":"2025-11-25","serverInfo":{"name":"Thermo Orbitrap (Instrument API)","version":"4.2.4"}}}}
{"at":"2026-11-22T23:59:03.524Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:59:03.524Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:59:03.717Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Report which instrument is connected (identity, address, simulated or real),\nwhether the server is read-only, and the active safety limits. Call this first.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"get_connection_info","outputSchema":{"additionalProperties":true,"type":"object"},"title":"Get Connection Info"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the most recent raw commands sent to / replies received from the\ninstrument (newest last). Useful for debugging and for recording what was done.","inputSchema":{"additionalProperties":false,"properties":{"limit":{"default":20,"type":"integer"}},"type":"object"},"name":"get_command_log","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Get Command Log"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Close and re-open the connection to the instrument (e.g. after it was power\ncycled or a cable was re-plugged).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"reconnect","outputSchema":{"additionalProperties":true,"type":"object"},"title":"Reconnect"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Report the instrument model, IAPI service/instrument connection, system mode and state\n(On/Standby/Off; Running/ReadyToDownload/...), whether an acquisition can be paused or\nresumed, the IAPI licence where the API exposes it, requested readbacks, the latest scan\nstatus log (vacuum, source) and how many scans have arrived.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"get_instrument_status","outputSchema":{"properties":{"acquiring":{"type":"boolean"},"acquisition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null},"api_license":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"IAPI licence found (Exploris only; None = not queryable)"},"backend":{"type":"string"},"can_pause":{"type":"boolean"},"can_resume":{"type":"boolean"},"custom_scans_last_minute":{"type":"integer"},"family":{"anyOf":[{"type":"string"},{"type":"null"}]},"instrument_connected":{"type":"boolean"},"last_scan_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_status_log":{"additionalProperties":{"type":"string"},"description":"Latest scan status log (vacuum, source, ...)","type":"object"},"model":{"type":"string"},"readback_names":{"description":"Instrument value names the API exposes","items":{"type":"string"},"type":"array"},"readbacks":{"additionalProperties":true,"description":"Requested instrument values (IInstrumentValues)","type":"object"},"scans_received":{"type":"integer"},"service_connected":{"type":"boolean"},"system_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IState.SystemMode, e.g. On, Standby, Off, Disconnected"},"system_state":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IState.SystemState, e.g. Running, ReadyToDownload, Error"},"timestamp":{"type":"string"}},"required":["model","family","backend","service_connected","instrument_connected","system_mode","system_state","acquiring","can_pause","can_resume","api_license","readbacks","readback_names","last_status_log","scans_received","last_scan_at","custom_scans_last_minute","timestamp"],"type":"object"},"title":"Get Instrument Status"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"List the scan parameters this instrument accepts for custom and repeating scans\n(IScans.PossibleParameters): name, allowed range or choices, default and help. The set\ndepends on the model, licence and Tune version.","inputSchema":{"additionalProperties":false,"properties":{"name_contains":{"anyOf":[{"maxLength":50,"type":"string"},{"type":"null"}],"default":null,"description":"Case-insensitive name filter"},"refresh":{"default":false,"description":"Re-read from the instrument instead of the cache","type":"boolean"}},"type":"object"},"name":"get_possible_scan_parameters","outputSchema":{"properties":{"result":{"items":{"properties":{"choices":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null},"default_value":{"type":"string"},"help":{"type":"string"},"kind":{"description":"none | string | int | float | choice","type":"string"},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"min":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"name":{"type":"string"},"selection":{"description":"Raw IParameterDescription.Selection","type":"string"}},"required":["name","selection","kind","default_value","help"],"type":"object"},"type":"array"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Get Possible Scan Parameters"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the most recent scans received from the instrument (oldest first), optionally\nonly one MS order or one custom scan's access id: scan number, MS order, precursor m/z,\nAGC target, injection time and the most intense centroids. Scans only arrive in On mode.","inputSchema":{"additionalProperties":false,"properties":{"access_id":{"anyOf":[{"maximum":2147483647,"minimum":-1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans with this access id (-1 = system scans)"},"count":{"default":10,"description":"Number of most recent matching scans","maximum":100,"minimum":1,"type":"integer"},"include_header_trailer":{"default":false,"description":"Include the raw header and trailer","type":"boolean"},"max_centroids":{"default":20,"description":"Most intense centroids to return per scan","maximum":500,"minimum":0,"type":"integer"},"ms_order":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans of this MS order (1 = MS1)"},"save_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional .csv path (must not exist yet): write all kept centroids of the returned scans"}},"type":"object"},"name":"get_recent_scans","outputSchema":{"properties":{"buffered_total":{"type":"integer"},"returned":{"type":"integer"},"saved_to":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"scans":{"items":{"properties":{"access_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"RunningNumber of the custom/repeating scan; -1 = system scan"},"agc_target":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_intensity":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"centroid_count":{"description":"Number of centroids in the full scan","type":"integer"},"header":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null},"injection_time_ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"master_scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Survey scan this MSn scan was triggered from"},"ms_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 = MS1 survey scan, 2 = MS2, ..."},"precursor_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"received_at":{"description":"UTC time MsScanArrived fired (ISO 8601)","type":"string"},"scan_mode":{"anyOf":[{"type":"string"},{"type":"null"}]},"scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"sequence":{"description":"Arrival order since the server connected","type":"integer"},"summed_centroid_intensity":{"description":"Sum of all centroid intensities (a TIC proxy)","type":"number"},"top_centroids":{"description":"Most intense centroids, capped by max_centroids","items":{"properties":{"charge":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Charge state assigned by the instrument, if any"},"intensity":{"type":"number"},"mz":{"type":"number"}},"required":["mz","intensity"],"type":"object"},"type":"array"},"trailer":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null}},"required":["sequence","received_at","scan_number","ms_order","scan_mode","precursor_mz","master_scan_number","access_id","agc_target","injection_time_ms","centroid_count","base_peak_mz","base_peak_intensity","summed_centroid_intensity","top_centroids"],"type":"object"},"type":"array"},"timestamp":{"type":"string"}},"required":["scans","returned","buffered_total","timestamp"],"type":"object"},"title":"Get Recent Scans"},{"_meta":{"fastmcp":{"tags":["read"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Wait for the next scan that arrives after this call (optionally of one MS order, or the\nresult of a custom scan by its access id) and return it. For a custom scan placed with\nsubmit_custom_scan, a result that arrived since it was placed is returned at once. Returns\nfound=false after timeout_s if nothing matching arrived (e.g. the instrument is in Standby).","inputSchema":{"additionalProperties":false,"properties":{"access_id":{"anyOf":[{"maximum":2147483647,"minimum":-1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans with this access id (-1 = system scans)"},"include_header_trailer":{"default":false,"description":"Include the raw header and trailer","type":"boolean"},"max_centroids":{"default":20,"description":"Most intense centroids to return per scan","maximum":500,"minimum":0,"type":"integer"},"ms_order":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only scans of this MS order (1 = MS1)"},"timeout_s":{"default":10.0,"description":"Longest time to wait","maximum":300,"minimum":0.1,"type":"number"}},"type":"object"},"name":"wait_for_scan","outputSchema":{"properties":{"found":{"type":"boolean"},"message":{"type":"string"},"scan":{"anyOf":[{"properties":{"access_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"RunningNumber of the custom/repeating scan; -1 = system scan"},"agc_target":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_intensity":{"anyOf":[{"type":"number"},{"type":"null"}]},"base_peak_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"centroid_count":{"description":"Number of centroids in the full scan","type":"integer"},"header":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null},"injection_time_ms":{"anyOf":[{"type":"number"},{"type":"null"}]},"master_scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Survey scan this MSn scan was triggered from"},"ms_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 = MS1 survey scan, 2 = MS2, ..."},"precursor_mz":{"anyOf":[{"type":"number"},{"type":"null"}]},"received_at":{"description":"UTC time MsScanArrived fired (ISO 8601)","type":"string"},"scan_mode":{"anyOf":[{"type":"string"},{"type":"null"}]},"scan_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"sequence":{"description":"Arrival order since the server connected","type":"integer"},"summed_centroid_intensity":{"description":"Sum of all centroid intensities (a TIC proxy)","type":"number"},"top_centroids":{"description":"Most intense centroids, capped by max_centroids","items":{"properties":{"charge":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Charge state assigned by the instrument, if any"},"intensity":{"type":"number"},"mz":{"type":"number"}},"required":["mz","intensity"],"type":"object"},"type":"array"},"trailer":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null}},"required":["sequence","received_at","scan_number","ms_order","scan_mode","precursor_mz","master_scan_number","access_id","agc_target","injection_time_ms","centroid_count","base_peak_mz","base_peak_intensity","summed_centroid_intensity","top_centroids"],"type":"object"},{"type":"null"}]},"waited_s":{"type":"number"}},"required":["found","waited_s","scan","message"],"type":"object"},"title":"Wait For Scan"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Start an acquisition with the instrument's current settings (IAPI StartAcquisition),\nrecording to a raw file. This consumes sample. The instrument must be On; an acquisition\nmust not already be running. Stop it with stop_acquisition. scan_count and until_stopped\nacquisitions are cancelled automatically after max_acquisition_duration_s.","inputSchema":{"additionalProperties":false,"properties":{"comment":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null},"duration_s":{"anyOf":[{"maximum":86400,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"For mode=duration"},"mode":{"description":"Stop after duration_s, after scan_count scans, or only when stopped","enum":["duration","scan_count","until_stopped"],"type":"string"},"raw_file_path":{"anyOf":[{"maxLength":260,"type":"string"},{"type":"null"}],"default":null,"description":"Raw file to write on the instrument PC, e.g. D:\\Data\\run1.raw"},"sample_name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null},"scan_count":{"anyOf":[{"maximum":10000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"For mode=scan_count"}},"required":["mode"],"type":"object"},"name":"start_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Start Acquisition"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Pause the running acquisition (IAPI Pause). Fails if the instrument reports it cannot pause.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"pause_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Pause Acquisition"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Resume a paused acquisition (IAPI Resume). Sample consumption continues.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"resume_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Resume Acquisition"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Stop the running acquisition (IAPI CancelAcquisition), by default also cancelling custom\nand repeating scans, and optionally switch the instrument to Standby (switch back to On in\nTune). Every step is attempted even if an earlier one fails; failures are reported.","inputSchema":{"additionalProperties":false,"properties":{"cancel_scans":{"default":true,"description":"Also cancel pending custom scans and the repeating scan","type":"boolean"},"standby":{"default":false,"description":"Then put the instrument in Standby","type":"boolean"}},"type":"object"},"name":"stop_acquisition","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Stop Acquisition"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Cancel any pending custom scan and its processing delay (IAPI CancelCustomScan).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"cancel_custom_scans","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Cancel Custom Scans"},{"_meta":{"fastmcp":{"tags":["safety"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Cancel the repeating scan set with set_repeating_scan (IAPI CancelRepetition).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"cancel_repeating_scan","outputSchema":{"properties":{"result":{"type":"string"}},"required":["result"],"type":"object","x-fastmcp-wrap-result":true},"title":"Cancel Repeating Scan"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Place one custom scan to run next (IAPI CreateCustomScan/SetCustomScan); unset values\nfall back to the instrument's defaults. Every value is checked against\nPossibleParameters and the safety limits, and calls are rate-limited, before anything is\nsent. Fetch the result with wait_for_scan(access_id=running_number).","inputSchema":{"additionalProperties":false,"properties":{"activation_type":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"ActivationType, e.g. HCD or CID"},"agc_target":{"anyOf":[{"maximum":100000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"AGCTarget (charges)"},"analyzer":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Mass analyzer, e.g. Orbitrap or IonTrap (Tribrid)"},"collision_energy":{"anyOf":[{"maximum":500,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"CollisionEnergy (normalized, %)"},"extra_parameters":{"anyOf":[{"additionalProperties":{"type":"string"},"maxProperties":40,"type":"object"},{"type":"null"}],"default":null,"description":"Other IAPI scan values by exact name (see get_possible_scan_parameters)"},"first_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"FirstMass: scan range start (m/z)"},"isolation_width_mz":{"anyOf":[{"exclusiveMinimum":0,"maximum":2000,"type":"number"},{"type":"null"}],"default":null,"description":"IsolationWidth (m/z)"},"last_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"LastMass: scan range end (m/z)"},"max_injection_time_ms":{"anyOf":[{"exclusiveMinimum":0,"maximum":10000,"type":"number"},{"type":"null"}],"default":null,"description":"MaxIT: maximum injection time (ms)"},"microscans":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null},"orbitrap_resolution":{"anyOf":[{"maximum":1000000,"minimum":1000,"type":"integer"},{"type":"null"}],"default":null,"description":"OrbitrapResolution at m/z 200; must be an allowed value"},"polarity":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Polarity as the instrument lists it"},"precursor_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"PrecursorMass (m/z) for MSn/SIM"},"running_number":{"anyOf":[{"maximum":2000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Reported back as access_id (default: auto)"},"scan_description":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"ScanDescription stored with the scan"},"scan_type":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"ScanType, e.g. Full, SIM or MSn"},"single_processing_delay_s":{"default":0.0,"description":"Hold further custom scans this long (ICustomScan.SingleProcessingDelay)","maximum":600,"minimum":0,"type":"number"}},"type":"object"},"name":"submit_custom_scan","outputSchema":{"properties":{"custom_scans_last_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"message":{"type":"string"},"running_number":{"type":"integer"},"sent":{"description":"True if IAPI reports the command was sent to the instrument","type":"boolean"},"values":{"additionalProperties":{"type":"string"},"description":"The exact IAPI scan values sent","type":"object"}},"required":["sent","running_number","values","message"],"type":"object"},"title":"Submit Custom Scan"},{"_meta":{"fastmcp":{"tags":["control","hazard"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Define or replace the scan the instrument repeats when no method or custom scan is\nrunning (IAPI CreateRepeatingScan/SetRepetitionScan). Values are validated like\nsubmit_custom_scan. Cancel with cancel_repeating_scan.","inputSchema":{"additionalProperties":false,"properties":{"activation_type":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"ActivationType, e.g. HCD or CID"},"agc_target":{"anyOf":[{"maximum":100000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"AGCTarget (charges)"},"analyzer":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Mass analyzer, e.g. Orbitrap or IonTrap (Tribrid)"},"collision_energy":{"anyOf":[{"maximum":500,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"CollisionEnergy (normalized, %)"},"extra_parameters":{"anyOf":[{"additionalProperties":{"type":"string"},"maxProperties":40,"type":"object"},{"type":"null"}],"default":null,"description":"Other IAPI scan values by exact name (see get_possible_scan_parameters)"},"first_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"FirstMass: scan range start (m/z)"},"isolation_width_mz":{"anyOf":[{"exclusiveMinimum":0,"maximum":2000,"type":"number"},{"type":"null"}],"default":null,"description":"IsolationWidth (m/z)"},"last_mass_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"LastMass: scan range end (m/z)"},"max_injection_time_ms":{"anyOf":[{"exclusiveMinimum":0,"maximum":10000,"type":"number"},{"type":"null"}],"default":null,"description":"MaxIT: maximum injection time (ms)"},"microscans":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null},"orbitrap_resolution":{"anyOf":[{"maximum":1000000,"minimum":1000,"type":"integer"},{"type":"null"}],"default":null,"description":"OrbitrapResolution at m/z 200; must be an allowed value"},"polarity":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Polarity as the instrument lists it"},"precursor_mz":{"anyOf":[{"maximum":20000,"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"PrecursorMass (m/z) for MSn/SIM"},"running_number":{"anyOf":[{"maximum":2000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Reported back as access_id (default: auto)"},"scan_description":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"ScanDescription stored with the scan"},"scan_type":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"ScanType, e.g. Full, SIM or MSn"}},"type":"object"},"name":"set_repeating_scan","outputSchema":{"properties":{"custom_scans_last_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"message":{"type":"string"},"running_number":{"type":"integer"},"sent":{"description":"True if IAPI reports the command was sent to the instrument","type":"boolean"},"values":{"additionalProperties":{"type":"string"},"description":"The exact IAPI scan values sent","type":"object"}},"required":["sent","running_number","values","message"],"type":"object"},"title":"Set Repeating Scan"}]}}}
