get_temple_detail
Retrieve detailed information about specific Kyoto temples including historical significance, pricing, and crowd levels for personalized travel recommendations.
Instructions
特定の寺院の詳細情報とトピック一覧を取得する。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | 寺院のスラッグ(toji / enryakuji / chionin / nishihonganji / kenninji / kiyomizudera) |
Implementation Reference
- src/index.js:178-212 (handler)Implementation of the get_temple_detail tool handler.
server.tool( "get_temple_detail", "特定の寺院の詳細情報とトピック一覧を取得する。", { slug: z.string().describe( "寺院のスラッグ(toji / enryakuji / chionin / nishihonganji / kenninji / kiyomizudera)" ), }, async ({ slug }) => { const temple = temples.find((t) => t.id === slug); if (!temple) { return { content: [ { type: "text", text: JSON.stringify({ error: `寺院が見つかりません: ${slug}` }), }, ], }; } const templeTopics = topics .filter((t) => t.temple === slug) .map((t) => ({ id: t.id, topic: t.topic, hint: t.hint })); return { content: [ { type: "text", text: JSON.stringify({ ...temple, topics: templeTopics }, null, 2), }, ], }; } );