{"at":"2026-11-23T06:06:39.311Z","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-23T06:06:39.605Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T06:06:39.706Z","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-23T06:06:40.056Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{},"tools":{}},"protocolVersion":"2024-11-05","serverInfo":{"description":"Japan top listed companies (192) — Community Free Edition: EDINET XBRL 5-year financials, major shareholders, gBizINFO certifications/subsidies | 日本主要上場企業192社・XBRL財務5期・大株主・gBizINFO認証補助金 | A demo version of the japan-company-info Orb containing the full dataset | 完全なデータを含むjapan-company-info Orbのデモ版","name":"japan-company-info-free","version":"0.1.0"}}}}
{"at":"2026-11-23T06:06:40.056Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T06:06:40.056Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T06:06:40.057Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Search the Japanese corporate knowledge base with raw keyword, fuzzy, semantic, or hybrid retrieval — the flexible fallback for open-ended questions the domain tools do not cover. Runs fully offline and returns ranked text records (company registry fields, EDINET financials, major shareholders, gBizINFO certifications, and industry benchmarks) ordered by relevance; this Free edition indexes 192 blue-chip companies. The 'vector' and 'hybrid' methods trigger a one-time ~220MB embedding-model download on first use, while 'bm25' and 'trigram' always work offline. Prefer the domain tools (edinet_financials_usgaap, japan_corporate_registry, japan_shareholders, japan_industry_benchmarks, japan_company_search) for structured questions; use this for cross-cutting or exploratory queries. 'bm25' suits exact keywords, 'trigram' suits codes and identifiers, 'vector' suits paraphrases, and 'hybrid' fuses all rankers.","inputSchema":{"properties":{"method":{"description":"Search method (default: auto). 'auto': automatically picks the best available method(s). 'bm25': exact keyword match, best for precise term lookup. 'trigram': fuzzy/typo-tolerant character-level match. 'vector': semantic similarity search, best for conceptual or paraphrase queries. 'hybrid': fuses all available rankers via RRF, recommended for mixed queries.","enum":["auto","bm25","trigram","vector","hybrid"],"type":"string"},"query":{"description":"Search query","type":"string"},"top_k":{"description":"Number of results (default: 5)","type":"integer"}},"required":["query"],"type":"object"},"name":"search_knowledge"},{"description":"Get the local Web UI URL for this Orb when GUI mode is enabled","inputSchema":{"properties":{},"type":"object"},"name":"get_web_ui_url"},{"description":"Retrieve official EDINET statutory financials (income statement, balance sheet, cash flow) and executive compensation for a Japanese listed company, with accounting concepts normalized across J-GAAP, US GAAP, and IFRS. Runs fully offline on the local machine — no data leaves the host; the requested metric is internally mapped to its Japanese accounting term before searching, and results return as ranked records (company name, 13-digit corporate number, fiscal year, and the requested line items with values in ¥ millions) sourced from 有価証券報告書 XBRL filings. This Free edition indexes 192 blue-chip companies, so a company outside that set returns the closest available matches rather than an error. Use this for a specific financial figure or statement of a named company (e.g. 'Toyota operating income 2023', '経常利益 in US GAAP'); use japan_company_search to discover an entity first, or japan_corporate_registry for identity and certification data. Identify the company by 13-digit corporate number or 4-digit securities code for the most reliable match; Japanese names resolve better than English.","inputSchema":{"properties":{"company_name":{"description":"Japanese or English company name, 13-digit corporate number, or 4-digit securities code. A 13-digit number or Japanese name resolves most reliably.","type":"string"},"fiscal_year":{"description":"Fiscal year, e.g. 2023. Omit to retrieve the latest available year.","type":"integer"},"metric":{"description":"Financial metric, as an English GAAP term or a Japanese accounting term (e.g. 'operating_income', 'net_income', '経常利益'). Known English terms are mapped to Japanese automatically; unknown terms are searched as-is.","type":"string"}},"required":["company_name"],"type":"object"},"name":"edinet_financials_usgaap"},{"description":"Look up the official identity of a Japanese company: its 13-digit National Tax Agency corporate number, registered headquarters address, legal status, and METI gBizINFO certifications, subsidies, and commendations. Runs fully offline and returns the corporate number, registered name and address, status, and any gBizINFO records found, sourced from 法人番号公表サイト and gBizINFO; this Free edition covers 192 blue-chip companies, so out-of-set lookups return the nearest matches. Use this for KYB and entity-verification questions and for 'who or where is this company' lookups; use edinet_financials_usgaap for financial figures, or japan_company_search for fuzzy discovery. A 13-digit corporate number or an exact Japanese name gives the most reliable match.","inputSchema":{"properties":{"company_name":{"description":"Japanese or English company name, or 13-digit corporate number. A 13-digit number resolves most reliably.","type":"string"},"info_type":{"description":"Which facet to focus on: 'identity', 'address', 'certifications', 'subsidies', or 'commendations'. Omit to retrieve all available registry information.","type":"string"}},"required":["company_name"],"type":"object"},"name":"japan_corporate_registry"},{"description":"Retrieve the major shareholders and ownership structure of a Japanese listed company from its EDINET 有価証券報告書 filing. Runs fully offline and returns a ranked list of top shareholders (name, shares held, ownership percentage) together with total shares outstanding, taken from the 大株主 section of the XBRL filing; this Free edition covers 192 blue-chip companies, so out-of-set companies return the nearest matches. Use this for ownership, cap-table, and cross-holding questions; use edinet_financials_usgaap for income-statement or balance-sheet figures, or japan_company_search to discover an entity first. Identify the company by 13-digit corporate number or 4-digit securities code for the most reliable match.","inputSchema":{"properties":{"company_name":{"description":"Japanese or English company name, 13-digit corporate number, or 4-digit securities code. A 13-digit number or Japanese name resolves most reliably.","type":"string"},"top_n":{"description":"Number of top shareholders to return. Omit to default to 10.","type":"integer"}},"required":["company_name"],"type":"object"},"name":"japan_shareholders"},{"description":"Retrieve sector-level financial benchmarks for Japanese industries from the 財務省 法人企業統計調査 (Ministry of Finance Corporate Enterprise Statistics Survey): operating margin (売上高営業利益率), ordinary margin (売上高経常利益率), equity ratio (自己資本比率), and ROE (自己資本ROE) by industry and data year. Runs fully offline and returns the benchmark row(s) for the requested industry with the available metrics and their data year, sourced from the Ministry of Finance survey via e-Stat; this Free edition includes a subset of industries. Use this to benchmark a company's profitability against its sector — pair it with edinet_financials_usgaap to pull the company's own figures, then compare. Provide the industry name, preferably the Japanese 業種 label (e.g. '輸送用機械器具製造業', '純粋持株会社').","inputSchema":{"properties":{"industry":{"description":"Industry / sector name, preferably the Japanese 業種 label (e.g. '輸送用機械器具製造業', '情報通信業'). English sector names are searched as-is.","type":"string"},"metric":{"description":"Optional benchmark metric to focus on: 'operating_margin', 'ordinary_margin', 'equity_ratio', or 'roe' (English or Japanese). Omit to return all available benchmark metrics.","type":"string"}},"required":["industry"],"type":"object"},"name":"japan_industry_benchmarks"},{"description":"Search across Japanese corporate registries and listed-company filings by name, securities code, corporate number, or free-text intent — the entry point when the target company is unknown or ambiguous. Runs fully offline and returns ranked candidate companies (name, corporate number, securities code, and a snippet) ordered by relevance; this Free edition indexes 192 blue-chip companies. The 'vector' and 'hybrid' methods trigger a one-time ~220MB embedding-model download on first use, while 'bm25' and 'trigram' always work offline. Use this to resolve an entity first (e.g. '半導体メーカー 東京', 'Tokyo semiconductor maker'), then call edinet_financials_usgaap, japan_shareholders, or japan_corporate_registry for details; 'trigram' suits codes and identifiers, 'hybrid' suits natural-language queries.","inputSchema":{"properties":{"method":{"description":"Retrieval method. 'auto' (default) picks the best available; 'bm25' exact keyword; 'trigram' fuzzy / identifier; 'vector' semantic (first use downloads the model); 'hybrid' fuses all rankers.","enum":["auto","bm25","trigram","vector","hybrid"],"type":"string"},"query":{"description":"A company name, 4-digit securities code, 13-digit corporate number, or free-text intent describing the company you are looking for.","type":"string"},"top_k":{"description":"Number of results to return. Omit to default to 5.","type":"integer"}},"required":["query"],"type":"object"},"name":"japan_company_search"}]}}}
