Skip to main content
Glama

recommend_temples

Find Kyoto temples matching your travel preferences by entering natural language queries about your profile, interests, and requirements.

Instructions

自然言語のクエリに基づいて京都の寺院をスコア付きで推薦する。旅行者のプロファイル・希望・条件を自由に入力できる。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes旅行者のプロファイルや希望(例:「40代夫婦・歴史好き・混雑嫌い・半日」「一人旅・禅・静かな場所」「子供連れ・無料・世界遺産」)
limitNo返す件数(デフォルト5件)

Implementation Reference

  • The registration and handler implementation for the recommend_temples MCP tool. It uses a scoring function to rank temples based on a natural language query.
    server.tool(
      "recommend_temples",
      "自然言語のクエリに基づいて京都の寺院をスコア付きで推薦する。旅行者のプロファイル・希望・条件を自由に入力できる。",
      {
        query: z.string().describe(
          "旅行者のプロファイルや希望(例:「40代夫婦・歴史好き・混雑嫌い・半日」「一人旅・禅・静かな場所」「子供連れ・無料・世界遺産」)"
        ),
        limit: z.number().optional().default(5).describe("返す件数(デフォルト5件)"),
      },
      async ({ query, limit = 5 }) => {
        // 各寺院をスコアリング
        const scored = temples.map((temple) => {
          const { score, reasons } = scoreTemple(temple, query);
          const templeTopics = topics
            .filter((t) => t.temple === temple.id)
            .map((t) => t.topic)
            .slice(0, 3);
    
          return {
            name: temple.name,
            slug: temple.id,
            score,
            reason: buildReason(temple, reasons, query),
            tags: temple.tags.slice(0, 5),
            crowd_level: temple.crowd_level,
            price: temple.price,
            time_required: temple.time_required,
            highlights: temple.highlights,
            topics: templeTopics,
            url: temple.url,
          };
        });
    
        // スコア降順でソート
        scored.sort((a, b) => b.score - a.score);
        const results = scored.slice(0, limit);
    
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(
                {
                  query,
                  total_results: results.length,
                  results,
                },
                null,
                2
              ),
            },
          ],
        };
      }
    );
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses key behavioral trait (returned temples are scored/ranked) and natural language input capability beyond what annotations provide. No annotations exist to cover read-only status; description could clarify safety/permissions but 'recommend' implies read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly constructed sentences: first establishes purpose and method, second clarifies input flexibility. No redundancy or wasted words. Perfectly front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Appropriate for a 2-parameter tool with simple structure. Mentions scoring which hints at output format despite lacking output schema. Could explicitly mention return structure (list of temple objects with scores) for perfect completeness but adequate as-is.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with detailed examples in the query parameter. Description reinforces the free-form nature of input but adds minimal semantic detail beyond the schema's comprehensive examples. Baseline 3 appropriate for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Excellent specificity: states the tool recommends (スコア付きで推薦) Kyoto temples based on natural language queries. Distinguishes from sibling get_temple_detail by emphasizing recommendation/scoring behavior versus detail retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage by describing flexible input options (traveler profiles, conditions) but lacks explicit guidance on when to use this versus get_temple_detail (e.g., 'use this for personalized recommendations, use get_temple_detail for specific temple facts').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YOGi-Seto/akebono-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server