Skip to main content
Glama

独行录 / opcmenu

准备本人报名附件私有上传

prepare_signup_file_upload

【需登录·本人】仅用户提供真实文件时准备上传指定报名文件题;不公开文件,不提交报名。返回专用PUT地址,宿主/CLI用同MCP凭证传原始字节,服务端验证大小、SHA-256及格式后保存真实文件答案。证件等敏感题不写跨表单记忆,服务会拒绝;不得换key绕过。上传成功后submit_signup会沿用已保存附件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
mimeYesget_agent_file_limits 返回的准确 MIME
slugYes
bytesYes真实原始文件字节数
sha256Yes对原始文件实际计算 SHA-256,不得猜测
fileNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the two-step handshake (returns a dedicated PUT URL, host/CLI uploads raw bytes with the same MCP credential), the server-side validation gate (size, SHA-256, format), a rejection policy for sensitive questions such as ID documents, and the prohibition on swapping keys to bypass. None of this is derivable from readOnlyHint/destructiveHint/openWorldHint.

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?

A single dense paragraph that front-loads the login/self requirement and the non-mutating scope before the mechanics. Every clause carries information, though the run-on punctuation makes it slightly harder to scan than an ideal definition.

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?

No output schema exists, and the description covers the return value (PUT URL), the auth/credential requirement, and the downstream submit_signup linkage, so an agent knows how to act after the call. The only real gap is that two of six required parameters (slug, fileName) remain unexplained.

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?

With only 50% schema description coverage, the description compensates: it ties bytes/sha256/mime to server-side validation, and 不得换key绕过 gives behavioral meaning to the key parameter. slug and fileName still carry no explanation in either place, so it falls short of full coverage.

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?

States a specific verb+resource (准备上传指定报名文件题) and immediately scopes it (不公开文件,不提交报名), which cleanly separates it from submit_signup, get_signup_file_download, and the activity-material/photo upload preparers. An agent can identify the tool without opening the schema.

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?

Gives an explicit trigger condition (仅用户提供真实文件时) and a negative boundary (不提交报名), plus the downstream sequence (上传成功后 submit_signup 会沿用已保存附件). It stops short of naming a specific sibling alternative to use instead when the user has no real file, but the when-to-use signal is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources