Skip to main content
Glama
isnow890

Naver Search MCP Server

datalab_search

Analyze search keyword trends on Naver by specifying date ranges, keyword groups, and time units to identify patterns in user search behavior.

Instructions

Perform a trend analysis on Naver search keywords. (네이버 검색어 트렌드 분석)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endDateYesEnd date (yyyy-mm-dd)
keywordGroupsYesKeyword groups
startDateYesStart date (yyyy-mm-dd)
timeUnitYesTime unit

Implementation Reference

  • Core handler function that executes the datalab_search tool logic by calling the NaverSearchClient's searchTrend method.
    export async function handleSearchTrend(params: DatalabSearch) {
      return client.searchTrend(params);
    }
  • Zod schema (DatalabSearchSchema) defining input parameters for datalab_search: startDate, endDate, timeUnit, and keywordGroups.
    export const DatalabSearchSchema = DatalabBaseSchema.extend({
      keywordGroups: z
        .array(
          z.object({
            groupName: z.string().describe("Group name"),
            keywords: z.array(z.string()).describe("List of keywords"),
          })
        )
        .describe("Keyword groups"),
    });
  • src/index.ts:268-281 (registration)
    MCP tool registration for 'datalab_search', linking schema and handler.
    server.registerTool(
      "datalab_search",
      {
        description:
          "📊 Analyze search keyword trends over time using Naver DataLab. Track popularity changes, seasonal patterns, and compare multiple keywords. Perfect for market research and trend analysis. For current trend analysis or 'recent trends', use get_current_korean_time to determine proper date ranges. (네이버 데이터랩 검색어 트렌드 분석, 현재 트렌드나 최근 동향 분석 시 get_current_korean_time으로 적절한 날짜 범위를 설정하세요)",
        inputSchema: DatalabSearchSchema.shape,
      },
      async (args) => {
        const result = await datalabToolHandlers.datalab_search(args);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
        };
      }
    );
  • Entry point in datalabToolHandlers map that logs args and delegates to handleSearchTrend.
    datalab_search: (args) => {
      console.error("datalab_search called with args:", JSON.stringify(args, null, 2));
      return handleSearchTrend(args);
    },
  • NaverSearchClient method implementing the actual API POST request to DataLab search trend endpoint.
    async searchTrend(params: DatalabSearchRequest): Promise<any> {
      return this.post(`${this.datalabBaseUrl}/search`, params);
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'trend analysis' but doesn't specify what the analysis entails (e.g., returns data points, charts, insights), whether it requires authentication, rate limits, or data freshness. For a tool with no annotations, this leaves significant gaps in understanding its behavior.

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

Conciseness4/5

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

The description is concise with two short phrases, front-loading the main purpose. The Korean translation adds clarity for Korean users without being redundant. However, it could be more structured by explicitly stating the tool's scope or output.

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

Completeness2/5

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

Given no annotations and no output schema, the description is incomplete for a tool with 4 parameters and complex input (keyword groups). It doesn't explain what the trend analysis returns (e.g., time-series data, visualizations) or behavioral aspects like permissions or limitations. For a data analysis tool, this leaves too much undefined.

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 description coverage is 100%, so the schema already documents all parameters (startDate, endDate, timeUnit, keywordGroups) with descriptions. The description adds no additional meaning beyond the schema, such as explaining how keyword groups are used in analysis or date format nuances. Baseline 3 is appropriate when schema does the heavy lifting.

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

Purpose4/5

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

The description clearly states the tool's purpose: 'Perform a trend analysis on Naver search keywords.' It specifies the verb ('perform trend analysis'), resource ('Naver search keywords'), and includes a Korean translation for clarity. However, it doesn't explicitly differentiate from sibling tools like 'search_blog' or 'search_news' which might also involve Naver search but for different content types.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. With many sibling tools (e.g., 'search_blog', 'search_news', 'datalab_shopping_by_age'), there is no indication of whether this is for general search trends versus specific domains or demographics. Usage is implied by the name 'datalab_search' but not explicitly stated.

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

Related 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/isnow890/naver-search-mcp'

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