Skip to main content
Glama

chronica_create_thread

Create a new thread in Chronica's persistent memory system to organize conversations and projects across sessions with time-aware context.

Instructions

新しいスレッドを作成します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thread_nameYesスレッド名
thread_typeNoスレッドタイプ

Implementation Reference

  • The handler implementation for 'chronica_create_thread' within the 'call_tool' function.
    elif name == "chronica_create_thread":
        thread_name = arguments.get("thread_name")
        thread_type = arguments.get("thread_type", "normal")
        
        if not thread_name:
            return [types.TextContent(
                type="text",
                text=json.dumps({"error": "validation_error", "message": "thread_name is required"}, ensure_ascii=False)
            )]
        
        if thread_type not in ["normal", "project"]:
            thread_type = "normal"
        
        thread_id = store.create_thread(thread_name, thread_type)
        return [types.TextContent(
            type="text",
            text=json.dumps({"thread_id": thread_id, "thread_name": thread_name, "thread_type": thread_type}, ensure_ascii=False)
        )]
  • The tool registration and schema definition for 'chronica_create_thread'.
    types.Tool(
        name="chronica_create_thread",
        description="新しいスレッドを作成します。",
        inputSchema={
            "type": "object",
            "properties": {
                "thread_name": {
                    "type": "string",
                    "description": "スレッド名"
                },
                "thread_type": {
                    "type": "string",
                    "enum": ["normal", "project"],
                    "description": "スレッドタイプ"
                }
            },
            "required": ["thread_name"]
        }
    ),

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/Nic9dev/Chronica'

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