diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-07-01 00:17:40 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-07-01 00:17:40 +0900 |
| commit | 34e00404e9561dcaf8d2d99df7470757a4fee915 (patch) | |
| tree | b16e2fd6a5f9b0eb1f7019cb7967b4edcd97cc13 /src/mcp/tools/write_message.c | |
| parent | a44fd4cf3a0c3d7ae33b7664341a0a9bff07aaaa (diff) | |
tool description最適化
Diffstat (limited to 'src/mcp/tools/write_message.c')
| -rw-r--r-- | src/mcp/tools/write_message.c | 18 |
1 files changed, 13 insertions, 5 deletions
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; |
