Skip to main content
Glama

mt_merge

Merges structured conclusions into a project's versioned memory tree, prioritizing verified entries and flagging conflicts for confirmation before updating the mainline.

Instructions

提交结构化结论。entries 优先,旧 summary 作为待验证材料导入。冲突时先返回待确认决议

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>",
      "branchId": "<branchId>"
    },
    "name": "mt_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
entriesNo
projectYes显式项目名,使用 mt_set_project 初始化
summaryNo
branchIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false, so the description carries the burden of explaining a write operation; it does add real behavior – legacy summary is imported as unverified material rather than trusted, and conflicts return a pending decision instead of merging blindly. It omits what existing data is overwritten, whether the submission is idempotent, and any permission prerequisites for a mutation tool.

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?

Three short sentences, no filler, with the precedence rule placed before the edge-case behavior. The terseness borders on under-specification of the merge target, but nothing is wasted.

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

Completeness3/5

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

For a 4-parameter mutation with conflict handling and no output schema, the description covers the core decision logic but leaves the return shape vague ('待确认决议'), does not explain entries categories or verification levels, and says nothing about branchId. Adequate to call correctly, not sufficient to predict outcomes.

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 description coverage is only 25%, so the description compensates partially by clarifying the relationship between 'entries' and 'summary' – entries win, summary is demoted to verification material – which is meaningful semantics the schema does not encode. It says nothing about 'branchId' or the meaning of the category/verification enums inside entries.

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

Purpose4/5

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

The description uses a specific verb-resource pairing ('提交结构化结论' – submit structured conclusions) and reveals the two-path nature of the operation (entries vs. legacy summary), which distinguishes it from a plain read like mt_get_context. It stops short of naming the memory/project store being merged into, so the agent must infer the target from the 'project' parameter.

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

Usage Guidelines3/5

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

Precedence guidance is present ('entries 优先,旧 summary 作为待验证材料导入') and the conflict path is stated ('冲突时先返回待确认决议'), which implicitly routes the agent to mt_merge_resolve afterwards. However, no alternative is named explicitly and there is no statement of when to prefer this over mt_checkpoint or mt_branch.

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