search_blog
Search Naver Blog posts by query, specify result count, sort by relevance or date, and define start position for precise results.
Instructions
Perform a search on Naver Blog. (네이버 블로그 검색)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| display | No | Number of results to display (default: 10) | |
| query | Yes | Search query | |
| sort | No | Sort method (sim: similarity, date: date) | |
| start | No | Start position of search results (default: 1) |
Implementation Reference
- src/handlers/search.handlers.ts:19-21 (handler)The main handler function for 'search_blog' tool. Logs the args and delegates to handleBlogSearch after schema validation.search_blog: (args) => { console.error("search_blog called with args:", JSON.stringify(args, null, 2)); return handleBlogSearch(SearchArgsSchema.parse(args));
- Helper function that performs the actual Naver blog search using the client./** * 블로그 검색 핸들러 */ export async function handleBlogSearch(params: SearchArgs) { return client.search("blog", params);
- src/schemas/search.schemas.ts:33-41 (schema)Zod schema for input validation of search tools, including search_blog.export const SearchArgsSchema = z.object({ query: z.string().describe("검색어"), display: z.number().optional().describe("한 번에 가져올 결과 수 (기본 10)"), start: z.number().optional().describe("검색 시작 위치 (기본 1)"), sort: z .enum(["sim", "date"]) .optional() .describe("정렬 방식 (sim: 유사도, date: 날짜순)"), });
- src/index.ts:132-145 (registration)MCP server registration of the 'search_blog' tool, including description and input schema reference.server.registerTool( "search_blog", { description: "✍️ Search personal blogs and reviews for authentic user experiences. Great for product reviews, personal stories, detailed tutorials, and real user opinions. Find genuine Korean perspectives. For recent posts or 'today's content', use get_current_korean_time first. (네이버 블로그 검색 - 실제 사용자 후기와 개인적 경험, 최근 글이나 오늘 내용을 찾을 때는 먼저 get_current_korean_time으로 현재 시간을 확인하세요)", inputSchema: SearchArgsSchema.shape, }, async (args) => { const result = await searchToolHandlers.search_blog(args); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; } );