Skip to main content
Glama

独行录 / opcmenu

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

update_activity_material
DestructiveIdempotent

【需要登录】【何时用】「把这几场的讲义都从报名可见改成公开」。一次可跨多场改最多 50 条——/pro 网页要一场一场点开关,这是 agent 独有的形态。 【组合链】list_activity_materials 拿 id → preview=true 看会改成什么 → 念给用户确认 → preview 省略再调一次落库。 【口径/坑】① visibility=PUBLIC 是对外公开,公开过就撤不回已经被看到的部分,改前逐条念名字。② 这里只改不传不删:新资料按链接登记走 add_activity_material;删除会真删对象存储且不可逆,本域刻意不提供。③ 逐条兜错,失败的进 failed,不影响其他条。

Input Schema

TableJSON 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?

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=true, openWorldHint=true), the description adds login requirement, the 50-item cross-activity batch limit, preview semantics (no writes at all), the irreversibility of making items PUBLIC, the fact that only updates are performed (no create/delete), and per-item error handling where failures go to a failed list without blocking others. This is unusually rich behavioral context that the annotations alone do not convey.

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?

The description is front-loaded with 【需要登录】【何时用】 and organized into bracketed sections (usage, composition chain, pitfalls), with no wasted filler on core invocation facts. It is somewhat long and includes a web-UI comparison that is helpful rationale but not strictly necessary for correct calling, keeping it just shy of perfect conciseness.

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?

Given high complexity (destructive batch mutation with confirmation workflow) and no output schema, the description compensates by covering auth, scope, sequencing, safety warnings, alternatives, and partial-failure behavior. An agent has everything needed to select and safely invoke the tool, including the two-step preview-then-commit dance.

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 still adds value by explaining that visibility=PUBLIC means public exposure that cannot be fully retracted once seen, and by clarifying the preview workflow (preview=true returns only before/after deltas and persists nothing). Some of this (preview behavior, cross-activity) overlaps with the schema text, so it falls short of fully independent parameter guidance.

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?

The description states a specific verb and resource: batch-update material names and visibility across activities, up to 50 items. It also differentiates itself from the /pro web UI and from sibling tools (add_activity_material for new materials, deletion deliberately not offered). An agent immediately knows what this tool does and how it differs from relatives.

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?

It gives an explicit when-to-use scenario (convert handouts from registration-visible to public across several activities) and a full composition chain: list_activity_materials for ids, preview=true to see changes, confirm with user, then call again without preview to persist. Alternatives for creation (add_activity_material) and deletion (intentionally absent) are named, so the agent can route correctly.

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