human_nose_tool
Detect odors, assess scents, and verify freshness using human nose capabilities. Ideal for food safety checks, gas leak detection, and fragrance evaluation.
Instructions
人間が鼻を使って匂いを確認します。
例:
- 食べ物の新鮮さの確認
- ガス漏れなどの危険な匂いの検知
- 香りの評価
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instruction | Yes |
Implementation Reference
- human_mcp/mcp_server.py:149-173 (handler)The handler function for the 'human_nose_tool'. It generates a unique task ID, formats the instruction with an emoji, stores the task in the database using db_utils.add_task, polls for completion using wait_for_task_completion, and returns the result as {"smell": result}. The @mcp.tool() decorator registers it with MCP.@mcp.tool() async def human_nose_tool(instruction: str, ctx: Context) -> Dict[str, str]: """人間が鼻を使って匂いを確認します。 例: - 食べ物の新鮮さの確認 - ガス漏れなどの危険な匂いの検知 - 香りの評価 """ task_id = str(uuid.uuid4()) formatted_instruction = f"👃 鼻を使って嗅覚確認: {instruction}" # タスクをデータベースに追加 db_utils.add_task(task_id, formatted_instruction) # ログ出力 sys.stderr.write(f"Human task created: {task_id}. Waiting for completion...\n") # 結果を待機(非同期ポーリング) result = await wait_for_task_completion(task_id) # ログ出力 sys.stderr.write(f"Human task {task_id} completed.\n") return {"smell": result}