Skip to main content
Glama

embed_file

Save files to the persistent knowledge base for long-term memory. Automatically preprocesses documents and code to enable semantic search and retrieval.

Instructions

当用户需要保存文件内容、学习新知识、记住某个文件、将文件加入知识库、存储代码或文档时,调用此工具。触发场景包括:用户说"学习这个文件"、"记住这个文件"、"保存到记忆"、"加入知识库"、"存储这个文档"、"把这个代码记下来"等。支持DeepSeek自动预处理复杂内容。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes需要学习并向量化的本地文件绝对或相对路径。
preprocessNo是否启用DeepSeek LLM预处理(默认true)。对于复杂文档会进行结构化整理,代码文件会生成摘要。
descriptionYes简要描述这个文件属于什么业务模块(例如:WebGIS 图层控制、数据要素分析等),将作为元数据保存。
Behavior3/5

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

No annotations are present, so the description carries the full burden of behavioral disclosure. It mentions DeepSeek automatic preprocessing as a notable behavior, but does not explain side effects such as duplicate handling, overwriting existing entries, permissions required, or what the tool returns. Some transparency is offered, but key behavioral details are missing.

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

Conciseness5/5

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

The description is a single well-structured paragraph that leads with the core use case, then lists concrete trigger phrases, and closes with one relevant feature. There is no filler or redundant content—every sentence earns its place.

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 write tool with no output schema and no annotations, the description explains when to use it and what it does, but omits important context such as return values, error behavior, and what happens if a file is already embedded. It is adequate for basic understanding but has clear gaps for an agent expecting robust guidance.

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?

All three parameters are fully described in the schema (100% coverage), including file_path, description, and the preprocess boolean with default. The description adds no additional parameter-specific meaning beyond the schema, so the baseline of 3 is appropriate.

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?

The description clearly states the tool's function: saving file content, learning new knowledge, remembering files, adding to knowledge base, and storing code/documents. It lists explicit trigger phrases ('学习这个文件', '记住这个文件', '保存到记忆', etc.), which unambiguously differentiates it from sibling tools (search_memory, list_memories, forget_file) by focusing on adding content to memory.

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?

The description provides explicit trigger scenarios and user expressions that indicate when to call this tool, making the usage context very clear. However, it does not explicitly state when not to use it or mention alternative tools like search_memory for retrieval, so it lacks exclusions but still offers strong guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SARPixelPioneer/kimi-memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server