この講義では、MCP と ChatGPT Apps におけるツール定義を
JSON Schema でどう書くかを解説します。
inputSchema の構造、なぜそれがモデルにとっての「プロンプト」の一部なのか、
description の書き方、
enum と制約(
minItems、
format)をいつ使うかを扱います。続いて、TypeScript で
Zod +
zod-to-json-schema を用いて「single source of truth」を構築し、
optional フィールドの課題を議論、さらに UX とセキュリティのための
_meta/annotations(例:
readOnlyHint、
destructiveHint、
openai/outputTemplate)の役割を示します。