{"at":"2026-11-23T05:16:58.950Z","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-23T05:16:59.381Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:16:59.482Z","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-23T05:16:59.944Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"doktor-mcp","version":"0.59.2"}}}}
{"at":"2026-11-23T05:16:59.944Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:16:59.944Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:16:59.949Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Advanced/granular tool: prefer prepare_doctor_legal_information_pack for end-to-end questions; use this only when you specifically need medical-legal question classification in isolation. Classifies a physician question into legal dimensions (patient_rights, professional_ethics, criminal, privacy_kvkk, civil_compensation, etc.) and extracts search terms. Example: { \"question\": \"Hasta onami olmadan mudahale edilirse ne olur?\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"question":{"minLength":1,"type":"string"},"sourceMode":{"enum":["mock","live","snapshot"],"type":"string"}},"required":["question"],"type":"object"},"name":"classify_medical_legal_question"},{"description":"Advanced/granular tool: prefer prepare_doctor_legal_information_pack for end-to-end questions; use this only when you specifically need legislation search in isolation. Searches health-related legislation by keywords. Returns legislation titles, document IDs, and matched provisions. Example: { \"searchTerms\": [\"hasta haklari\", \"tedaviyi red\"], \"sourceMode\": \"mock\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"question":{"minLength":1,"type":"string"},"sourceMode":{"enum":["mock","live","snapshot"],"type":"string"}},"required":["question"],"type":"object"},"name":"search_health_legislation"},{"description":"Advanced/granular tool: prefer prepare_doctor_legal_information_pack for end-to-end questions; use this only when you specifically need legislation provisions by document ID in isolation. Fetches full text of legislation provisions by document IDs. Example: { \"documentIds\": [\"mevzuat:hastahaklari-yonetmelik:madde-5\"], \"sourceMode\": \"mock\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"documentIds":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"sourceMode":{"enum":["mock","live","snapshot"],"type":"string"}},"required":["documentIds"],"type":"object"},"name":"get_legislation_provisions"},{"description":"Advanced/granular tool: prefer prepare_doctor_legal_information_pack for end-to-end questions; use this only when you specifically need court precedent search in isolation. Searches health-related court decisions from Yargitay and Danistay. Returns decision summaries, document IDs, and relevance scores. Example: { \"searchTerms\": [\"hekim sorumlulugu\", \"tedaviyi red\"], \"sourceMode\": \"mock\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"question":{"minLength":1,"type":"string"},"sourceMode":{"enum":["mock","live","snapshot"],"type":"string"}},"required":["question"],"type":"object"},"name":"search_health_precedents"},{"description":"Advanced/granular tool: prefer prepare_doctor_legal_information_pack for end-to-end questions; use this only when you specifically need to filter/classify court decisions for reasoned analysis. Takes a list of decisions and filters them by eligibility (full text, legal reasoning, relevance). Optionally accepts a packId to operate on a previously prepared pack's decisions. Example: { \"decisions\": [...], \"query\": \"hekim ihmal\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"decisions":{"items":{"additionalProperties":{},"properties":{"chamber":{"type":"string"},"court":{"enum":["yargitay","danistay","aym","bedesten"],"type":"string"},"decisionDate":{"type":"string"},"decisionNumber":{"type":"string"},"evidence":{"additionalProperties":{},"properties":{"documentId":{"type":"string"},"fullText":{"default":false,"type":"boolean"},"official":{"const":true,"default":true,"type":"boolean"},"retrievedAt":{"default":"2026-11-23T05:16:59.913Z","type":"string"},"source":{"default":"yargitay","enum":["legislation","yargitay","danistay","aym","bedesten"],"type":"string"},"sourceId":{"type":"string"}},"required":["documentId"],"type":"object"},"factSummary":{"type":"string"},"fullText":{"type":"string"},"id":{"type":"string"},"legalReasoning":{"type":"string"},"meritsNumber":{"type":"string"},"outcome":{"type":"string"},"relevanceNote":{"type":"string"},"topicTags":{"default":[],"items":{"type":"string"},"type":"array"}},"required":["id","court","evidence"],"type":"object"},"type":"array"},"packId":{"minLength":1,"type":"string"},"query":{"type":"string"}},"type":"object"},"name":"filter_reasoned_precedents"},{"description":"PRIMARY ENTRY POINT — use this tool first for any physician legal question. Prepares a complete source-grounded legal information pack: classification, verbatim legislation provisions, verified high-court precedents, missing information, and lawyer review points. Returns a packId for follow-up drill-down. Set sourceMode:'live' to query official sources (mevzuat.gov.tr, Yargitay, Danistay); this is the default mode; sourceMode='mock' returns clearly-marked fixture data for testing only. Example: { \"question\": \"Hasta tedaviyi reddederse hekimin sorumluluğu nedir?\", \"sourceMode\": \"live\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"assessmentTone":{"default":"grounded-advisory","enum":["strict","grounded-advisory"],"type":"string"},"includeDiagnostics":{"default":false,"type":"boolean"},"precedentSources":{"items":{"enum":["yargitay","danistay","aym"],"type":"string"},"type":"array"},"question":{"minLength":1,"type":"string"},"sourceMode":{"enum":["mock","live","snapshot"],"type":"string"}},"required":["question"],"type":"object"},"name":"prepare_doctor_legal_information_pack"},{"description":"Follow-up tool — call ONLY after prepare_doctor_legal_information_pack. Pass the packId from that response plus a follow-up question mentioning a specific article number, law name, chamber, or decision number to retrieve just that item without rebuilding the pack. Example: { \"packId\": \"pack-3f9a2c\", \"followUpQuestion\": \"madde 24 ne diyor?\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"followUpQuestion":{"minLength":1,"type":"string"},"pack":{"additionalProperties":{},"properties":{"relevantLegislation":{"items":{"additionalProperties":{},"properties":{"articleNumber":{"type":"string"},"legislationName":{"type":"string"},"sourceDocumentId":{"type":"string"}},"required":["legislationName","sourceDocumentId"],"type":"object"},"type":"array"},"verifiedHighCourtPrecedents":{"items":{"additionalProperties":{},"properties":{"chamber":{"type":"string"},"decisionNumber":{"type":"string"},"meritsNumber":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceId":{"type":"string"}},"type":"object"},"type":"array"}},"required":["relevantLegislation","verifiedHighCourtPrecedents"],"type":"object"},"packId":{"minLength":1,"type":"string"}},"required":["followUpQuestion"],"type":"object"},"name":"drill_down_pack_item"},{"description":"Fetch the full verbatim text of a single court decision by its documentId (from search_health_precedents or a pack's verifiedHighCourtPrecedents). Use for deep-dive into one decision instead of re-running the whole pack. Example: { \"documentId\": \"yargitay:99001\", \"sourceMode\": \"live\" }","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"documentId":{"minLength":1,"type":"string"},"sourceMode":{"enum":["mock","live","snapshot"],"type":"string"}},"required":["documentId"],"type":"object"},"name":"get_decision_full_text"}]}}}
