Skip to main content
Glama

独行录 / opcmenu

准备上传本人现场照片

prepare_activity_photo_upload

登录/参会者或主办方·对外;默认preview=true;展示活动及实际照片后获确认,同参+previewHash、preview=false取得PUT地址,以同MCP授权传原始图片。成功后照片立刻供本场参会者查看,恒为REGISTERED私有,不要求公网暴露。仅本人有参会/管理权限的活动,照片上限沿用服务。

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Only destructiveHint=false is annotated, so the description carries the load and does so well: it discloses visibility (immediately viewable by this session's attendees), the REGISTERED-private data classification, that public exposure is not required, that upload uses the same MCP authorization, and that size limits follow the service. Remaining gaps are failure behavior and exactly what the preview response contains.

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?

All content sits in one dense, semicolon-chained block mixing role labels, workflow, privacy, and limits, opening with the cryptic fragment '登录/参会者或主办方·对外'. Nothing is strictly redundant, but the absence of structure makes the critical preview/previewHash handshake harder to extract than it should be.

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 7-parameter, 5-required mutating tool with no output schema and minimal annotations, the description covers permissions, the two-call protocol, privacy outcome, and limits, and the schema points to get_agent_file_limits for MIME/byte constraints. What is missing is the shape of the preview result and error/retry behavior.

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 only 43%, so the description must compensate, and it targets the hardest coupling: previewHash is only meaningful together with preview=false and identical other parameters, and the preview=false call yields a PUT URL. That is real meaning beyond the schema, which documents only mime, bytes, and sha256. activityRef and fileName still get no explanation in either place.

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 names a concrete action chain: preview, then with previewHash and preview=false obtain a PUT address and upload the raw image, for one's own on-site activity photo. It is distinguishable from siblings like prepare_activity_material_upload mostly through the scope clause '仅本人有参会/管理权限的活动' and the photo-specific privacy model, but it never names those siblings outright.

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 lays out the intended two-phase protocol explicitly: preview=true by default, show the activity and actual photo for confirmation, then re-call with the same params plus previewHash and preview=false to get the PUT address. It also states the eligibility precondition (must hold attendance/management rights). It stops short of saying when to prefer prepare_activity_material_upload or prepare_signup_file_upload instead.

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