{"at":"2026-11-22T23:29:10.742Z","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:29:11.663Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:29:11.814Z","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:29:12.772Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"n3fjp-mcp","version":"1.30.0"}}}}
{"at":"2026-11-22T23:29:12.772Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:29:12.772Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:29:12.775Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"readOnlyHint":true},"description":"Snapshot: program, version, API version, QSO count, band/mode/frequency, log path.\n\nA quick health check that also confirms the connection and which N3FJP\nprogram/contest is loaded.\n","inputSchema":{"properties":{},"title":"statusArguments","type":"object"},"name":"status"},{"annotations":{"readOnlyHint":true},"description":"Host + network diagnostics for troubleshooting connectivity.\n\nDoes NOT connect to N3FJP. Reports the resolved N3FJP_HOST/PORT, this\nprocess's Python and hostname, and the host's network interfaces — so you can\ntell whether the process can even see the target's network (e.g. when running\nhost-side vs. sandboxed).\n","inputSchema":{"properties":{},"title":"diagnosticsArguments","type":"object"},"name":"diagnostics"},{"annotations":{"readOnlyHint":true},"description":"Read-only program queries.\n\noperations: program (name/version/API version), qso_count, next_serial,\nlog_path, settings_path, shared_path, qso_rate (contest stats),\nband_mode_freq (current band/mode/frequency).\n","inputSchema":{"properties":{"operation":{"title":"Operation","type":"string"}},"required":["operation"],"title":"queryArguments","type":"object"},"name":"query"},{"annotations":{"readOnlyHint":true},"description":"Read entry-box (text field) values.\n\noperations:\n  - read (field=name): read one box. `field` may be a friendly name (call,\n    rst_rcvd, class, section, name, …) or a raw control id (TXTENTRY…).\n  - visible: every field the current contest shows, with values.\n  - all: every field (regardless of visibility), with values.\n\nDerived fields (country_worked, cq_zone, itu_zone, continent, prefix) are\nreadable here but are computed by N3FJP from the call — never write them.\n","inputSchema":{"properties":{"field":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Field"},"operation":{"title":"Operation","type":"string"}},"required":["operation"],"title":"fieldsArguments","type":"object"},"name":"fields"},{"description":"Logbook entry: set fields, run Call-tab, and ENTER a QSO. The headline tool.\n\noperations:\n  - log_qso: the automatic-logging flow. Provide `call` (and usually\n    `exchange`, a dict of friendly field names → values, e.g.\n    {\"class\": \"2A\", \"section\": \"CT\"}). Sets the call, runs CALLTAB (dupe\n    check + lookups) unless calltab=false, sets the exchange, then ENTER.\n    Returns the number of records added and any dupe response.\n  - set (field, value): write one entry box.\n  - set_many (fields={...}): write several entry boxes.\n  - calltab: run CALLTAB (after setting the call).\n  - enter: log the current form. Returns records_added plus a `logged`\n    boolean derived from the QSO-count delta / ENTEREVENT — trust\n    `logged`, not records_added, which can report 0 on success in\n    networked mode. Do not retry when logged=true (creates duplicates).\n  - clear: clear the entry form.\n  - focus (field): move focus to a box (e.g. to auto-fill default RST).\n\nTip: `contest` (e.g. \"field_day\", \"cq_wpx\") lets the tool warn if the\nexchange is missing a field that contest needs.\n","inputSchema":{"properties":{"call":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Call"},"calltab":{"default":true,"title":"Calltab","type":"boolean"},"contest":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Contest"},"exchange":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Exchange"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Field"},"fields":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Fields"},"operation":{"title":"Operation","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Value"}},"required":["operation"],"title":"logArguments","type":"object"},"name":"log"},{"description":"Change band, mode, and frequency before logging.\n\noperations:\n  - change_freq (value=Hz): set the frequency (and thus band) via the rig\n    interface. Use suppress_mode_default=true to keep the current mode rather\n    than letting CW/phone segments flip it.\n  - set_band (value=band, e.g. \"20\"): write the band box (rig interface OFF only).\n  - set_mode (value=mode, e.g. \"DIG\"): write the mode box (rig interface OFF only).\n  - ignore_rig_polls (value=bool): pause rig polling so band/mode boxes can be\n    written while a rig is connected. Remember to set it back to false.\n\nAlways make sure the program is on the correct band and mode before ENTER.\n","inputSchema":{"properties":{"operation":{"title":"Operation","type":"string"},"suppress_mode_default":{"default":false,"title":"Suppress Mode Default","type":"boolean"},"value":{"default":null,"title":"Value"}},"required":["operation"],"title":"bandmodeArguments","type":"object"},"name":"bandmode"},{"annotations":{"readOnlyHint":true},"description":"Search and list the log (read-only).\n\noperations:\n  - list (count, include_all): the most recent QSOs (primary fields, or every\n    field with include_all=true).\n  - search (call/band/mode/dxcc/country/confirmed, include_all, max_records):\n    find matching QSOs. Prefer dxcc (ADIF number) over country (must match\n    N3FJP's spelling exactly). mode is normalized to CW/PH/DIG.\n  - dupecheck (call): is this call a dupe? Returns previous-contact detail or\n    empty if new. (No side effects, unlike the log tool's calltab.)\n  - entity (call, band, mode): all-time-new/worked/confirmed status.\n","inputSchema":{"properties":{"band":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Band"},"call":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Call"},"confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Confirmed"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Count"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Country"},"dxcc":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dxcc"},"include_all":{"default":false,"title":"Include All","type":"boolean"},"max_records":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Records"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mode"},"operation":{"title":"Operation","type":"string"}},"required":["operation"],"title":"searchArguments","type":"object"},"name":"search"},{"description":"Direct database operations on individual records.\n\nThese are ordinary writes (the *Needs Approval* tier — same as logging), so\nthey can be globally allowed in the client for automation. The ONLY hard\nblock is a whole-database wipe/overwrite, gated by N3FJP_ALLOW_DB_WIPE.\n\noperations:\n  - add_direct (fields={fldCall:..., fldBand:...}, exclude_dupes): insert a\n    record directly, bypassing N3FJP's scoring. Prefer log's log_qso/ENTER.\n  - delete (where=\"fldPrimaryID=123\"): delete matching records. A missing or\n    empty WHERE would clear the whole table and is refused unless\n    N3FJP_ALLOW_DB_WIPE is on.\n  - sql (sql=\"...\"): run a raw SQL statement against the Access database.\n    Only statements that could wipe/overwrite the whole database (DROP,\n    TRUNCATE, unscoped DELETE/UPDATE) are refused unless N3FJP_ALLOW_DB_WIPE\n    is on; scoped statements run normally.\n  - checklog / openlog: ask N3FJP to reload new / all records.\n  - sqlclose: close the SQL connection.\n","inputSchema":{"properties":{"exclude_dupes":{"default":false,"title":"Exclude Dupes","type":"boolean"},"fields":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Fields"},"operation":{"title":"Operation","type":"string"},"sql":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Sql"},"where":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Where"}},"required":["operation"],"title":"databaseArguments","type":"object"},"name":"database"},{"description":"Opt-in push events from N3FJP (field updates, enter/calltab, dupes).\n\noperations:\n  - enable: turn on all-field-update notifications.\n  - disable: turn them off.\n  - drain: return and clear the buffered notification blocks received so far.\n\nMCP is request/response, so events are buffered and you pull them with drain\nrather than receiving a live stream.\n","inputSchema":{"properties":{"operation":{"title":"Operation","type":"string"}},"required":["operation"],"title":"notificationsArguments","type":"object"},"name":"notifications"},{"description":"Escape hatch: send any raw N3FJP command and return the parsed reply.\n\n`command` may be a bare command id (\"PROGRAM\"), a full envelope\n(\"<CMD><PROGRAM></CMD>\"), or the inner form (\"<PROGRAM>\") — it is normalised\nand CRLF-terminated for you. `expect` is the response id to wait for.\n\nThis reaches anything not surfaced by a group tool, including newer commands.\nLike the group tools, it runs at the *Needs Approval* tier; the only hard\nblock is a raw SQL statement that could wipe/overwrite the whole database,\nwhich still requires the N3FJP_ALLOW_DB_WIPE switch.\n","inputSchema":{"properties":{"command":{"title":"Command","type":"string"},"expect":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Expect"}},"required":["command"],"title":"n3fjp_callArguments","type":"object"},"name":"n3fjp_call"}]}}}
