Skip to main content
Glama

独行录 / opcmenu

查看或维护组织福利

manage_organization_benefits

【需要登录】list按本人权限看福利与可编辑状态;create/update用fields(title/detail/priceNote/venueId/freeHours/conditions/validUntil/providerUserId等),hide/restore用benefitId。写默认预览,确认同参+previewHash、consent=true、preview=false。服务重验组织角色及场地归属,福利不等于预约或付款。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opNolist
fieldsNo
reasonNo
consentNo
previewNo
benefitIdNo
previewHashNo
organizationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already say readOnlyHint=false, destructiveHint=false, idempotentHint=false, but the description adds value beyond them: login requirement, the 'writes default to preview' rule and the exact confirm parameters (same params + previewHash, consent=true, preview=false), plus server-side re-verification of org role and venue ownership. It also clarifies benefits are not bookings or payments.

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?

A single dense paragraph that front-loads the login requirement, then the op breakdown, then the write-preview rule. Every clause carries operational meaning, though the run-on semicolon structure is slightly taxing.

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

Completeness4/5

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

For an 8-parameter, 5-op tool with no output schema and only generic annotations, the description covers auth, per-op parameter usage, the two-step preview protocol, and server-side validation. Gaps remain on the required organizationId, the reason field, and list return shape.

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, and it does: it lists the create/update field keys (title/detail/priceNote/venueId/freeHours/conditions/validUntil/providerUserId), ties benefitId to hide/restore, and explains previewHash/consent/preview in the confirm flow. It leaves `organizationId` and `reason` unaddressed, so it is not complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (组织福利 / organization benefits) and enumerates the five concrete operations (list/create/update/hide/restore), each with a specific verb. It does not name a sibling tool to differentiate, so it stops short of 5.

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?

It assigns a condition to each op value: list uses the caller's own permissions to show benefits and editability; create/update use `fields`; hide/restore use `benefitId`. It also spells out the preview-then-confirm flow, but gives no explicit when-not-to-use or alternative tool.

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