{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "yutai-mcp.web.app",
    "site": "yutai-mcp.web.app",
    "addresses": [
      {
        "address": "199.36.158.100",
        "endpoints": 205,
        "shared_infrastructure": true,
        "network": {
          "asn": 54113,
          "name": "FASTLY - Fastly, Inc.",
          "prefix": "199.36.158.0/24",
          "country": "US"
        }
      },
      {
        "address": "2620:0:890::100",
        "endpoints": 80,
        "shared_infrastructure": true,
        "network": {
          "asn": 54113,
          "name": "FASTLY - Fastly, Inc.",
          "prefix": "2620:0:890::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "199.36.158.100",
          "2620:0:890::100"
        ],
        "first_seen": "2026-11-22T07:11:04.807Z",
        "last_seen": "2026-11-24T07:17:01.072Z",
        "checks": 3
      }
    ],
    "hosting": [
      {
        "value": "Google Cloud",
        "evidence": "Server header \"Google Frontend\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "yutai-mcp",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Google Frontend",
      "strict-transport-security": "max-age=31556926; includeSubDomains; preload"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 204,
      "sample": [
        {
          "id": "17",
          "url": "https://prices.brainy.ae/mcp/v2",
          "server_name": "ae.brainy/grocery-prices",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:34:01.461Z"
        },
        {
          "id": "561",
          "url": "https://coinfactory.ai/mcp",
          "server_name": "ai.coinfactory/coinfactory",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:45:05.635Z"
        },
        {
          "id": "2013",
          "url": "https://rollingedition.ai/mcp",
          "server_name": "ai.rollingedition/books",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:50:06.869Z"
        },
        {
          "id": "2581",
          "url": "https://index.therunup.ai/mcp",
          "server_name": "ai.therunup.index/agent-bookability-index",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:55:04.238Z"
        },
        {
          "id": "2714",
          "url": "https://tutorping.ai/mcp",
          "server_name": "ai.tutorping/tutorping",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:56:01.632Z"
        },
        {
          "id": "2882",
          "url": "https://whatareyoubuilding.ai/api/mcp",
          "server_name": "ai.whatareyoubuilding/wayb",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:58:01.409Z"
        },
        {
          "id": "3209",
          "url": "https://www.craftme.app/mcp",
          "server_name": "app.craftme/craftme",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:02:05.341Z"
        },
        {
          "id": "3417",
          "url": "https://hinducalendar.app/mcp",
          "server_name": "app.hinducalendar/hinducalendar",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:05:03.211Z"
        },
        {
          "id": "3469",
          "url": "https://beta.jobcontext.app/mcp",
          "server_name": "app.jobcontext/jobcontext",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:06:03.268Z"
        },
        {
          "id": "3537",
          "url": "https://lingard.app/mcp",
          "server_name": "app.lingard/vocab",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:07:01.446Z"
        },
        {
          "id": "3646",
          "url": "https://www.nailme.app/mcp",
          "server_name": "app.nailme/nailme",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:08:02.726Z"
        },
        {
          "id": "3796",
          "url": "https://openpaddock.app/mcp",
          "server_name": "app.openpaddock/open-paddock",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:09:04.135Z"
        },
        {
          "id": "3833",
          "url": "https://perfumate.app/mcp",
          "server_name": "app.perfumate/perfumate",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:10:02.319Z"
        },
        {
          "id": "4296",
          "url": "https://dealer-direct-mcp.web.app/mcp",
          "server_name": "app.web.dealer-direct-mcp/dealer-direct-inventory",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:16:12.617Z"
        },
        {
          "id": "4452",
          "url": "https://wonderkit.app/mcp",
          "server_name": "app.wonderkit/discover",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:17:01.336Z"
        },
        {
          "id": "4671",
          "url": "https://unstocked.bike/mcp",
          "server_name": "bike.unstocked/unstocked",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:22:01.966Z"
        },
        {
          "id": "5058",
          "url": "https://mcp.blust.ch/mcp",
          "server_name": "ch.blust/mental-model",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:30:05.966Z"
        },
        {
          "id": "5080",
          "url": "https://jasswiki.ch/mcp/http",
          "server_name": "ch.jassverband/jasswiki",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:31:01.196Z"
        },
        {
          "id": "5302",
          "url": "https://scribble.boringstuff.club/mcp",
          "server_name": "club.boringstuff/the-scribble-thing",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:34:01.750Z"
        },
        {
          "id": "6506",
          "url": "https://aipozi.com/mcp",
          "server_name": "com.aipozi/aipozi",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:53:05.413Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "app.web.yutai-mcp",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "4298",
    "server_name": "app.web.yutai-mcp/yutai-mcp",
    "url": "https://yutai-mcp.web.app/mcp",
    "host": "yutai-mcp.web.app",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-24T07:17:01.072Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "2ec1740dd3025a36a52cf1dc47810bd3a8f2137cf57f8cfae501c779919e36a4",
    "first_listed_at": "2026-11-21T06:09:00.281Z",
    "created_at": "2026-11-21T04:55:06.147Z",
    "resolved_addresses": [
      "199.36.158.100",
      "2620:0:890::100"
    ]
  },
  "server": {
    "name": "app.web.yutai-mcp/yutai-mcp",
    "title": "株主優待 MCP (Yutai MCP)",
    "description": "Japanese shareholder benefits search, cross-trading cost estimates, and trading date calculations.",
    "version": "1.0.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://yutai-mcp.web.app/mcp",
    "published_at": "2026-10-07T07:44:10.332Z",
    "updated_at": "2026-10-07T07:44:10.332Z",
    "first_seen": "2026-11-21T04:55:05.500Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T14:54:05.897Z"
  },
  "operator": null,
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 4,
    "answered": 4,
    "answered_percent": 100,
    "avg_listing_latency_ms": 993,
    "first_check_in_window": "2026-11-21T06:09:00.281Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-24",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "2ec1740dd3025a36a52cf1dc47810bd3a8f2137cf57f8cfae501c779919e36a4",
    "tools": 6,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T06:09:01.406Z",
    "tool_names": [
      "search_benefits",
      "get_benefit",
      "estimate_cross_fee",
      "calc_dates",
      "calc_max_gyakuhibu",
      "predict_gyakuhibu"
    ],
    "declared": {
      "tools": [
        {
          "name": "search_benefits",
          "description": "株主優待を検索する。複数条件を組み合わせて絞り込める。\n\n【重要: vestingDates と karaDates の違い】\nvestingDates（権利確定日）: 現物保有で優待を得るための権利確定月日。「○月に権利確定する銘柄」はこちら。\nkaraDates（空クロス日）: 権利確定日だけでなく別の日付にも株を一定数保有する必要がある銘柄の、その追加保有日。\n  端株保有だけでは条件を満たせず、その日付にクロス取引（空クロス）で株数を確保する必要がある。\n  「○月に空クロスが必要な銘柄」→ karaDate=\"MM\" または karaDateFrom/karaDateTo で検索する。\n  vestingDate で検索しても空クロス対象の銘柄は正しく絞り込めない。\n\n【信用取引区分 lendingType】\nboth=制度信用売り可。制度信用でクロスができる\nbuying_only=制度信用買いのみ可、売りが使えないため制度信用ではクロスができない\nnone=信用取引不可\n\n【制度信用の規制 systemLendingStatus】各結果に付く。none=規制なし / warn=注意喚起(増担保・申込停止等) /\nprohibited=売禁(制度信用の新規売り停止)。lendingType(構造的な区分)とは別で、日々変動する。\n・売禁の銘柄だけ / 除外したい → sellProhibited=true / false\n・注意喚起の銘柄だけ / 除外したい → sellCaution=true / false\n・売禁または注意喚起(要注意銘柄)だけ / 除外したい → sellRestricted=true / false\nデータ未取得の銘柄は「規制なし」として扱う。\n\n【増担保 marginRateMultiplier】各結果に付く。増担保金徴収措置による最高料率倍率(例: 10=10倍)。\nsystemLendingStatusとは別の措置で、売禁・注意喚起と同時に付くことも単独で付くこともある。措置無しはundefined。\n・倍率で絞り込みたい → minMarginRateMultiplier / maxMarginRateMultiplier(措置無しの銘柄は対象外になる)\n\n【長期条件】longType: none=なし / longAddition=長期優遇 / longOnly=長期必須\n【難易度】rarity: 前回権利時の一般信用在庫の推移(証券会社別)から算出した「一般信用クロスでの\n確保しやすさ」。canNormalSelling_* / minRemain_* とは別の、過去実績ベースの総合指標。\nS(最難。在庫がほぼ出回らない)>A>B>C>D>E(最易。常時潤沢) ※minRarity='A' → AかSの銘柄のみ\n【一般信用売り】canNormalSelling_*: enableSelling=売り可(空売含) / enableLongSelling=長期売りのみ可 / notEnableSelling=不可\n【一般信用残】minRemain_sbi/gmo: few=△以上 / remaining=◎のみ。minRemain_rakuten/kabucom/smbc: 数量指定\n【利回り】actualYield(%): 優待の申込単位ごとに (評価額 ÷ (株価×その単位の株数)) × 100 を計算し、\n  達成可能な最良の値を採用する(必要株数がminRequiredUnitsと異なる場合がある)。\n  長期保有条件(details[].longType='required'/'additional')付きの上位ランク・追加分はクロス\n  (初回取得)では届かないため対象外(longTypeが無い基本額のみで計算)。\n  クロスの手数料・貸株料・逆日歩は一切含まない額面利回り。\n  ※minValue/maxValue(評価額の最小値/最大値)・minRequiredUnits(必要株数の最小値)は、それぞれ独立の別統計であり\n  同じ申込単位の値とは限らない(actualYieldの算出には使わない)。\n【手取り利回り】netYield(%): (優待評価額 - 必要クロスコスト)/必要資金×100。必要クロスコストに逆日歩は\n  含まない(一般信用クロスのみが対象で、逆日歩が発生する制度信用は含まないため)。\n  ・各結果に crossCost(必要クロスコスト)/crossCostBroker/crossCostSellMethod/netValue/netYield が付く。\n  ・比較対象は「今この銘柄で実際にできる一般信用クロス」に限る:\n    - その証券会社で一般信用売りの取り扱いがあり(enableShort/enableUnlimited)、かつ残数がある\n    - 短期(general_short)は SBI/GMO/楽天のみ。約定日が売建可能日以降であること\n    - 制度信用クロスは常に対象外(逆日歩リスクがあるため netYield には含めない)\n  ・上記を満たす手段が1つも無い銘柄、株価・優待評価額・権利確定日が無い銘柄、\n    今からでは決済が間に合わない銘柄には netYield が付かない(= 今すぐ得できる優待の指標)。\n  ・「手数料を引いても得な優待」は minNetYield / sortBy:netYield で絞る。\n  ・返す数件には常に付くが、sortBy:netYield / minNetYield / maxNetYield を指定したときだけ\n    全候補に対して計算する(それ以外は最終ページの数件のみ計算)。\n  ・使ったプラン設定(ゼロ革命/コース/大口優遇/約定日)はヘッダー行に出る。ユーザーの実際の契約と\n    違う場合は sbiZeroRevolution / rakutenCourse / kabucomLargeLot / date 等で指定し直せることを案内すること。\n【逆日歩】prevLendingInterest: 直近1回(前回の権利付き最終日)の逆日歩実績のみ(平均ではない)を、\n  1日あたり・株価に対する比率に換算した値(0.01=1日あたり1%)。制度信用クロスのコスト目安に使う。\n  過去複数回の履歴(ワースト10・直近10日)や一般信用在庫の推移は get_benefit に sections:[\"negativeInterests\"] / [\"remainingHistories\"] を指定して取得する。\n【並べ替え】sortBy / order で並べ替え、件数は limit で指定する(省略時20件。sortByとは独立)。\n  「手取り利回り順トップ10」→ sortBy:netYield と limit:10 を両方指定する(sortByだけでは10件に絞らない)。\n  他に「必要資金の少ない順」→ requiredFunds、「前回逆日歩が高い順」→ prevLendingInterest(一般信用推奨候補)。\n  sortBy 省略時は並べ替えなし。\n\n【出力フィールドの読み方】\nunit/minRequiredUnits: 権利確定日に必要な通常の株数\ndetails[]: 優待の詳細条件一覧。各要素に以下が含まれる:\n  candidates[].unit: その条件での必要株数\n  longType: 'additional'=長期優遇 / 'required'=長期必須\n  longCondition: 長期保有条件の概要テキスト（例: \"継続保有期間1年以上\"）\n  longConditionDetail: 長期保有条件の詳細テキスト\n「空クロスで必要な株数を教えて」→ details[].longConditionDetail のテキストから株数を読み取る\n「長期条件を教えて」→ details[].longCondition と details[].longConditionDetail を参照する\n「空クロスの有無」→ karaDates の有無を確認する（details の longType とは別物）\n\n【details[].candidates の金額と vestingDates（複数権利月）の対応】\nvestingDates が複数ある銘柄（例: [\"03\",\"09\"]=年2回）で、candidates[].detail に月の但し書き\n（「3月のみ」「(9月)」等）が無い場合、その金額(value)は権利月ごとに同額が適用される\n（例: vestingDates=[\"03\",\"09\"], detail=\"500円分\" → 3月に500円分・9月にも500円分もらえる。\n年間合計は1000円分であり、「9月分かどうか不明」ではない）。\n一方、detail に特定の月が明記されている場合（例:「(3月のみ)クオカード3,000円相当 (9月)クオカード2,000円分」）は、\n明記された月にのみその内容が適用され、他の月は別の候補行（candidates の別要素）を参照する。\n「○月にもらえる優待は？」と聞かれたら、月の但し書きが無い限り vestingDates に含まれる\n全ての月で同じ内容がもらえると回答すること（「不明」「要確認」と答えない）。",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "date": {
                "type": "string",
                "description": "netYield計算の約定日 (YYYY-MM-DD)。省略時は「今」から自動算出(JST 15:30より前なら当日、以降なら翌営業日)"
              },
              "limit": {
                "type": "number",
                "description": "最大件数 (デフォルト20)"
              },
              "order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "並び順。省略時のデフォルトは sortBy 依存(nextVestingDate/requiredFunds は asc、それ以外は desc)"
              },
              "anyDay": {
                "type": "boolean",
                "description": "長期条件の判定で、決まった基準日以外にも「任意の日」に保有状況を抜き打ちで確認すると明記されている銘柄かどうか。trueにするとそれに該当する銘柄のみ返す(基準日だけクロスで確保しても長期条件を満たせない可能性がある、要注意銘柄)"
              },
              "gmoVip": {
                "type": "boolean",
                "description": "GMO VIPプラン。既定false"
              },
              "sbiVip": {
                "type": "boolean",
                "description": "SBI大口優遇(建玉5億円以上)。既定false"
              },
              "sortBy": {
                "enum": [
                  "actualYield",
                  "netYield",
                  "minValue",
                  "requiredFunds",
                  "prevLendingInterest",
                  "nextVestingDate",
                  "update"
                ],
                "type": "string",
                "description": "並べ替えキー。actualYield=実質利回り(手数料考慮なし) / netYield=手取り利回り(必要クロスコスト〈逆日歩除く〉を引いた後) / minValue=優待評価額 / requiredFunds=必要資金 / prevLendingInterest=前回の逆日歩率 / nextVestingDate=次回権利確定日 / update=優待内容が最後に変更された日。省略時は並べ替えなし。値を持たない銘柄は order によらず末尾"
              },
              "keyword": {
                "type": "string",
                "description": "部分一致検索。対象: 銘柄コード / 銘柄名 / サマリー / 詳細説明(description) / 更新メモ(updateNote) / 優待内容の各候補テキスト(details[].candidates[].detail)。「コストコ」「株主優待券」など優待の中身でも検索できる。例: \"3397\", \"すかいらーく\", \"コストコ\""
              },
              "karaDate": {
                "type": "string",
                "description": "空クロスが必要な月または月日で絞り込む。「○月に空クロスが必要な銘柄」を探す場合はここを使う。例: \"05\"=5月, \"05-20\"=5月20日。vestingDate（権利確定日）とは別物なので混同しないこと。"
              },
              "longType": {
                "enum": [
                  "none",
                  "longAddition",
                  "longOnly"
                ],
                "type": "string",
                "description": "長期保有条件の完全一致。none=なし, longAddition=長期優遇, longOnly=長期必須"
              },
              "maxValue": {
                "type": "number",
                "description": "絞り込みたい優待評価額の上限 (円)。優待自身の評価額の範囲(出力のminValue〜maxValue)がminValue引数〜この上限の範囲に少しでも重なる銘柄を返す(単一値の一致ではない)。例: 10000 = 10000円以下を含む銘柄"
              },
              "minValue": {
                "type": "number",
                "description": "絞り込みたい優待評価額の下限 (円)。優待自身の評価額の範囲(出力のminValue〜maxValue)がこの下限〜maxValue引数の範囲に少しでも重なる銘柄を返す(単一値の一致ではない)。例: 1000 = 1000円以上を含む銘柄"
              },
              "updateTo": {
                "type": "string",
                "description": "優待内容が変更された日(update)の上限 (YYYY-MM-DD)。例: \"2026-05-31\" → 5月末までに優待内容が変更された銘柄"
              },
              "maxRarity": {
                "enum": [
                  "S",
                  "A",
                  "B",
                  "C",
                  "D",
                  "E"
                ],
                "type": "string",
                "description": "一般信用クロスの取得難易度(前回権利時の在庫推移から算出)の上限。例: \"C\" → C,D,Eの取りやすい銘柄のみ"
              },
              "minRarity": {
                "enum": [
                  "S",
                  "A",
                  "B",
                  "C",
                  "D",
                  "E"
                ],
                "type": "string",
                "description": "一般信用クロスの取得難易度(前回権利時の在庫推移から算出)の下限。S>A>B>C>D>E。例: \"A\" → AまたはSの難しい銘柄のみ"
              },
              "kabucomSor": {
                "type": "boolean",
                "description": "カブコムSOR(スマート・オーダー・ルーティング)。既定false"
              },
              "karaDateTo": {
                "type": "string",
                "description": "次回空クロス日の上限 (YYYY-MM-DD)。例: \"2026-05-31\" → 5月末までに空クロスが必要な銘柄"
              },
              "rakutenVip": {
                "type": "boolean",
                "description": "楽天大口優遇。既定false"
              },
              "updateFrom": {
                "type": "string",
                "description": "優待内容が変更された日(update)の下限 (YYYY-MM-DD)。例: \"2026-05-01\" → 5月1日以降に優待内容が変更された銘柄"
              },
              "lendingType": {
                "enum": [
                  "both",
                  "buying_only",
                  "none"
                ],
                "type": "string",
                "description": "信用取引区分。both=制度クロス可, buying_only=空クロス必要, none=クロス不可"
              },
              "maxNetYield": {
                "type": "number",
                "description": "手取り利回りの上限 (%)"
              },
              "minNetYield": {
                "type": "number",
                "description": "手取り利回りの下限 (%)。例: 0.5 = 手数料を引いても0.5%以上"
              },
              "requireKara": {
                "type": "boolean",
                "description": "true=空クロスが必要な日付（karaDates）がある銘柄のみ / false=karaDatesがない銘柄のみ"
              },
              "sellCaution": {
                "type": "boolean",
                "description": "制度信用の注意喚起(増担保・申込停止等)。true=注意喚起中の銘柄のみ / false=注意喚起でない銘柄のみ"
              },
              "vestingDate": {
                "type": "string",
                "description": "権利確定月または月日で単一絞り込み。例: \"03\"=3月, \"03-20\"=3月20日 (vestingDates配列に対してマッチ)"
              },
              "benefitTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "優待種別（OR検索）。例: [\"QUO\",\"MealTicket\"]。指定した種別のいずれかを持つ銘柄を返す。種別一覧: QUO, RiceVoucher, CashVoucher, JEFVoucher, MealTicket, FacilityTicket, ShoppingTicket, HotelTicket, TransportTicket, OtherTicket, CatalogGift, PYC, Electronics, Fashion, OtherItems, Fruit, Meat, Fish, Drink, Liquor, Rice, Sweets, OtherMeal"
              },
              "excludeCodes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "除外する銘柄コード配列"
              },
              "karaDateFrom": {
                "type": "string",
                "description": "次回空クロス日の下限 (YYYY-MM-DD)。例: \"2026-05-01\" → 5月以降に空クロスが必要な銘柄"
              },
              "minRemain_gmo": {
                "$ref": "#/properties/minRemain_sbi",
                "description": "GMO 一般信用残数の下限。few=△以上, remaining=◎のみ"
              },
              "minRemain_sbi": {
                "enum": [
                  "few",
                  "remaining"
                ],
                "type": "string",
                "description": "SBI 一般信用残数の下限。few=△以上(△または◎), remaining=◎のみ。canNormalSelling_sbi=enableSelling と併用推奨"
              },
              "rakutenCourse": {
                "enum": [
                  "zero",
                  "chowari"
                ],
                "type": "string",
                "description": "楽天のコース。既定\"zero\"(ゼロコース)"
              },
              "vestingDateTo": {
                "type": "string",
                "description": "次回権利確定日の上限 (YYYY-MM-DD)。nextVestingDate <= この値の銘柄を返す"
              },
              "maxActualYield": {
                "type": "number",
                "description": "実利回り上限 (%)。優待の申込単位のうち達成可能な最良の額面利回りで、クロスの手数料・貸株料・逆日歩は含まない。手数料込みで絞るには maxNetYield を使う。株価データが無い銘柄(price未取得)はこの条件では判定できないため除外される。例: 5.0 = 5%以下"
              },
              "minActualYield": {
                "type": "number",
                "description": "実利回り下限 (%)。優待の申込単位のうち達成可能な最良の額面利回りで、クロスの手数料・貸株料・逆日歩は含まない。手数料込みで絞るには minNetYield を使う。株価データが無い銘柄(price未取得)はこの条件では判定できないため除外される。例: 1.0 = 1%以上"
              },
              "minRemain_smbc": {
                "type": "number",
                "description": "SMBC日興 一般信用残数の下限（株数）"
              },
              "sellProhibited": {
                "type": "boolean",
                "description": "制度信用の売禁(新規売り停止)。true=売禁の銘柄のみ / false=売禁でない銘柄のみ。データ未取得は「規制なし」扱い"
              },
              "sellRestricted": {
                "type": "boolean",
                "description": "売禁または注意喚起(制度信用の要注意銘柄)。true=いずれかに該当する銘柄のみ / false=どちらでもない銘柄のみ"
              },
              "kabucomLargeLot": {
                "enum": [
                  "crown",
                  "diamond",
                  "sapphire",
                  "platinum",
                  "gold",
                  "silver",
                  "none"
                ],
                "type": "string",
                "description": "カブコム大口優遇ランク。既定\"none\""
              },
              "vestingDateFrom": {
                "type": "string",
                "description": "次回権利確定日の下限 (YYYY-MM-DD)。nextVestingDate >= この値の銘柄を返す"
              },
              "hasLongCondition": {
                "type": "boolean",
                "description": "trueにすると長期条件あり銘柄 (longAddition または longOnly) のみ返す"
              },
              "maxRequiredFunds": {
                "type": "number",
                "description": "必要資金の上限 (円)。株価×minRequiredUnits で計算。株価データが無い銘柄(price未取得)はこの条件では判定できないため除外される"
              },
              "minRequiredFunds": {
                "type": "number",
                "description": "必要資金の下限 (円)。株価×minRequiredUnits で計算。株価データが無い銘柄(price未取得)はこの条件では判定できないため除外される"
              },
              "minRemain_kabucom": {
                "type": "number",
                "description": "カブドットコム 一般信用残数の下限（株数）"
              },
              "minRemain_rakuten": {
                "type": "number",
                "description": "楽天 一般信用残数の下限（株数）。例: 1000 = 1000株以上"
              },
              "sbiZeroRevolution": {
                "type": "boolean",
                "description": "SBIゼロ革命(電子交付設定)。既定true"
              },
              "minRemain_any_count": {
                "type": "number",
                "description": "楽天・カブコム・SMBCのいずれかで指定した株数以上の一般信用残数がある銘柄 (OR検索)。例: 1 → どこかに在庫あり, 2000 → どこかに2000株以上"
              },
              "canNormalSelling_any": {
                "enum": [
                  "enableSelling",
                  "enableLongSelling",
                  "notEnableSelling"
                ],
                "type": "string",
                "description": "いずれかの証券会社で条件を満たす銘柄を返す (OR検索)。「どこかで一般信用売りができる銘柄」を探すときに使う。個別の canNormalSelling_* と併用すると AND になる。enableSelling=売り可, enableLongSelling=長期売りのみ"
              },
              "canNormalSelling_gmo": {
                "$ref": "#/properties/canNormalSelling_any",
                "description": "GMO 一般信用売り可否"
              },
              "canNormalSelling_sbi": {
                "$ref": "#/properties/canNormalSelling_any",
                "description": "SBI 一般信用売り可否。enableSelling=売り可, enableLongSelling=長期売りのみ, notEnableSelling=不可"
              },
              "canNormalSelling_smbc": {
                "$ref": "#/properties/canNormalSelling_any",
                "description": "SMBC日興 一般信用売り可否"
              },
              "maxPrevLendingInterest": {
                "type": "number",
                "description": "前回逆日歩率(1日あたり・株価に対する比率)の上限。例: 0.01 = 1日あたり1%以下"
              },
              "minPrevLendingInterest": {
                "type": "number",
                "description": "前回逆日歩率(1日あたり・株価に対する比率)の下限。例: 0.005 = 1日あたり0.5%以上"
              },
              "maxMarginRateMultiplier": {
                "type": "number",
                "description": "増担保金徴収措置による最高料率倍率(marginRateMultiplier)の上限。措置が無い銘柄は対象外になる。例: 10 = 10倍以下"
              },
              "minMarginRateMultiplier": {
                "type": "number",
                "description": "増担保金徴収措置による最高料率倍率(marginRateMultiplier)の下限。措置が無い銘柄は対象外になる。例: 5 = 5倍以上"
              },
              "rakutenPreferentialRate": {
                "type": "boolean",
                "description": "楽天優遇金利適用。既定false"
              },
              "canNormalSelling_kabucom": {
                "$ref": "#/properties/canNormalSelling_any",
                "description": "カブドットコム 一般信用売り可否"
              },
              "canNormalSelling_rakuten": {
                "$ref": "#/properties/canNormalSelling_any",
                "description": "楽天 一般信用売り可否"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "total",
              "items"
            ],
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "name",
                    "vestingDates",
                    "nextVestingDate",
                    "lendingType",
                    "longType",
                    "rarity",
                    "benefitTypes",
                    "unit",
                    "minRequiredUnits"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "銘柄コード"
                    },
                    "name": {
                      "type": "string"
                    },
                    "unit": {
                      "type": "number",
                      "description": "権利確定に必要な通常の株数(1単元)"
                    },
                    "price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "利回りや手数料の計算で使用している概算株価。現在の正確な株価ではない。取得できない銘柄はundefined"
                    },
                    "anyDay": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "trueの場合、基準日以外の「任意の日」にも保有状況を抜き打ち確認する旨が長期条件に明記されている(要注意銘柄)"
                    },
                    "rarity": {
                      "type": "string",
                      "description": "前回権利時の一般信用在庫推移から算出した確保しやすさ。S(最難)>A>B>C>D>E(最易)"
                    },
                    "update": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "優待内容(details等)が最後に変更された日(YYYY-MM-DD)。新設や変更(株式分割による区分変更・優待内容の変更・長期優遇の廃止等)があった際に更新される。何が変わったかは updateNote を参照"
                    },
                    "details": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "candidates"
                            ],
                            "properties": {
                              "longType": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "additional",
                                      "required"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "長期条件区分。additional=長期優遇 / required=長期必須。無ければ長期条件なし"
                              },
                              "candidates": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "detail",
                                    "benefitTypes"
                                  ],
                                  "properties": {
                                    "unit": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "この候補が適用される必要株数(通常のvesting株数と異なる場合がある)"
                                    },
                                    "value": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "円換算した評価額"
                                    },
                                    "detail": {
                                      "type": "string",
                                      "description": "優待内容のテキスト(例: \"2,000円分\")"
                                    },
                                    "benefitTypes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "longCondition": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "長期保有条件の概要テキスト"
                              },
                              "longConditionDetail": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "長期保有条件の詳細テキスト(空クロスの必要株数等はここから読み取る)"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "優待内容の詳細条件一覧"
                    },
                    "summary": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "longType": {
                      "enum": [
                        "none",
                        "longAddition",
                        "longOnly"
                      ],
                      "type": "string",
                      "description": "none=長期条件なし / longAddition=長期優遇 / longOnly=長期必須"
                    },
                    "maxValue": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "優待評価額(円)の最大値。優待の申込単位が複数ある場合、その中の最大の評価額"
                    },
                    "minValue": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "優待評価額(円)。優待の申込単位が複数ある場合、その中の最小の評価額"
                    },
                    "netValue": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "優待評価額 - crossCost"
                    },
                    "netYield": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "手取り利回り(%) = netValue / 必要資金 × 100"
                    },
                    "crossCost": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "手取り利回りが最良になる組み合わせ(申込単位×証券会社×売り方式)での一般信用クロスの必要コスト(円)。一般信用のみが対象のため逆日歩は含まない(発生しない)。netYield計算時のみ付く。今実際にできる一般信用クロスが無い銘柄等は付かない"
                    },
                    "karaDates": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "空クロスが必要な月/月日パターン(vestingDatesとは別物)"
                    },
                    "updateNote": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "update日時点で何が変わったか(または新設か)を記した短い注記。例: \"新設\" / \"株式分割による区分変更。ポイントアップ。長期優遇を廃止\""
                    },
                    "actualYield": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "実利回り(%)。優待の申込単位ごとに(評価額 ÷ (株価×その単位の株数)) × 100 を計算し、達成可能な最良の値を採用する(必要な株数がminRequiredUnitsより多い単位が選ばれることがある)。長期保有条件付きの上位ランク・追加分(details[].longType='required'/'additional')はクロス(初回取得)では届かないため対象外。クロスの手数料・貸株料・逆日歩は一切含まない額面利回り"
                    },
                    "lendingType": {
                      "enum": [
                        "both",
                        "buying_only",
                        "none"
                      ],
                      "type": "string",
                      "description": "制度信用区分。both=制度信用売り可 / buying_only=買いのみ可 / none=不可"
                    },
                    "benefitTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "nextKaraDate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "次回の具体的な空クロス日(ISO文字列)"
                    },
                    "vestingDates": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "権利確定の月または月日パターン(例: [\"03\",\"09\"])。年に依存しない繰り返しパターン"
                    },
                    "requiredFunds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "最小株数(minRequiredUnits)で優待を得るために必要な資金(円) = price × minRequiredUnits"
                    },
                    "crossCostBroker": {
                      "anyOf": [
                        {
                          "enum": [
                            "sbi",
                            "gmo",
                            "rakuten",
                            "kabucom",
                            "smbc"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "crossCostの組み合わせで採用された証券会社"
                    },
                    "nextVestingDate": {
                      "type": "string",
                      "description": "次回の具体的な権利確定日(ISO文字列)。JST日付が \"...T15:00:00.000Z\" のように前日UTC表記になる点に注意"
                    },
                    "minRequiredUnits": {
                      "type": "number",
                      "description": "この優待を得るために必要な最小株数。申込単位が複数ある場合はその中の最小株数"
                    },
                    "crossCostSellMethod": {
                      "anyOf": [
                        {
                          "enum": [
                            "general_short",
                            "general_long",
                            "system"
                          ],
                          "type": "string",
                          "description": "general_short=一般信用「短期」 / general_long=一般信用「無期限・長期」 / system=制度信用"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "crossCostの組み合わせで採用された売り方式"
                    },
                    "normalLendingStatus": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "sbi",
                            "gmo",
                            "rakuten",
                            "kabucom",
                            "smbc"
                          ],
                          "properties": {
                            "gmo": {
                              "type": "object",
                              "required": [
                                "enableShort",
                                "enableUnlimited",
                                "status"
                              ],
                              "properties": {
                                "limit": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "在庫の上限株数(取得できた場合)"
                                },
                                "status": {
                                  "enum": [
                                    "none",
                                    "remaining",
                                    "few"
                                  ],
                                  "type": "string",
                                  "description": "在庫ランク。sbiと同様"
                                },
                                "enableShort": {
                                  "type": "boolean",
                                  "description": "一般信用「短期」の売り建てが可能か"
                                },
                                "enableUnlimited": {
                                  "type": "boolean",
                                  "description": "一般信用「無期限/長期」の売り建てが可能か"
                                }
                              },
                              "additionalProperties": false
                            },
                            "sbi": {
                              "type": "object",
                              "required": [
                                "enableShort",
                                "enableUnlimited",
                                "status"
                              ],
                              "properties": {
                                "status": {
                                  "enum": [
                                    "none",
                                    "remaining",
                                    "few"
                                  ],
                                  "type": "string",
                                  "description": "在庫ランク。none=在庫なし / few=△ / remaining=◎"
                                },
                                "enableShort": {
                                  "type": "boolean",
                                  "description": "一般信用「短期」の売り建てが可能か"
                                },
                                "enableUnlimited": {
                                  "type": "boolean",
                                  "description": "一般信用「無期限/長期」の売り建てが可能か"
                                }
                              },
                              "additionalProperties": false
                            },
                            "smbc": {
                              "type": "object",
                              "required": [
                                "enableShort",
                                "enableUnlimited",
                                "status"
                              ],
                              "properties": {
                                "status": {
                                  "type": "number",
                                  "description": "在庫株数"
                                },
                                "enableShort": {
                                  "type": "boolean",
                                  "description": "一般信用「短期」の売り建てが可能か"
                                },
                                "enableUnlimited": {
                                  "type": "boolean",
                                  "description": "一般信用「無期限/長期」の売り建てが可能か"
                                }
                              },
                              "additionalProperties": false
                            },
                            "kabucom": {
                              "type": "object",
                              "required": [
                                "enableShort",
                                "enableUnlimited",
                                "status"
                              ],
                              "properties": {
                                "status": {
                                  "type": "number",
                                  "description": "在庫株数"
                                },
                                "premium": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "プレミアム料率(文字列)"
                                },
                                "enableShort": {
                                  "type": "boolean",
                                  "description": "一般信用「短期」の売り建てが可能か"
                                },
                                "enableUnlimited": {
                                  "type": "boolean",
                                  "description": "一般信用「無期限/長期」の売り建てが可能か"
                                }
                              },
                              "additionalProperties": false
                            },
                            "rakuten": {
                              "type": "object",
                              "required": [
                                "enableShort",
                                "enableUnlimited",
                                "status"
                              ],
                              "properties": {
                                "status": {
                                  "type": "number",
                                  "description": "在庫株数"
                                },
                                "enableShort": {
                                  "type": "boolean",
                                  "description": "一般信用「短期」の売り建てが可能か"
                                },
                                "enableUnlimited": {
                                  "type": "boolean",
                                  "description": "一般信用「無期限/長期」の売り建てが可能か"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "証券会社別の一般信用在庫の現在ステータス"
                    },
                    "prevLendingInterest": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "前回の逆日歩率。直近1回(前回の権利付き最終日)の実績のみで、複数回の平均ではない。逆日歩額を1日あたり・株価に対する比率に換算した値(0.01=1日あたり1%)で、制度信用クロスのコスト目安に使う。過去複数回分の履歴は get_benefit の negativeInterests を参照"
                    },
                    "systemLendingStatus": {
                      "anyOf": [
                        {
                          "enum": [
                            "none",
                            "warn",
                            "prohibited"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "制度信用の規制状態。none=規制なし / warn=注意喚起 / prohibited=売禁。lendingTypeとは別軸で日々変動する。データ無しはundefined(規制なし扱い)"
                    },
                    "marginRateMultiplier": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "増担保金徴収措置による最高料率倍率(通常の委託保証金率に対する倍率。例: 10=10倍)。systemLendingStatusとは別の措置で、売禁・注意喚起と同時に付くことも単独で付くこともある。措置無しはundefined"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "itemsの各要素はrarity等のフィルタで使うのと同じ意味のフィールドを持つ"
              },
              "total": {
                "type": "number",
                "description": "フィルタ後(ページングする前)の全該当件数"
              },
              "assumptions": {
                "type": "object",
                "required": [
                  "sbiVip",
                  "sbiZeroRevolution",
                  "gmoVip",
                  "rakutenCourse",
                  "rakutenVip",
                  "rakutenPreferentialRate",
                  "kabucomSor",
                  "kabucomLargeLot",
                  "tradeDate"
                ],
                "properties": {
                  "gmoVip": {
                    "type": "boolean",
                    "description": "GMO VIPプランの前提"
                  },
                  "sbiVip": {
                    "type": "boolean",
                    "description": "SBI大口優遇の前提"
                  },
                  "tradeDate": {
                    "type": "string",
                    "description": "netYield計算に使った約定日(YYYY-MM-DD)。省略時は「今」から自動算出"
                  },
                  "kabucomSor": {
                    "type": "boolean",
                    "description": "カブコムSORの前提"
                  },
                  "rakutenVip": {
                    "type": "boolean",
                    "description": "楽天大口優遇の前提"
                  },
                  "rakutenCourse": {
                    "enum": [
                      "zero",
                      "chowari"
                    ],
                    "type": "string",
                    "description": "楽天のコースの前提"
                  },
                  "kabucomLargeLot": {
                    "enum": [
                      "crown",
                      "diamond",
                      "sapphire",
                      "platinum",
                      "gold",
                      "silver",
                      "none"
                    ],
                    "type": "string",
                    "description": "カブコム大口優遇ランクの前提"
                  },
                  "sbiZeroRevolution": {
                    "type": "boolean",
                    "description": "SBIゼロ革命(電子交付設定)の前提"
                  },
                  "rakutenPreferentialRate": {
                    "type": "boolean",
                    "description": "楽天優遇金利適用の前提"
                  }
                },
                "description": "netYield計算に使った証券会社プラン・約定日の前提",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_benefit",
          "description": "銘柄コードで株主優待を1件取得する。sections で返す情報を選ぶ(不要なものは返さない)。\n\n- basic (既定): 銘柄の基本情報。優待内容・権利確定日(vestingDates)・\n  空クロス日(karaDates)・信用区分(lendingType)・制度信用の規制状態(systemLendingStatus:\n  none/warn=注意喚起/prohibited=売禁)・増担保の最高料率倍率(marginRateMultiplier)・\n  長期条件・難易度・株価・必要資金・実質利回り(actualYield)・\n  現時点の一般信用残数(normalLendingStatus)・details(候補と長期保有条件)。\n- negativeInterests: 逆日歩(制度信用売りで発生しうる、金額が事前に確定しない追加費用)の履歴。\n  prev(前回権利付最終日の1件)/ worst10(過去ワースト10、逆日歩/日 の降順)/ latest(直近10日)。\n  negativeInterestPerDiem / highestNegativeInterestPerDiem は「円/株」の文字列で lendingDays 日分。\n  1日あたりは negativeInterestPerDiem / lendingDays。balancePrice はその日の建値。\n  逆日歩は過去実績であり将来を保証・予測するものではない点をユーザーに必ず伝えること。\n- remainingHistories: 一般信用売りの在庫ステータスの推移。prev(前回権利前3ヶ月)/ latest(直近1ヶ月)。\n\nnegativeInterests / remainingHistories は銘柄ごとに個別管理された詳細データが必要で、無い銘柄では notes に理由が入る。\nbasic のみ(既定)なら詳細データは取得しないため軽量。",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "銘柄コード。例: \"3397\""
              },
              "sections": {
                "type": "array",
                "items": {
                  "enum": [
                    "basic",
                    "negativeInterests",
                    "remainingHistories"
                  ],
                  "type": "string"
                },
                "description": "返す情報の種類(配列)。省略時は [\"basic\"]。逆日歩履歴が欲しいときは [\"basic\",\"negativeInterests\"]、在庫推移も含めるなら [\"basic\",\"negativeInterests\",\"remainingHistories\"]"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "銘柄コード"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "unit": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "権利確定に必要な通常の株数(1単元)"
              },
              "notes": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "要求されたsectionの一部が取得できなかった場合の理由"
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "利回りや手数料の計算で使用している概算株価。現在の正確な株価ではない。取得できない銘柄はundefined"
              },
              "anyDay": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "基準日以外の「任意の日」にも保有状況を抜き打ち確認する旨が長期条件に明記されているか(要注意銘柄)"
              },
              "rarity": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "一般信用クロスの取得難易度(前回権利時の在庫推移から算出)。S(最難)>A>B>C>D>E(最易)"
              },
              "update": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "優待内容(details等)が最後に変更された日(YYYY-MM-DD)。新設や変更(株式分割による区分変更・優待内容の変更・長期優遇の廃止等)があった際に更新される。何が変わったかは updateNote を参照"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "candidates"
                      ],
                      "properties": {
                        "longType": {
                          "anyOf": [
                            {
                              "enum": [
                                "additional",
                                "required"
                              ],
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "長期条件区分。additional=長期優遇 / required=長期必須。無ければ長期条件なし"
                        },
                        "candidates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "detail",
                              "benefitTypes"
                            ],
                            "properties": {
                              "unit": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "この候補が適用される必要株数(通常のvesting株数と異なる場合がある)"
                              },
                              "value": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "円換算した評価額"
                              },
                              "detail": {
                                "type": "string",
                                "description": "優待内容のテキスト(例: \"2,000円分\")"
                              },
                              "benefitTypes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "longCondition": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "長期保有条件の概要テキスト"
                        },
                        "longConditionDetail": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "長期保有条件の詳細テキスト(空クロスの必要株数等はここから読み取る)"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "優待内容の詳細条件一覧"
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "銘柄が見つからない場合のメッセージ。このときcode以外の他フィールドは付かない"
              },
              "siteUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "summary": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "longType": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "長期条件。通常は none/longAddition/longOnly のいずれか"
              },
              "maxValue": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "優待評価額(円)の最大値。優待の申込単位が複数ある場合、その中の最大の評価額"
              },
              "minValue": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "優待評価額(円)。優待の申込単位が複数ある場合、その中の最小の評価額"
              },
              "karaDates": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "空クロスが必要な月/月日パターン(vestingDatesとは別物)"
              },
              "updateNote": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "update日時点で何が変わったか(または新設か)を記した短い注記。例: \"新設\" / \"株式分割による区分変更。ポイントアップ。長期優遇を廃止\""
              },
              "actualYield": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "実利回り(%)。優待の申込単位ごとに(評価額 ÷ (株価×その単位の株数)) × 100 を計算し、達成可能な最良の値を採用する(必要な株数がminRequiredUnitsより多い単位が選ばれることがある)。長期保有条件付きの上位ランク・追加分(details[].longType='required'/'additional')はクロス(初回取得)では届かないため対象外。クロスの手数料・貸株料・逆日歩は一切含まない額面利回り"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lendingType": {
                "anyOf": [
                  {
                    "enum": [
                      "both",
                      "buying_only",
                      "none"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "制度信用区分。both=制度信用売り可 / buying_only=買いのみ可 / none=不可"
              },
              "benefitTypes": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nextKaraDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "次回の具体的な空クロス日(ISO文字列)"
              },
              "vestingDates": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "権利確定の月または月日パターン(年に依存しない繰り返しパターン)"
              },
              "requiredFunds": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "最小株数(minRequiredUnits)で優待を得るために必要な資金(円) = price × minRequiredUnits"
              },
              "nextVestingDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "次回の具体的な権利確定日(ISO文字列)"
              },
              "karaDateConcrete": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "minRequiredUnits": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "この優待を得るために必要な最小株数。申込単位が複数ある場合はその中の最小株数"
              },
              "negativeInterests": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "worst10",
                      "latest"
                    ],
                    "properties": {
                      "prev": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "date",
                              "holiday"
                            ],
                            "properties": {
                              "date": {
                                "type": "string",
                                "description": "ISO 8601文字列。JST深夜0時を指すため \"...T15:00:00.000Z\" は翌日のJST日付を表す"
                              },
                              "holiday": {
                                "type": "boolean"
                              },
                              "exceeded": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "貸株超過株数"
                              },
                              "lendingDays": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "逆日歩の対象日数(通常1、月またぎ等で複数)"
                              },
                              "loanBalance": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "balancePrice": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "逆日歩算出時の建値(株価) 円"
                              },
                              "lendingBalance": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "negativeInterestPerDiem": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "逆日歩(品貸料) 円/株の文字列。lendingDays日分の合計"
                              },
                              "highestNegativeInterestPerDiem": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "その日の最高逆日歩 円/株"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "前回権利付最終日の逆日歩(1件)"
                      },
                      "latest": {
                        "type": "array",
                        "items": {
                          "$ref": "#/properties/negativeInterests/anyOf/0/properties/prev/anyOf/0"
                        },
                        "description": "直近10日"
                      },
                      "worst10": {
                        "type": "array",
                        "items": {
                          "$ref": "#/properties/negativeInterests/anyOf/0/properties/prev/anyOf/0"
                        },
                        "description": "過去の逆日歩ワースト10(逆日歩/日 の降順)"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "sections に \"negativeInterests\" を指定し、この銘柄の逆日歩履歴データが存在するときだけ付く"
              },
              "remainingHistories": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "prev",
                      "latest"
                    ],
                    "properties": {
                      "prev": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "lendingType",
                            "date",
                            "holiday",
                            "status"
                          ],
                          "properties": {
                            "date": {
                              "type": "string"
                            },
                            "status": {
                              "type": "object",
                              "description": "証券会社別の一般信用在庫ステータス(生データ)",
                              "additionalProperties": {}
                            },
                            "holiday": {
                              "type": "boolean"
                            },
                            "lendingType": {
                              "enum": [
                                "both",
                                "buying_only",
                                "none"
                              ],
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "description": "前回権利付最終日の前3ヶ月"
                      },
                      "latest": {
                        "type": "array",
                        "items": {
                          "$ref": "#/properties/remainingHistories/anyOf/0/properties/prev/items"
                        },
                        "description": "直近1ヶ月"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "sections に \"remainingHistories\" を指定し、この銘柄の一般信用在庫推移データが存在するときだけ付く"
              },
              "normalLendingStatus": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "sbi",
                      "gmo",
                      "rakuten",
                      "kabucom",
                      "smbc"
                    ],
                    "properties": {
                      "gmo": {
                        "type": "object",
                        "required": [
                          "enableShort",
                          "enableUnlimited",
                          "status"
                        ],
                        "properties": {
                          "limit": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "在庫の上限株数(取得できた場合)"
                          },
                          "status": {
                            "enum": [
                              "none",
                              "remaining",
                              "few"
                            ],
                            "type": "string",
                            "description": "在庫ランク。sbiと同様"
                          },
                          "enableShort": {
                            "type": "boolean",
                            "description": "一般信用「短期」の売り建てが可能か"
                          },
                          "enableUnlimited": {
                            "type": "boolean",
                            "description": "一般信用「無期限/長期」の売り建てが可能か"
                          }
                        },
                        "additionalProperties": false
                      },
                      "sbi": {
                        "type": "object",
                        "required": [
                          "enableShort",
                          "enableUnlimited",
                          "status"
                        ],
                        "properties": {
                          "status": {
                            "enum": [
                              "none",
                              "remaining",
                              "few"
                            ],
                            "type": "string",
                            "description": "在庫ランク。none=在庫なし / few=△ / remaining=◎"
                          },
                          "enableShort": {
                            "type": "boolean",
                            "description": "一般信用「短期」の売り建てが可能か"
                          },
                          "enableUnlimited": {
                            "type": "boolean",
                            "description": "一般信用「無期限/長期」の売り建てが可能か"
                          }
                        },
                        "additionalProperties": false
                      },
                      "smbc": {
                        "type": "object",
                        "required": [
                          "enableShort",
                          "enableUnlimited",
                          "status"
                        ],
                        "properties": {
                          "status": {
                            "type": "number",
                            "description": "在庫株数"
                          },
                          "enableShort": {
                            "type": "boolean",
                            "description": "一般信用「短期」の売り建てが可能か"
                          },
                          "enableUnlimited": {
                            "type": "boolean",
                            "description": "一般信用「無期限/長期」の売り建てが可能か"
                          }
                        },
                        "additionalProperties": false
                      },
                      "kabucom": {
                        "type": "object",
                        "required": [
                          "enableShort",
                          "enableUnlimited",
                          "status"
                        ],
                        "properties": {
                          "status": {
                            "type": "number",
                            "description": "在庫株数"
                          },
                          "premium": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "プレミアム料率(文字列)"
                          },
                          "enableShort": {
                            "type": "boolean",
                            "description": "一般信用「短期」の売り建てが可能か"
                          },
                          "enableUnlimited": {
                            "type": "boolean",
                            "description": "一般信用「無期限/長期」の売り建てが可能か"
                          }
                        },
                        "additionalProperties": false
                      },
                      "rakuten": {
                        "type": "object",
                        "required": [
                          "enableShort",
                          "enableUnlimited",
                          "status"
                        ],
                        "properties": {
                          "status": {
                            "type": "number",
                            "description": "在庫株数"
                          },
                          "enableShort": {
                            "type": "boolean",
                            "description": "一般信用「短期」の売り建てが可能か"
                          },
                          "enableUnlimited": {
                            "type": "boolean",
                            "description": "一般信用「無期限/長期」の売り建てが可能か"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "証券会社別の一般信用在庫の現在ステータス"
              },
              "prevLendingInterest": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "前回の逆日歩率。直近1回(前回の権利付き最終日)の実績のみで、複数回の平均ではない。逆日歩額を1日あたり・株価に対する比率に換算した値(0.01=1日あたり1%)で、制度信用クロスのコスト目安に使う。過去複数回分の履歴は sections:[\"negativeInterests\"] を参照"
              },
              "systemLendingStatus": {
                "anyOf": [
                  {
                    "enum": [
                      "none",
                      "warn",
                      "prohibited"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "制度信用の規制状態。none=規制なし / warn=注意喚起 / prohibited=売禁。lendingTypeとは別軸で日々変動する"
              },
              "vestingDateConcrete": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "次回権利確定日(ISO文字列)"
              },
              "marginRateMultiplier": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "増担保金徴収措置による最高料率倍率(通常の委託保証金率に対する倍率。例: 10=10倍)。systemLendingStatusとは別の措置で、売禁・注意喚起と同時に付くことも単独で付くこともある。措置無しはundefined"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "estimate_cross_fee",
          "description": "株主優待クロス取引(現物買い+信用売りを同時に建てて優待だけ受け取る手法)の手数料を試算する。\n\n【対象範囲】\n・同一証券会社内で「買い」と「売り」の両方を建てるケースのみを計算する。証券会社をまたいだ\n  組み合わせ(例: 楽天で買ってカブコムで売る)は計算しない。\n・buyMethod: 'spot'=現物買い(sbi/gmo/rakuten/kabucom) / 'system_margin_then_receipt'=制度信用買い+現引き(smbcのみ)\n・sellMethod: 'general_short'=一般信用(短期) / 'general_long'=一般信用(無期限・長期) / 'system'=制度信用\n  ユーザーへの回答時はこれらの値をそのまま出さず、日本語(現物買い、制度信用買い+現引き、短期一般信用、\n  無期限一般信用、制度信用)に訳して説明すること。\n\n【sellMethod=systemの行について】\n逆日歩(金額が事前に確定しない追加費用)が別途発生しうる。total はあくまで「逆日歩が0だった場合の金額」\nであり、確定額ではないことを必ず説明すること。前回の逆日歩率が分かる場合は note に参考値として付くが、\n将来の逆日歩を予測するものではない。\n\n【note フィールドについて】\n一般信用の売り建てが現在できない・残数が無い証券会社も除外せず参考値として計算し、その旨を note に\n記載する。note が無い行は現時点で実際にクロス可能。\n\n【日付フィールドについて】\nvestingDate=権利確定日(基準日)、lastDayWithRights=権利付最終日、exRightsDate=権利落ち日。\nユーザーが「いつまでに買えばいいか」を知りたいときは lastDayWithRights を案内すること\n(vestingDate は権利が確定する日そのものであり、買い付けの締切ではない)。\n\n【assumptions フィールドについて】\n実際に使用した証券会社プラン設定(ゼロ革命の有無、楽天のコース、カブコムの大口優遇ランク等)を毎回\nそのまま返す。呼び出し側のAIは回答時に必ずこの内容(特にユーザーによって異なりうる設定)を明示し、\n実際の契約プランと違う場合は指定し直せることを案内すること。\n例:「楽天は\"ゼロコース\"、カブコムは大口優遇なしを前提に計算しています。異なるプランをご利用でしたら教えてください」",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "銘柄コード。例: \"7476\""
              },
              "date": {
                "type": "string",
                "description": "約定日 (YYYY-MM-DD)。省略時は「今注文したとき」の約定日を自動算出する(JST 15:30より前なら当日、以降なら翌営業日。土日祝ならさらに翌営業日まで繰り上げる)"
              },
              "price": {
                "type": "number",
                "description": "実勢株価を上書きする場合に指定。省略時は取得済みの概算株価を使う"
              },
              "units": {
                "type": "number",
                "description": "クロスする株数。省略時は minRequiredUnits(優待に必要な最小株数)を使う"
              },
              "gmoVip": {
                "type": "boolean",
                "description": "GMO VIPプラン。既定false"
              },
              "sbiVip": {
                "type": "boolean",
                "description": "SBI大口優遇(建玉5億円以上)。既定false"
              },
              "kabucomSor": {
                "type": "boolean",
                "description": "カブコムSOR(スマート・オーダー・ルーティング)。既定false"
              },
              "rakutenVip": {
                "type": "boolean",
                "description": "楽天大口優遇。既定false"
              },
              "rakutenCourse": {
                "enum": [
                  "zero",
                  "chowari"
                ],
                "type": "string",
                "description": "楽天のコース。既定\"zero\"(ゼロコース)"
              },
              "kabucomLargeLot": {
                "enum": [
                  "crown",
                  "diamond",
                  "sapphire",
                  "platinum",
                  "gold",
                  "silver",
                  "none"
                ],
                "type": "string",
                "description": "カブコム大口優遇ランク。既定\"none\""
              },
              "sbiZeroRevolution": {
                "type": "boolean",
                "description": "SBIゼロ革命(電子交付設定)。既定true"
              },
              "rakutenPreferentialRate": {
                "type": "boolean",
                "description": "楽天優遇金利適用。既定false"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "price": {
                "type": "number",
                "description": "計算に使った株価(円)。入力のpriceを省略した場合は取得済みの概算株価(現在の正確な株価ではない)を使う"
              },
              "message": {
                "type": "string",
                "description": "計算できなかった場合の理由。このときcode以外の他フィールドは付かない"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "broker",
                    "buyMethod",
                    "sellMethod",
                    "buyCommission",
                    "buyInterest",
                    "sellCommission",
                    "sellInterest",
                    "lendingInterest",
                    "managementFee",
                    "premiumFee",
                    "total"
                  ],
                  "properties": {
                    "note": {
                      "type": "string",
                      "description": "参考値である旨の注記(一般信用の取扱なし/残数なし/制度信用の逆日歩リスク等)。無ければ現時点で実際にクロス可能"
                    },
                    "total": {
                      "type": "number",
                      "description": "この行(証券会社×売り方式)の合計コスト(円)"
                    },
                    "broker": {
                      "enum": [
                        "sbi",
                        "gmo",
                        "rakuten",
                        "kabucom",
                        "smbc"
                      ],
                      "type": "string"
                    },
                    "buyMethod": {
                      "enum": [
                        "spot",
                        "system_margin_then_receipt"
                      ],
                      "type": "string",
                      "description": "spot=現物買い(sbi/gmo/rakuten/kabucom) / system_margin_then_receipt=制度信用買い+現引き(smbcのみ)"
                    },
                    "premiumFee": {
                      "type": "number",
                      "description": "プレミアム料(円)。カブコムの一般信用(無期限)のみ非ゼロ"
                    },
                    "sellMethod": {
                      "enum": [
                        "general_short",
                        "general_long",
                        "system"
                      ],
                      "type": "string",
                      "description": "general_short=一般信用「短期」 / general_long=一般信用「無期限・長期」 / system=制度信用"
                    },
                    "buyInterest": {
                      "type": "number",
                      "description": "買い建て分の信用金利(円)。現物買いの証券会社は常に0"
                    },
                    "sellInterest": {
                      "type": "number",
                      "description": "売り建て分の信用金利/貸株料(円)"
                    },
                    "buyCommission": {
                      "type": "number",
                      "description": "買い注文の取引手数料(円)"
                    },
                    "managementFee": {
                      "type": "number",
                      "description": "信用売り建玉の事務管理費(名義書き換え料)(円)"
                    },
                    "sellCommission": {
                      "type": "number",
                      "description": "売り注文の取引手数料(円)"
                    },
                    "lendingInterest": {
                      "type": "number",
                      "description": "buyInterest + sellInterest"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "証券会社×売り方式ごとの手数料内訳。totalの昇順"
              },
              "crossUnit": {
                "type": "number",
                "description": "クロスする株数"
              },
              "tradeDate": {
                "type": "string",
                "description": "約定日 (YYYY-MM-DD)"
              },
              "totalPrice": {
                "type": "number",
                "description": "price × crossUnit"
              },
              "assumptions": {
                "type": "object",
                "required": [
                  "sbiVip",
                  "sbiZeroRevolution",
                  "gmoVip",
                  "rakutenCourse",
                  "rakutenVip",
                  "rakutenPreferentialRate",
                  "kabucomSor",
                  "kabucomLargeLot"
                ],
                "properties": {
                  "gmoVip": {
                    "type": "boolean",
                    "description": "GMO VIPプランの前提"
                  },
                  "sbiVip": {
                    "type": "boolean",
                    "description": "SBI大口優遇の前提"
                  },
                  "kabucomSor": {
                    "type": "boolean",
                    "description": "カブコムSORの前提"
                  },
                  "rakutenVip": {
                    "type": "boolean",
                    "description": "楽天大口優遇の前提"
                  },
                  "rakutenCourse": {
                    "enum": [
                      "zero",
                      "chowari"
                    ],
                    "type": "string",
                    "description": "楽天のコースの前提"
                  },
                  "kabucomLargeLot": {
                    "enum": [
                      "crown",
                      "diamond",
                      "sapphire",
                      "platinum",
                      "gold",
                      "silver",
                      "none"
                    ],
                    "type": "string",
                    "description": "カブコム大口優遇ランクの前提"
                  },
                  "sbiZeroRevolution": {
                    "type": "boolean",
                    "description": "SBIゼロ革命(電子交付設定)の前提"
                  },
                  "rakutenPreferentialRate": {
                    "type": "boolean",
                    "description": "楽天優遇金利適用の前提"
                  }
                },
                "description": "実際に使用した証券会社プラン設定",
                "additionalProperties": false
              },
              "vestingDate": {
                "type": "string",
                "description": "権利確定日(基準日)"
              },
              "exRightsDate": {
                "type": "string",
                "description": "権利落ち日。クロスの決済(現渡し等)を入れる日"
              },
              "interestDays": {
                "type": "number",
                "description": "信用金利/貸株料の対象日数"
              },
              "lastDayWithRights": {
                "type": "string",
                "description": "権利付最終日。買い付けの締切はこちら(vestingDateではない)"
              },
              "managementFeeMonths": {
                "type": "number",
                "description": "事務管理費がかかる月数"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "calc_dates",
          "description": "権利日を入力すると、クロス取引に必要な各種日付・日数を計算して返す。\n\n【入力 vestingDate】\n・\"2026-09-30\" のような具体的な日付(その年で固定)\n・\"9月末\" / \"09\" / \"9\"（月のみ）→ その月末で、次に到来する回\n・\"9月20日\" / \"09-20\" / \"9/20\" / \"0920\" → その日で、次に到来する回\n\n【tradeDate】省略時は「今注文したとき」の約定日(JST 15:30より前なら当日、以降なら翌営業日、\n土日祝はさらに繰り上げ)。「今から」系の日数(interestDays 等)はこの日を起点にする。\n\n【返す主なフィールド】\n・vestingDate: 権利確定日(基準日)  ・lastDayWithRights: 権利付最終日  ・exRightsDate: 権利落ち日\n・interestDays: 今建てた場合の信用金利/貸株料の対象日数(決済が間に合わなければ -1)\n・negativeInterestDays: 逆日歩の対象日数(権利付最終日が金曜だと土日を挟んで増える)\n・managementFeeMonths: 信用売り建玉の事務管理費がかかる月数\n・crossable: 今から建てて権利落ち日までに決済が間に合うか\n・shortSellingLiberation: 一般信用「短期」つなぎ売りの解禁スケジュール。\n  - sbiGmo: SBI・GMOは同一ルール(営業日ベース、「権利落ち日を含めて15営業日前」)。\n    liberationDate=売建可能日、orderAcceptedFrom=その前営業日(19:00頃から新規売り注文を受付、翌営業日に先着約定)。\n  - rakuten: 実効権利確定日の13暦日前を求め、休場日なら翌営業日に調整して最早売建日を計算。orderAcceptedFrom=その前営業日(19時頃から受付)。実際の取扱・在庫・個別期日は別途確認。\n  - auカブコム・SMBC日興は短期一般信用の取扱いが無いため対象外(詳細は note 参照)。\n・prevYear: 前年の同一権利の基準日(get_benefit の negativeInterests / remainingHistories の prev データと突き合わせるのに使う)\n・businessDaysUntilLastDayWithRights / calendarDaysUntilLastDayWithRights: 権利付最終日までの残り\n\n日付は \"YYYY-MM-DD\" 形式の文字列で返す。",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "vestingDate"
            ],
            "properties": {
              "tradeDate": {
                "type": "string",
                "description": "約定日 (YYYY-MM-DD)。省略時は「今」から自動算出"
              },
              "vestingDate": {
                "type": "string",
                "description": "権利日。例: \"9月末\" / \"9月20日\" / \"2026-09-30\""
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "input",
              "tradeDate",
              "vestingDate",
              "lastDayWithRights",
              "exRightsDate",
              "deliveredDate",
              "businessDaysUntilLastDayWithRights",
              "calendarDaysUntilLastDayWithRights",
              "interestDays",
              "negativeInterestDays",
              "managementFeeMonths",
              "crossable",
              "canWeekendOrder",
              "shortSellingLiberation",
              "prevYear"
            ],
            "properties": {
              "input": {
                "type": "string",
                "description": "入力された権利日指定(正規化前の生テキスト)"
              },
              "prevYear": {
                "type": "object",
                "required": [
                  "vestingDate",
                  "lastDayWithRights"
                ],
                "properties": {
                  "vestingDate": {
                    "type": "string"
                  },
                  "lastDayWithRights": {
                    "type": "string"
                  }
                },
                "description": "前年の同一権利。get_benefit の negativeInterests/remainingHistories の prev データの基準日と突き合わせるのに使う",
                "additionalProperties": false
              },
              "crossable": {
                "type": "boolean",
                "description": "interestDays !== -1。今から建てて権利落ち日までに決済が間に合うか"
              },
              "tradeDate": {
                "type": "string",
                "description": "起点にした約定日"
              },
              "vestingDate": {
                "type": "string",
                "description": "権利確定日(基準日)"
              },
              "exRightsDate": {
                "type": "string",
                "description": "権利落ち日。クロスの決済(現渡し等)を入れる日"
              },
              "interestDays": {
                "type": "number",
                "description": "今建てた場合の信用金利/貸株料の対象日数。決済が間に合わなければ-1"
              },
              "deliveredDate": {
                "type": "string",
                "description": "tradeDateの現物/信用建て分の受渡日"
              },
              "canWeekendOrder": {
                "type": "boolean",
                "description": "今(tradeDate起点)から土日をまたぐ注文ができるか"
              },
              "lastDayWithRights": {
                "type": "string",
                "description": "権利付最終日。この日までに現物を約定していれば権利が取れる"
              },
              "managementFeeMonths": {
                "type": "number",
                "description": "信用売り建玉の事務管理費がかかる月数(今から権利まで)"
              },
              "negativeInterestDays": {
                "type": "number",
                "description": "逆日歩(品貸料)の対象日数。権利付最終日が金曜だと土日を挟んで増える"
              },
              "shortSellingLiberation": {
                "type": "object",
                "required": [
                  "sbiGmo",
                  "rakuten",
                  "note"
                ],
                "properties": {
                  "note": {
                    "type": "string",
                    "description": "auカブコム・SMBC日興は短期一般信用の取扱いが無いため対象外、等の補足"
                  },
                  "sbiGmo": {
                    "type": "object",
                    "required": [
                      "liberationDate",
                      "orderAcceptedFrom"
                    ],
                    "properties": {
                      "liberationDate": {
                        "type": "string",
                        "description": "売建可能日(この日ザラ場から在庫が出る)"
                      },
                      "orderAcceptedFrom": {
                        "type": "string",
                        "description": "その前営業日。19:00頃から新規売り注文を受付(翌営業日に先着約定)"
                      }
                    },
                    "description": "SBI・GMOは同一ルール(営業日ベース、「権利落ち日を含めて15営業日前」)",
                    "additionalProperties": false
                  },
                  "rakuten": {
                    "type": "object",
                    "required": [
                      "orderAcceptedFrom"
                    ],
                    "properties": {
                      "orderAcceptedFrom": {
                        "type": "string",
                        "description": "ルール上の最早売建日の前営業日。19時頃の受付目安、取扱・在庫は別途確認"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "description": "一般信用「短期」つなぎ売りの解禁スケジュール",
                "additionalProperties": false
              },
              "businessDaysUntilLastDayWithRights": {
                "type": "number",
                "description": "tradeDateから権利付最終日までの営業日数(tradeDate自身は除く)"
              },
              "calendarDaysUntilLastDayWithRights": {
                "type": "number",
                "description": "tradeDateから権利付最終日までの暦日数"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "calc_max_gyakuhibu",
          "description": "貸借値段と適用条件から最高逆日歩（上限額）を計算する。株式等とETF等は別表を使用する。株価だけを入力した場合は株式・100株単位・権利付き最終日・規制なし・1日分として計算する。通常時の日額が必要な場合はrightsPeriod=\"none\"を指定する。フラグは計算対象日に倍率が適用される状態を指定する。貸借値段の代わりに市場株価を入力した場合は試算。返す金額は1株（ETF等は1口）あたり。実際に発生する逆日歩の予測値ではない。",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "price"
            ],
            "properties": {
              "price": {
                "type": "number",
                "description": "貸借値段（円）。市場株価を使う場合は試算",
                "exclusiveMinimum": 0
              },
              "rateTable": {
                "enum": [
                  "stock",
                  "etf"
                ],
                "type": "string",
                "description": "stock:株式等（REIT等を含む）、etf:ETF等。省略時stock"
              },
              "isRegulated": {
                "type": "boolean",
                "description": "注意喚起・申込制限・申込停止のいずれかの倍率適用期間中。省略時false"
              },
              "lendingDays": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "品貸日数。省略時1。calc_datesのnegativeInterestDaysを指定できる",
                "exclusiveMinimum": 0
              },
              "tradingUnit": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "取引所の売買単位。注文株数とは別。stockは省略時100、etfは指定必須",
                "exclusiveMinimum": 0
              },
              "rightsPeriod": {
                "enum": [
                  "none",
                  "beforeExRights",
                  "lastCumRights"
                ],
                "type": "string",
                "description": "none:権利日による倍率なし、beforeExRights:権利落日6〜2営業日前、lastCumRights:権利落日の前営業日。省略時lastCumRights（4倍）"
              },
              "temporaryMultiplier": {
                "enum": [
                  4,
                  10
                ],
                "type": "number",
                "description": "臨時措置で指定された通常時基準に対する倍率。指定可能な値は4または10。他の倍率とは掛け合わせない"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "baseDailyYenPerShare",
              "multiplier",
              "dailyYenPerShare",
              "totalYenPerShare"
            ],
            "properties": {
              "multiplier": {
                "type": "number",
                "description": "適用倍率"
              },
              "dailyYenPerShare": {
                "type": "number",
                "description": "適用後の最高料率（円／株／日。ETF等は円／口／日）"
              },
              "totalYenPerShare": {
                "type": "number",
                "description": "品貸日数分の最高料率（円／株。ETF等は円／口）"
              },
              "baseDailyYenPerShare": {
                "type": "number",
                "description": "通常時の最高料率（倍率適用前、円／株／日。ETF等は円／口／日）"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "predict_gyakuhibu",
          "description": "次回の優待権利付き最終日の逆日歩を1株あたりで予測する。予想売り超過株数の省略時は前回権利日の超過株数を使う。品貸日数分の合計と1日換算額を円/株で返す。",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "pattern": "^[0-9A-Z]{4}$",
                "description": "銘柄コード"
              },
              "isRegulated": {
                "type": "boolean",
                "description": "注意喚起・申込制限・申込停止の倍率適用期間中。省略時false"
              },
              "shortageShares": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "次回権利付き最終日の銘柄全体の日証金予想売り超過株数。省略時は前回の優待権利付き最終日の超過株数"
              },
              "temporaryMultiplier": {
                "enum": [
                  4,
                  10
                ],
                "type": "number",
                "description": "臨時措置の倍率。最高逆日歩計算機と同様、他の倍率とは掛け合わせない"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "code",
              "status"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "inputs": {
                "type": "object",
                "additionalProperties": {}
              },
              "status": {
                "enum": [
                  "predicted",
                  "unavailable"
                ],
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "prediction": {
                "type": "object",
                "required": [
                  "totalYenPerShare",
                  "dailyYenPerShare",
                  "maxTotalYenPerShare",
                  "maxDailyYenPerShare",
                  "dividendReferenceTotalYenPerShare",
                  "state"
                ],
                "properties": {
                  "state": {
                    "enum": [
                      "no_shortage",
                      "unavailable",
                      "tiny",
                      "middle",
                      "large"
                    ],
                    "type": "string"
                  },
                  "dailyYenPerShare": {
                    "type": "number"
                  },
                  "totalYenPerShare": {
                    "type": "number"
                  },
                  "maxDailyYenPerShare": {
                    "type": "number"
                  },
                  "maxTotalYenPerShare": {
                    "type": "number"
                  },
                  "dividendReferenceTotalYenPerShare": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "lendingDays": {
                "type": "number"
              },
              "vestingDate": {
                "type": "string"
              },
              "lastDayWithRights": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "yutai-mcp は日本株の株主優待クロス取引を支援するツール群です。\n\n- search_benefits: 優待の一覧検索。keyword で優待内容(「コストコ」「株主優待券」等)も検索でき、\n  権利確定月(vestingDate) / 空クロス日(karaDate) / 優待種別(benefitTypes) / 優待評価額 /\n  必要資金 / 実質利回り / 難易度(rarity) / 信用取引区分(lendingType) /\n  制度信用の規制(sellProhibited=売禁, sellCaution=注意喚起, sellRestricted=いずれか) /\n  増担保の最高料率倍率(minMarginRateMultiplier/maxMarginRateMultiplier) / 前回逆日歩 /\n  一般信用売りの可否・残数(証券会社別) などで絞り込む。sortBy で並べ替え:\n  actualYield=額面利回り(手数料考慮なし)、netYield=手取り利回り(優待評価額−今実際にできる最安の\n  一般信用クロスコスト。証券会社プラン・約定日は引数で指定可)、requiredFunds=必要資金、\n  minValue=評価額、prevLendingInterest=前回逆日歩、nextVestingDate=権利確定日、update=更新日。\n  「○月のおすすめ優待」「手取り利回りトップN」「予算内で取れる優待」「今クロスできる銘柄」等はこれで答える。\n- get_benefit: 個別優待を1件取得。sections で basic(基本情報)/ negativeInterests(逆日歩履歴)/\n  remainingHistories(一般信用在庫推移)を選ぶ。既定は basic のみ。\n- estimate_cross_fee: 1銘柄について証券会社×売り方(一般信用 短期/無期限・制度信用)別のクロス手数料を\n  内訳付きで試算。「今 ○○ をクロスしたらいくら?」に答える。\n- predict_gyakuhibu: 次回優待権利付き最終日の逆日歩を1株あたりの円額で推定する。\n  codeを指定。予想売り超過株数shortageSharesは省略でき、省略時は前回権利日の超過株数を使う。日付と品貸日数は自動計算する。\n  品貸日数分の合計と1日換算の円/株を返す。\n- calc_max_gyakuhibu: 貸借値段と条件から最高逆日歩（上限額）を計算。株式等とETF等の別表に対応。\n  price以外を省略すると、株式・100株単位・権利付き最終日・規制なし・1日分。通常時はrightsPeriod=\"none\"を指定。\n  isRegulatedで注意喚起・申込制限・申込停止の倍率適用中を、temporaryMultiplierで臨時措置の倍率（4または10）を指定する。\n- calc_dates: 権利付最終日・権利落ち日・一般信用「短期」の注文解禁日など日付計算。"
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}