Skip to main content
Glama

独行录 / opcmenu

主办方:按链接上传一份活动资料

add_activity_material

【需要登录·主办方】把一个公网文件链接(讲义 PDF/PPT、文档、现场照片)登记成这场活动的资料。服务端抓取后转存私有存储,图片过机审。 【组合链】本工具 → list_activity_materials 核对 → 要改名或可见性用 update_activity_material。 【口径/坑】① 讲义/文件(SLIDES/FILE)登记后会给报名者播报「资料已上线」,发起前把文件名与可见性念给用户确认。② visibility 缺省:照片 PUBLIC、其余 REGISTERED(报名者可见)。③ 单个 ≤30MB,更大的去网页 /pro 直传。④ 链接必须是能直接下载的直链。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesSLIDES 讲义 | FILE 其他文件 | PHOTO 现场照片
nameYes资料名(报名者看到的名字)
sourceUrlYes文件的公网直链(http/https)
visibilityNoPUBLIC 人人可见 | REGISTERED 报名者可见
activityRefYes活动 slug 或 id(list_my_activities 的返回里都有)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false). The description adds substantial behavioral context beyond them: login/organizer requirement, server-side fetch into private storage, image moderation, broadcast of 'material online' to registrants for SLIDES/FILE, visibility defaults, 30MB size cap, direct-link requirement, and a pre-call confirmation step. This is rich disclosure.

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?

Well-structured with bracketed sections and the login/organizer requirement front-loaded. It is dense but each section (purpose, chain, pitfalls) earns its place. Slightly long, but the length is justified by the number of important constraints it must convey.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a mutation tool with no output schema. It covers authentication requirements, server-side behavior, workflow ordering, visibility defaults, size limits, link requirements, and a pre-call confirmation instruction. Nothing critical for correct invocation is missing.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema: default visibility logic (PHOTO defaults to PUBLIC, other kinds to REGISTERED), kind-specific broadcast behavior, the 30MB per-file limit, and the direct-download-link constraint. It does not add much for activityRef, but overall it exceeds the schema baseline.

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 and resource: registering a public web file link as an activity material. It names supported material types (handout PDF/PPT, document, photo) and explicitly differentiates from siblings through the chain pointing to list_activity_materials and update_activity_material. An agent can identify what this tool does without inspecting 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 Guidelines5/5

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

Explicitly gives the workflow chain (this tool → list_activity_materials to verify → update_activity_material for renaming/visibility) and a concrete alternative for oversized files (>30MB use web /pro direct upload). These are named alternatives with the conditions that select them, leaving little to inference.

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