Skip to main content
Glama

rsi_knowledge_update

Update an existing memory in place by id to change its title, content, tags, or conditions instead of creating duplicates; merge mode combines near-duplicates, keeps the fuller entry, and archives the rest.

Instructions

Update an existing memory in place by id (title/content/tags/roles/domain/description/trigger_condition/expiry_condition) — prefer updating over re-adding duplicates. action=merge combines near-duplicates: keep the more complete one, archive the rest (recoverable, not hard-deleted) and record a supersedes edge. Preserves id and location. 按 id 原地更新已有记忆(改 title/content/tags/roles/domain/description/前提与失效条件),改优于新建重复。action=merge 合并近重复:保留更完整者、其余归档(可恢复非硬删)并写 supersedes 边;保留 id 与所在目录。

Input Schema

NameRequiredDescriptionDefault
idNoupdate 必填:目标条目 id
idsNomerge 必填:待合并的条目 id(≥2)
tagsNo标签(整体替换)
rolesNo适用角色(整体替换)
titleNo新标题(≤120 字)
actionNoupdate=按 id 原地改字段(默认);merge=合并近重复
domainNo领域/板块
contentNo新正文(短知识≤1500,案例类≤20000)
keep_idNomerge 可选:指定保留者;缺省自动取正文最长/最新的一条
descriptionNo一句话简述
expiry_conditionNo失效条件
trigger_conditionNo前提条件

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With zero annotations the description carries the full load and does well: it discloses that merge archives rather than hard-deletes (recoverable), writes a supersedes edge, preserves id and location, and defaults keep_id to the longest/newest entry. It doesn't cover error behavior for a missing id or what the response contains, which for a mutation tool leaves a small gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The English sentence is front-loaded with the core action and the merge semantics follow logically. The full Chinese restatement roughly doubles the length without adding new information, which is a deliberate bilingual choice but still dilutes density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter mutation tool with no annotations and no output schema, the description covers the essential risk surface: partial vs whole-field replacement, recoverability of merge, and identity preservation. It stops short of stating failure modes (nonexistent id, conflicting keep_id) or what a successful call returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every one of the 12 parameters is already documented in the schema, including id/ids requirements and the action enum. The description restates the field list and merge semantics but adds no format or constraint detail beyond what the schema already provides, so the baseline applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (update an existing memory in place by id) and enumerates exactly which fields can change, which cleanly separates it from sibling rsi_knowledge_add (creation) and rsi_knowledge_delete. The two modes (update vs merge) are named up front so the agent can tell what it is invoking.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"prefer updating over re-adding duplicates" is an explicit routing directive away from the add tool, and merge's purpose (combine near-duplicates) is stated. What's missing is a when-NOT clause — e.g. what to do if the id is unknown, or when to fall back to add/delete instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.