Skip to main content
Glama

独行录 / opcmenu

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

set_alliance_staff_role

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

Input Schema

NameRequiredDescriptionDefault
roleYes
userIdYes
allianceIdYes

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?

With no annotations provided, the description carries the full burden and does so: it discloses that the call changes management rights, cascades entry permissions to subordinate organizations, and notifies the affected person, and that it cannot alter the alliance-owner seat. This is exactly the side-effect and scope disclosure a mutation tool needs.

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 the 【需要登录】 precondition, then prerequisites, then procedure, then effects — a sensible ordering with no filler sentences. It is dense but every clause (identity check, user confirmation, cascading permissions, seat restriction) carries distinct 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 three-parameter, side-effecting mutation with no annotations and no output schema, the description covers auth, authorization, required pre-check, user confirmation, role semantics, id-type disambiguation and downstream effects. Nothing an agent needs in order to call it safely 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 compensate, and it does for the two ambiguous fields: the role enum values are explained semantically, and userId is explicitly clarified as the person's id rather than the membership-relation id — critical given the schema's odd $ref to allianceId. allianceId itself only gets an implicit mention inside the user-confirmation step, so it stops short of full coverage.

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 pair and resource (set/remove alliance admin) and immediately disambiguates the two modes: role=ADMIN grants admin, MEMBER demotes to regular staff. It also carves out the seat it cannot touch (盟主席位), which separates it from remove_alliance_staff and set_organization_member_role without needing their schemas.

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?

Explicit prerequisites (must be logged in, must be current alliance owner, permission re-verified server-side) and an explicit workflow: call get_alliance_workbench to verify the target's registered identity, then confirm alliance, member and new role with the user before executing. This is a full when/when-not/ordering statement rather than implied usage.

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