Skip to main content
Glama
mo666-med

Enhanced Miyabi MCP Server

by mo666-med

miyabi__analyze_task_intent

Analyzes user prompts to classify tasks as development-related or general, enabling appropriate routing for processing.

Instructions

ユーザーのタスクを分析し、開発関連か一般タスクかを判定します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes分析するユーザーのプロンプト

Implementation Reference

  • The core handler function for the 'miyabi__analyze_task_intent' tool. It uses helper functions to classify the input prompt as development, article writing, or general task and returns a JSON-structured response.
    case "miyabi__analyze_task_intent": { const isDev = isDevelopmentTask(args.prompt); const isArticle = isArticleWritingTask(args.prompt); return { content: [{ type: "text", text: JSON.stringify({ isDevelopmentTask: isDev, isArticleWritingTask: isArticle, taskType: isArticle ? "article" : (isDev ? "development" : "general"), prompt: args.prompt }, null, 2) }] }; }
  • Input schema defining the expected parameters for the tool: a 'prompt' string.
    inputSchema: { type: "object", properties: { prompt: { type: "string", description: "分析するユーザーのプロンプト" } }, required: ["prompt"] }
  • src/handlers.js:47-60 (registration)
    Tool registration within the listToolsHandler function, defining name, description, and input schema.
    { name: "miyabi__analyze_task_intent", description: "ユーザーのタスクを分析し、開発関連か一般タスクかを判定します", inputSchema: { type: "object", properties: { prompt: { type: "string", description: "分析するユーザーのプロンプト" } }, required: ["prompt"] } },
  • Helper function to detect if the prompt is related to development tasks by checking for specific keywords.
    export function isDevelopmentTask(prompt) { const devKeywords = [ 'コード', 'プログラム', 'バグ', 'デバッグ', 'テスト', 'デプロイ', 'API', 'データベース', 'フロントエンド', 'バックエンド', 'リファクタリング', '実装', '開発', 'アプリ', 'ウェブサイト', 'システム', 'モジュール', 'code', 'program', 'bug', 'debug', 'test', 'deploy', 'api', 'database', 'frontend', 'backend', 'refactor', 'implement', 'develop', 'app', 'website', 'system', 'module' ]; const lowerPrompt = prompt.toLowerCase(); return devKeywords.some(keyword => lowerPrompt.includes(keyword.toLowerCase())); }
  • Helper function to detect if the prompt is related to article writing tasks by checking for specific keywords.
    export function isArticleWritingTask(prompt) { const articleKeywords = [ '記事', '論文', 'note', 'ブログ', '執筆', '書いて', '作成', 'article', 'paper', 'blog', 'write', 'create', 'post', '医療AI', '医療', 'AI', 'LLMO', 'サムネイル', 'ハッシュタグ' ]; const lowerPrompt = prompt.toLowerCase(); return articleKeywords.some(keyword => lowerPrompt.includes(keyword.toLowerCase())); }

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/mo666-med/enhanced-miyabi-mcp'

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