Skip to main content
Glama
FocalMem MCP Server

FocalMem MCP Server

by kannazuki114

memory_commit

Write new memory nodes with source pointers and causal edges, and automatically detect potential conflicts with L1 rules to maintain consistency.

Instructions

写入新记忆节点(支持挂接原文指针与因果边,并自动检测与 L1 铁律的潜在冲突)。

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": {
      "title": "<title>",
      "content": "<content>"
    },
    "name": "memory_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNofact
tagsNo
tierNoL2_GIST
titleYes
contentYes
end_lineNo
relationNorelated_to
file_pathNo
parent_idNo
rationaleNo
project_idNodefault
start_lineNo
surprise_scoreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose real behavior beyond the name: automatic detection of potential conflicts with L1 iron rules, and the ability to attach source pointers and causal edges. It omits what happens on conflict detection (rejection? warning?), whether writes are idempotent, and what the response contains.

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?

A single compact sentence, front-loaded with the core action followed by parenthetical capabilities. No wasted wording, though the density leaves the reader without much to parse for guidance.

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

Completeness2/5

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

For a 13-parameter write operation with no annotations and no output schema, the description is far too thin. It neither documents the parameter space nor explains the conflict-detection outcome or the tier/kind semantics an agent would need to call this correctly.

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

Parameters2/5

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

Schema description coverage is 0% across 13 parameters, so the description must compensate and largely does not. It implicitly gestures at file_path/start_line/end_line ('原文指针'), relation/parent_id ('因果边'), and tier='L1_PINNED' ('L1 铁律'), but leaves kind, tags, surprise_score, rationale, project_id, title, and content unexplained.

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 states a specific verb+resource ('写入新记忆节点' / write a new memory node) and names distinctive capabilities (attaching source pointers, causal edges, L1 conflict detection). It does not, however, distinguish this from siblings like memory_supersede or memory_resolve_conflict, which also touch the memory graph.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives. With siblings such as memory_supersede, memory_resolve_conflict, and dream_consolidate in the catalog, an agent has no signal about whether a new node or a supersede/conflict action is appropriate.

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