Skip to main content
Glama

独行录 / opcmenu

准备上传本人现场照片

prepare_activity_photo_upload

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

Input Schema

TableJSON 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.7/5.0
Behavior4/5

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

Annotations only cover the safety defaults, so the description carries real behavioral weight: it discloses the login/role requirement, the two-phase preview/confirm protocol, post-success visibility to attendees, permanent REGISTERED-private classification, no public exposure, and quota inheritance. It lacks detail on failure/expiry behavior of the preview token or the PUT mechanics.

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 bracketed prerequisite prefix is well front-loaded, but the body is a single dense run-on clause chain that mixes the flow, visibility rules, and quota behavior, making it harder to scan. It is information-rich but not cleanly segmented.

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 7-parameter, no-output-schema, two-phase upload tool, the description covers the workflow and visibility outcomes well but does not describe the preview response contents or the upload-limit values (deferring to the service). An agent can proceed but must infer the response shape from the flow narrative.

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 coverage is only 43%, but the schema itself documents mime, bytes, and sha256, and the description explains the relationship between preview, previewHash, and the confirm step. However, the meaning/source of activityRef, fileName, and how previewHash is obtained is left largely implicit, so it only partially compensates for the coverage gap.

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 specific verb+resource (prepare a photo upload for an activity) and describes a two-phase preview-then-confirm flow. It clearly conveys the upload intent, though it does not explicitly differentiate itself from the very similar siblings prepare_activity_material_upload and prepare_signup_file_upload.

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 states the access prerequisites up front ([需登录·参会者或主办方] and only activities where the person has attendance/management permission) and explains the condition that selects preview=true (default) versus preview=false (after confirmation). No exclusions against specific alternatives are named.

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