From 34e00404e9561dcaf8d2d99df7470757a4fee915 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Wed, 1 Jul 2026 00:17:40 +0900 Subject: tool description最適化 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mcp/tools/write_message.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/mcp/tools/write_message.c') diff --git a/src/mcp/tools/write_message.c b/src/mcp/tools/write_message.c index c4b18cc..7df0058 100644 --- a/src/mcp/tools/write_message.c +++ b/src/mcp/tools/write_message.c @@ -211,13 +211,21 @@ bool tiny_mcp_register_write_message(mcpc_server_t *server) { mcpc_tool_t *tool - = tiny_mcp_tool_new("write_message", "Append a conversation message", call_write_message); - return tool && tiny_mcp_tool_add_property(tool, "session_id", "Session ID", MCPC_U8STR, true) - && tiny_mcp_tool_add_property(tool, "role", "user, assistant, or system", MCPC_U8STR, true) - && tiny_mcp_tool_add_property(tool, "content", "Message text", MCPC_U8STR, true) + = tiny_mcp_tool_new("write_message", + "Append and durably persist a conversation message. Use it to store " + "information that should remain available after server restarts.", + call_write_message); + return tool + && tiny_mcp_tool_add_property( + tool, "session_id", "Conversation session that owns the message.", MCPC_U8STR, true) + && tiny_mcp_tool_add_property( + tool, "role", "Message author role: user, assistant, or system.", MCPC_U8STR, true) + && tiny_mcp_tool_add_property( + tool, "content", "UTF-8 message text to persist.", MCPC_U8STR, true) && tiny_mcp_tool_add_property(tool, "metadata_json", - "Optional metadata object JSON; defaults to {}", + "Optional JSON object string containing tool_call_id, tags, " + "and/or memory_tier; defaults to {}.", MCPC_U8STR, false) && mcpc_server_add_tool(server, tool) == MCPC_EC_0; -- cgit v1.2.3