Skip to main content
Glama

Set workspace profile

set_workspace_profile
Idempotent

Record who this workspace is: company or organization name, industry, who the page is mainly shared with, and one sentence on what it is used for. The web form for this was retired; this is the only way to write it. company_name is the sole source of the company name on WeChat share cards — without it recipients see a generated workspace name. Fields passed are merged into the existing profile and omitted fields are left unchanged, so changing only the company name needs only company_name. A first-time profile must supply the required fields: with usage=work, company name and industry are required; customer_type and use_case are required in both modes. Validation matches the retired web form exactly: placeholder names such as “personal”, “test” or “my company” are rejected (pass usage="personal" for personal use, which does not ask for company or industry), phone numbers and messaging handles are not allowed in the name, and industry must be one of the listed values. The profile is used for compliance and support and is not shown to viewers, except that the company name appears on share cards. embed_origins (owner only) is the embed allowlist: the parent origins (https://domain) that may frame this workspace’s pages through an embed link (preview_version with embed_origin); it replaces the whole list, [] clears it, and empty (the default) means only the platform first-party origins (Tokenman web chat: https://claudefleet.24haowan.com, https://ccquota.24haowan.com) may embed — those are always allowed, need no setup and do not count towards the 5. It also governs public pages: empty means any https site may frame a public page directly with an iframe (the default), non-empty means only these origins may; private and passcode pages are unaffected (embed links only). Passing only embed_origins leaves the profile untouched. Read-only members cannot call it. icon_base64 sets the workspace icon (base64 PNG or JPEG, up to 2 MB, square works best; only use a logo or avatar the user provides): it becomes the avatar on the workspace home page and folder pages and the browser tab icon for every page on https://.24hw.cn; an empty string removes it. Passing only it leaves the profile untouched. The company name is also what readers see as the workspace name on the home page and folder pages.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_workspace_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
usageNoUsage: work (default) means work use, where company name and industry are required; personal allows both to be empty.
industryNoIndustry (required when usage=work); must be one of the listed values.
use_caseNoOne sentence on what you will send and to whom, for example “send the weekly report to my team”.
icon_base64NoBase64 of the workspace icon (a data:image/png;base64, prefix is fine), PNG or JPEG, up to 2 MB; an empty string removes the icon
company_nameNoCompany or organization name (required when usage=work). It appears on WeChat share cards.
customer_typeNoWho your pages are mainly shared with: b2b = colleagues, clients or partners; b2c = friends, family and other individuals.
embed_originsNoOwner only: the embed allowlist, an array of https://domain origins (such as https://example.com); replaces the whole list, [] clears it. It adds to the platform first-party origins (claudefleet / ccquota.24haowan.com), which are allowed by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / icon_base64
      Added value: +{
      +  "description": "Base64 of the workspace icon (a data:image/png;base64, prefix is fine), PNG or JPEG, up to 2 MB; an empty string removes the icon",
      +  "maxLength": 11184812,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / embed_origins / description
      Previous value: -"Owner only: the embed allowlist, an array of https://domain origins (such as https://ccquota.24haowan.com); replaces the whole list, [] clears it."New value: +"Owner only: the embed allowlist, an array of https://domain origins (such as https://example.com); replaces the whole list, [] clears it. It adds to the platform first-party origins (claudefleet / ccquota.24haowan.com), which are allowed by default."
  3. Changed1 schema field changed
    • addedInput schema / properties / embed_origins
      Added value: +{
      +  "description": "Owner only: the embed allowlist, an array of https://domain origins (such as https://ccquota.24haowan.com); replaces the whole list, [] clears it.",
      +  "items": {
      +    "maxLength": 200,
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses merge semantics, exact validation rules matching the retired form, conditional required fields by usage mode, embed_origins replacement/default behavior, icon side effects, and visibility to viewers versus share cards. This is rich behavioral context for a mutation tool.

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 purpose is front-loaded and most sentences carry substantive information. It is long and contains some redundancy, particularly repeating that the company name appears on share cards and as the workspace name. Minor trimming would improve it without losing necessary detail.

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 7-parameter mutation tool with no output schema, the description covers required fields, validation, permissions, side effects, partial update behavior, embed allowlist defaults, and icon handling. An agent has enough information to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already covers all parameters, the description adds meaningful semantics: company_name's effect on WeChat share cards, conditional requirements for first-time profiles, the merge behavior that makes partial updates safe, and embed_origins replacing the whole list with platform origins always allowed.

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 opens with a specific verb and resource: 'Record who this workspace is' and enumerates the profile fields it writes. It clearly establishes that this is the only write path now that the web form is retired. It does not explicitly distinguish itself from sibling tools such as rename_workspace, so it falls short of a 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 explains when fields are required, that read-only members cannot call it, that partial updates are allowed, and that changing only the company name needs only company_name. These are concrete usage constraints. It does not name alternative sibling tools or explicitly state when not to use this 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