Skip to main content
Glama
GetNote MCP Server

GetNote MCP Server

by iswalle

get_upload_token

Fetch Aliyun OSS image upload credentials for multipart/form-data uploads, then use the returned image_id to create an image note after a successful upload.

Instructions

保留已上传对象和同一笔记 client_request_id;保存遇限流不要重新上传。凭据敏感,不得放进聊天、日志或命令参数。任务 pending/processing 不等于完成。恢复仅查询原 operation_id,不能自动申请新 key。获取 OSS 图片上传凭证。返回 accessid/host/policy/signature 等字段,用于 multipart/form-data POST 上传图片到阿里云 OSS。上传成功后获取 image_id,再用 save_note 创建图片笔记。⚠️ mime_type 必须与实际文件格式一致,否则 OSS 签名失败。

Input Schema

NameRequiredDescriptionDefault
countNo需要的 token 数量,默认 1,最大 9(批量上传时使用)
mime_typeNo图片类型:jpg | png | gif | webp,默认 png
operation_idNo可选的原上传操作标识;恢复时必须复用。仅服务器协商支持时可用,不支持时明确失败。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.0
    • addedInput schema / properties / operation_id
      Added value: +{
      +  "description": "可选的原上传操作标识;恢复时必须复用。仅服务器协商支持时可用,不支持时明确失败。",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "pattern": "^[A-Za-z0-9._:-]{1,128}$",
      +  "type": "string"
      +}
  2. First observedv1.1.0

TDQS

B3.4/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 well: it warns credentials are sensitive and must not appear in chat, logs, or command arguments; that rate limiting means do not re-upload; that pending/processing is not completion; and that recoveries must use the original operation_id. The opening sentence about preserving client_request_id is ambiguous and appears to belong to a different tool, which slightly muddies the picture.

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

Conciseness2/5

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

The purpose sentence is not front-loaded; it is preceded by unrelated-looking clauses about client_request_id and task states, and the warning emoji line is appended at the end. Several sentences do not clearly belong to a credential-issuing tool, so the reader must filter to find the operative content.

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?

For a parameterless-required credential tool with no output schema, the description covers the essential pieces: what is returned, how to use the token (multipart/form-data POST), the follow-up step (save_note with image_id), and two failure modes (mime_type mismatch, rate limiting). Missing is any hint about credential lifetime or whether tokens are single-use.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by adding a real constraint the schema does not state — mime_type must match the actual file format or the OSS signature will fail. It adds nothing new for count or operation_id beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The core statement '获取 OSS 图片上传凭证' with the returned fields (accessid/host/policy/signature) is specific and actionable, but it appears mid-way through the description after several sentences about client_request_id preservation, rate limits, and task states that read like guidance copied from another tool. It never contrasts itself with the close siblings upload_image or get_knowledge_file_upload_token.

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

Usage Guidelines3/5

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

The description does supply a workflow (upload via multipart/form-data, get image_id, then call save_note) and recovery rules (reuse original operation_id, no new key). However, it gives no explicit rule for choosing this tool over the nearly identical siblings upload_image and get_knowledge_file_upload_token, which is the main decision an agent faces.

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