Skip to main content
Glama
Zifu Memory
by tanbopiao

zifu_semantic

Search an append-only agent memory store by meaning using character bigram semantic matching with optional vector scoring, returning the top-k matches and applying tiered access based on the reader identity you report.

Instructions

文义检索:按意思找记忆(字符二元文义匹配,可插拔向量芯)。reader 自报身份按分级读取。

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": {
      "query": "<query>"
    },
    "name": "zifu_semantic"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNo
readerNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add real behavior beyond the schema: 'reader 自报身份按分级读取' tells the agent that access is tiered and governed by the caller-declared reader identity, which affects what is returned. However, it says nothing about result limits, ranking, or what happens when reader is null (the default), leaving important behavioral gaps.

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?

Two compact clauses, front-loaded with the core purpose and then the access-control caveat; nothing is padded. The density and mixed technical jargon (字符二元文义匹配, 可插拔向量芯) cost a little readability without adding agent-actionable detail.

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

Completeness5/5

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

An output schema exists, so return values need not be explained, and with only three simple parameters (no nested objects, no enums) the description's coverage of purpose plus the reader-identity mechanic is a reasonable fit. The remaining gap is routing among sibling retrieval tools, which is a guidance issue rather than a completeness failure for this tool's own contract.

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 three parameters. The description only gestures at 'reader' (self-reported identity for tiered reads) and never explains its shape (free-form object or null, default null), gives no meaning to 'query' beyond the retrieval concept, and says nothing about 'top_k' or its default of 5. It partially compensates for one parameter but leaves the rest undocumented in both places.

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 names a specific verb and resource: '文义检索:按意思找记忆' (semantic retrieval – find memories by meaning), and even discloses the mechanism (character bigram matching, pluggable vector core). It is clearly distinguishable from a plain keyword search in concept, but it never names or contrasts with sibling retrievers like zifu_search or zifu_hybrid, so an agent must infer the boundary.

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 explicit when-to-use or when-not-to-use guidance. '按意思找记忆' implies semantic/phrased queries are the target, but with 16 siblings including zifu_search and zifu_hybrid, the description gives no rule for choosing among them.

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