Skip to main content
Glama

独行录 / opcmenu

设为或撤去联盟管理员(用户确认后执行)

set_alliance_staff_role
Destructive

【需要登录】须在任盟主,权限由联盟服务复核。先 get_alliance_workbench 核对目标在册身份,再向用户确认联盟、成员和新角色。role=ADMIN 设管理员;MEMBER 撤为普通员工。会改变管理权、同步各下属组织进驻权限并通知当事人,不能改变盟主席位。userId 是人的 id,不是成员关系 id。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleYes
userIdYes
allianceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false, idempotentHint=false, openWorldHint=true), the description adds substantial behavioral context: it requires login, must be the acting alliance leader, permissions are re-verified by the alliance service, it changes management rights, synchronizes access for subordinate organizations, notifies the affected person, and cannot alter the alliance leader seat. This gives the agent a rich understanding of side effects and authorization requirements.

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 a single dense paragraph that front-loads the login and authorization requirement, then covers workflow, role meanings, and side effects. Every sentence contributes useful information, though the run-on structure with semicolons could be slightly more scannable.

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 the tool's complexity (mutation with side effects), the lack of an output schema, and annotations that only cover safety hints, the description is complete enough: it covers prerequisites, pre-call verification steps, user confirmation, role semantics, side effects, limitations, and a parameter distinction. 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 0%, so the description must carry the burden. It clarifies the role enum (ADMIN sets administrator; MEMBER demotes to regular staff) and explicitly warns that userId is the person's id, not the membership relation id. The allianceId parameter is not further elaborated, but its meaning is clear from context, leaving only a minor gap.

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+resource: setting or removing an alliance administrator role, with role=ADMIN meaning set admin and role=MEMBER meaning demote to regular staff. It also explicitly limits scope by stating it cannot change the alliance leader seat, which helps distinguish it from other alliance-management siblings.

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?

The description gives clear prerequisites and a workflow: requires login, must be the current alliance leader, use get_alliance_workbench first to verify the target's registered identity, then confirm with the user. It does not explicitly state when not to use this tool or name a specific alternative for the role-change operation, but the context is well-defined.

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