Skip to main content
Glama
GetNote MCP Server

GetNote MCP Server

by iswalle

upload_knowledge_file

Add an already uploaded OSS file to a GetNote knowledge base using metadata, then verify ingestion by checking the same resource ID until SUCCESS or FAIL.

Instructions

保留已上传对象和同一笔记 client_request_id;保存遇限流不要重新上传。凭据敏感,不得放进聊天、日志或命令参数。任务 pending/processing 不等于完成。恢复仅查询原 operation_id,不能自动申请新 key。OSS 直传成功后将原文件加入知识库,只接收元数据,不接收本地路径或 base64。返回处理中的资源不等于入库成功;用 list_knowledge_base_directories 查询同一 ID,直到 SUCCESS 或 FAIL。

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": {
      "topic_id": "<topic_id>",
      "directory_id": "<directory_id>",
      "file_name": "<file_name>",
      "file_type": "<file_type>",
      "md5": "<md5>",
      "url": "<url>"
    },
    "name": "upload_knowledge_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
md5Yes
urlYes
topic_idYes
file_nameYes
file_typeYes
directory_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.10.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses credential sensitivity (never in chat/logs/command args), rate-limit semantics, idempotency expectations (preserve the uploaded object and client_request_id), and that a pending/processing task is not completion. The one gap is a reference to client_request_id, which is not in the schema, leaving ambiguity about what to actually pass.

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

Conciseness3/5

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

The content is valuable but poorly front-loaded: it opens with a state-preservation rule rather than what the tool does, and the points about pending/processing not equaling completion are stated twice in slightly different wording. The semicolon-chained structure is dense and makes scanning for the primary action harder.

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 six-parameter mutation tool with no annotations, no output schema, and no schema descriptions, the description covers a good deal of workflow context (upload-then-register sequencing, polling until SUCCESS or FAIL via list_knowledge_base_directories). Still missing are per-parameter meaning and any indication of what the tool returns on acceptance versus rejection, which matters because no output schema exists.

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 0% across six required parameters, so the description must compensate, and it only partially does: it clarifies that url is an OSS-uploaded object reference and that local paths or base64 are rejected. It says nothing about md5, file_name, file_type, topic_id, or directory_id, leaving half the inputs to inference.

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 concrete action: registering an already OSS-uploaded original file into the knowledge base ('OSS 直传成功后将原文件加入知识库'), and it distinguishes this from re-uploading. However, the purpose is buried inside operational caveats rather than stated up front, so an agent must read several clauses before learning what the tool actually does.

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?

It gives real when-to-use context (only after a successful direct upload) and explicit when-not-to behavior: do not re-upload when rate-limited, recover by querying the original operation_id only, and do not request a new key automatically. It also names a concrete alternative path for polling (list_knowledge_base_directories), though it does not explain how siblings like get_knowledge_file_upload_operation relate.

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