Skip to main content
Glama

独行录 / opcmenu

主办方:批量改资料的名字与可见性(可跨场)

update_activity_material
Idempotent

登录/主办方;list_activity_materials取id,可跨场最多50条改名/可见性;先preview=true逐条确认后省略preview执行。PUBLIC公开后无法收回别人所见。仅修改;上传用add_activity_material或prepare_activity_material_upload,删除用remove_activity_material另行确认且不可恢复。逐条失败进failed。

Input Schema

NameRequiredDescriptionDefault
itemsYes要改的资料,最多 50 条,可跨场
previewNotrue = 只回「会从什么改成什么」,一个字节都不落库
activityRefNo缺省活动;每条 items 可各自覆盖

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 only declare idempotentHint=true, so the description carries the behavioral burden and does so well: it discloses the auth requirement (logged-in/organizer), that preview writes nothing, that PUBLIC visibility is irreversible for what others have already seen, that deletion requires separate confirmation and is unrecoverable, and that per-item failures land in `failed` rather than aborting the batch. Nothing here contradicts the idempotency hint.

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?

Front-loaded with precondition, then workflow, then risk, then sibling routing — a logical order with dense semicolon-separated clauses. It is packed and slightly run-on, but every clause (limits, preview, irreversibility, alternatives, failed handling) carries information an agent needs.

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?

For a batch-mutation tool with no output schema, the definition covers auth, id sourcing, item limit, preview/execute split, irreversibility warning, alternative tools, and partial-failure reporting. An agent has everything needed to call it safely and correctly.

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 schema baseline already documents `items`, `activityRef` and `preview`. The description adds meaning beyond it by explaining how `materialId` values are obtained, how preview relates to execution, and the 50-item cross-event limit that governs the array parameter.

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 (rename/change visibility), resource (activity materials, `materialId`), and scope (batch, up to 50, cross-event) up front. It explicitly names the upload and delete siblings it is not, so an agent can separate it from add_activity_material/remove_activity_material without reading any 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?

Gives an explicit acquisition path (get ids via list_activity_materials), a mandatory two-step workflow (preview=true first, then omit preview to actually execute), and routes alternative intents to add_activity_material, prepare_activity_material_upload, and remove_activity_material. When-to-use and when-not-to-use are both covered.

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