{
"name": "searchapi_youtube_comments",
"description": "YouTube Comments results from SearchApi, as structured JSON.",
"input_schema": {
"type": "object",
"properties": {
"video_id": {
"type": "string",
"description": "YouTube video identifier to load comments for."
},
"sort_by": {
"type": "string",
"description": "Order of the comments.",
"enum": [
"top",
"newest"
]
},
"next_page_token": {
"type": "string",
"description": "Opaque token from the previous response that fetches the next page."
}
},
"required": [
"video_id"
],
"examples": [
{
"video_id": "sample_youtube_comments_video_id"
}
]
}
}
この定義を自分のエージェントのツール配列に貼り付けてください。スキーマはこのエンジンのカタログ登録内容から生成され、設定した値はスキーマの examples に入ります。名前は MCP サーバーのものではなく私たちが決めたもので — あなたのエージェントが呼び出す名前です — どのエンジンも searchapi_ を接頭辞に持ちます。