Skip to main content
Glama

zhiji_ingest_file

Ingest files (audio, video, images, PDFs, etc.) by converting to text via Whisper, OCR, or document parsing into long-term memory. Supports path, URL, or base64. Audio also gets acoustic emotion analysis.

Instructions

把一个文件(音频/录音/图片/PDF/Word/Excel/视频等)经知己既有抽取管线(Whisper 语音转写 / Tesseract OCR / 文档解析)转成文本后写入长期记忆——这是让音视频与文档'进记忆'的入口(zhiji_memory_ingest 只收文本)。来源三选一:path=MCP 服务器本机可读的文件路径(适合 stdio 本地客户端);url=http(s) 链接(桥接可下载);base64=内联字节(适合远程 HTTP 客户端的小文件)。⚠️ 音视频转写在 CPU 上可能耗时数分钟,请把客户端超时调大并耐心等待。★音视频还会做声学情绪分析(音量/语速/声纹情绪)存入情绪库;isUserVoice=true(确认是用户本人的录音/视频)时,声学情绪进一步汇入用户画像「声学情绪基调」——非用户本人的音频(播客/他人声音)务必留默认 false,否则会污染画像。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo文件的 http(s) URL(与 path/base64 三选一)
pathNoMCP 服务器本机可读的文件绝对路径(与 url/base64 三选一)
base64No文件内容的 base64(与 path/url 三选一);大文件不建议内联
filenameNo原始文件名(含扩展名,用于识别类型;判定音视频也靠它)
userEmailNo用户标识;缺省用 MB_USER_EMAIL
isUserVoiceNo音视频专用:true=确认这段录音/视频是用户本人的声音→声学情绪汇入其画像;默认 false=不确定/他人声音,只存情绪库不进画像(防污染)
conversationIdNo归属会话 ID;缺省自动生成 mcp-file-<时间戳>
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral disclosure. It mentions the specific extraction pipelines (Whisper, Tesseract OCR, document parsing), warns about the time-consuming nature of audio/video transcription on CPU, and details the acoustic emotion analysis, including how isUserVoice affects user profile versus emotion library. No contradictions with annotations.

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 description is structurally well-organized, starting with the core purpose and sibling distinction, then source options, performance warning, and emotion analysis. It is somewhat lengthy but every sentence adds value. Could be slightly more concise, but the clarity and completeness justify a high score.

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?

Given the complexity of the tool (multiple file types, pipelines, performance issues, emotion analysis, parameter interdependencies), the description is comprehensive. It covers what the tool does, how to use it, important caveats, and behavioral traits. However, it lacks explicit mention of return values or confirmation of success, which is a minor gap.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds significant meaning beyond the schema. It explains the rationale behind isUserVoice (acoustic emotion into user profile vs just library), clarifies that filename is used for type detection, and provides context for the three source options with usage recommendations. This enrichment justifies a score above the baseline of 3.

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 purpose: ingesting files (audio, images, PDF, etc.) via extraction pipelines (Whisper, OCR, document parsing) into long-term memory. It explicitly distinguishes from the sibling tool zhiji_memory_ingest which only accepts text, using the phrase '只收文本' (only accepts text).

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

Usage Guidelines5/5

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

The description provides explicit when-to-use guidance: for files like audio, images, documents, versus zhiji_memory_ingest for plain text. It explains the three source options (path, url, base64) with appropriate use cases and warnings (e.g., '大文件不建议内联' for base64). It also warns about timeouts for audio/video transcription and cautions about misusing the isUserVoice parameter.

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/xfhxxffhh224/zhiji-mcp'

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