11月4日の code execution with MCP 後、search_tools で tools[] 全量を避ける JSON は?

2026年11月7日時点:callMCPTool は tools/call。サンドボックスで要約。

2026年11月4日:MCP とコード実行。全量 tools[] の代わりに on-demand manifest と callMCPTool。

規模

定義の一括投入は context を圧迫。コードが MCP を編成。

search_tools

query と detail_level。フィルタ済み JSON。

ブリッジ

サンドボックス内 callMCPTool → tools/call。

フィルタ

大きな結果は runtime で要約。

ハーネス

tool_result は短く。threads では create で tools 固定。

検証

search_tools と要約 JSON の Schema。

FAQ

MCP 不要?

いいえ。

巨大 tools[]?

避ける。

message threads?

併用可。

Code Mode?

同趣旨。

サンドボックスなし?

本番非推奨。

detail_level?

既定 name_description。

まとめ

配線は MCP、モデルへは JSON を最小化。