Skip to main content
Glama

独行录 / opcmenu

换组织 logo

set_organization_logo
Idempotent

【需要登录·OWNER/ADMIN】按图片链接给组织换 logo;imageUrl 传 null 是移除(回落首字头像)。 【组合链】用户发来的图片链接 / upload_image_from_url 返回的 url → 本工具。 【口径/坑】① 服务端替你抓图、转存、同步机审(与头像同口径,二维码、联系方式导流也会拦),被拒的图当场删除,返回 image_content_rejected。② 只收 jpg/png/webp、≤5MB、公网直链。③ 组织已归档则不能改。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageUrlYes图片的公网直链;null=移除 logo
organizationIdYes组织 id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (idempotentHint, destructiveHint=false) by disclosing that the server fetches and re-hosts the image, runs machine moderation that can reject QR codes or contact-driving images, deletes rejected images immediately, returns 'image_content_rejected', enforces jpg/png/webp ≤5MB public direct links, and blocks edits to archived orgs. This is exactly the operational context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the auth requirement and core action, then uses bracketed labels (【组合链】, 【口径/坑】) to group workflow routing and pitfalls. Every clause in the ①②③ list carries distinct, non-redundant information; nothing is filler.

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 two-parameter mutation tool with no output schema but a full annotation set, the description closes every gap: permissions, input validation, error code, moderation behavior, idempotent removal semantics, and the archived-org edge case. An agent has everything needed to call it correctly or explain a failure.

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 baseline is 3, but the description adds real constraints the schema does not encode: acceptable formats, 5MB limit, public direct-link requirement, and the null-equals-removal/avatar-fallback behavior. The OWNER/ADMIN requirement also qualifies the organizationId parameter's authority context.

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?

Names a specific verb and resource ('按图片链接给组织换 logo') and immediately defines the scope, including the null case that removes the logo and falls back to the initial-letter avatar. An agent can distinguish this from generic siblings like update_organization or upload_image_from_url without opening the schema.

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 【组合链】 section explicitly routes the agent: image URLs come from the user or from upload_image_from_url's output, then feed this tool. It also states the auth precondition (login + OWNER/ADMIN). It stops short of naming when *not* to use it or pointing to an alternative for other org-field edits.

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