Skip to main content
Glama

human_mouth_tool

Generate human speech by passing text input to a human actor. Utilizes the human-mcp server to enable AI assistants to produce audible responses.

Instructions

人間が口を使って指定された言葉を発話します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
utteranceYes

Implementation Reference

  • The handler function for the human_mouth_tool. It generates a unique task ID, formats the utterance, adds it to the database via db_utils, polls for completion using wait_for_task_completion, and returns the human response.
    @mcp.tool() async def human_mouth_tool(utterance: str, ctx: Context) -> Dict[str, str]: """人間が口を使って指定された言葉を発話します。""" task_id = str(uuid.uuid4()) formatted_utterance = f"👄 口を使って発話: {utterance}" # タスクをデータベースに追加 db_utils.add_task(task_id, formatted_utterance) # ログ出力 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 {"response": result}
  • JSON schema definition for the human_mouth_tool, specifying input (utterance: str) and output (response: str). Part of the HUMAN_TOOLS list.
    { "name": "human_mouth_tool", "description": "人間が口を使って指定された言葉を発話します。", "input_schema": { "type": "object", "properties": { "utterance": {"type": "string", "description": "発話する内容"} }, "required": ["utterance"] }, "output_schema": { "type": "object", "properties": { "response": {"type": "string", "description": "発話に対する応答"} }, "required": ["response"] } },

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/upamune/human-mcp'

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