Skip to main content
Glama

workspace_manage

管理 TrendHub 本地工作区状态:创建/读取 workspace,维护 owner/editor/analyst/viewer 成员、watchlist、saved query、alert rule 与 audit。只写本地数据目录,不修改第三方平台、不自动上传;公网托管 Web 不暴露该变更接口。list/create 不需要 workspace_id,其余 action 必须提供 workspace_id。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
geoNoquery_save 的地区/geo 过滤
nameNocreate 的工作区名,或 saved query / alert rule 的显示名
roleNomember_set 的目标角色
limitNoaudit 返回条数,默认 200,最大 1000
queryNoquery_save 时的关键词
actionYes操作:list/create/get/member_set/watchlist_set/query_save/rule_save/audit
enabledNorule_save 是否启用,默认 true
keywordsNowatchlist 关键词,逗号分隔
platformsNoquery_save 的平台调用名,逗号分隔
principalYes本地身份映射,例如 local-owner 或公司 SSO 映射后的非敏感 principal
rule_jsonNorule_save 的 JSON 规则对象
workspace_idNo工作区 ID;除 list/create 外均必填
member_principalNomember_set 要新增/更新的非敏感 principal

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"操作:list/create/get/member_set/watchlist_set/query_save/rule_save/audit"
    • addedInput schema / properties / enabled / description
      Added value: +"rule_save 是否启用,默认 true"
    • addedInput schema / properties / geo / description
      Added value: +"query_save 的地区/geo 过滤"
    • addedInput schema / properties / limit / description
      Added value: +"audit 返回条数,默认 200,最大 1000"
    • addedInput schema / properties / member_principal / description
      Added value: +"member_set 要新增/更新的非敏感 principal"
    • addedInput schema / properties / name / description
      Added value: +"create 的工作区名,或 saved query / alert rule 的显示名"
    • addedInput schema / properties / platforms / description
      Added value: +"query_save 的平台调用名,逗号分隔"
    • addedInput schema / properties / role / description
      Added value: +"member_set 的目标角色"
    • addedInput schema / properties / workspace_id / description
      Added value: +"工作区 ID;除 list/create 外均必填"
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, so the description carries the burden of explaining mutation scope. It does so well by disclosing that behavior is local-only, non-third-party, and non-uploading, and adds the workspace_id requirement rule. It stops short of describing auth expectations or failure/error behavior, but the key side-effect scope is clear and consistent with the annotations.

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?

The description is three sentences with no filler: the first states what the tool manages, the second constrains side effects, and the third gives the key invocation precondition. Critical information is front-loaded and every sentence earns its place.

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 a tool with 13 parameters and no output schema, the description covers purpose, mutation scope, external-behavior exclusions, and the most important action-dependent parameter rule. It does not spell out action-specific required parameter combinations (e.g., member_set needs member_principal and role), but the schema descriptions cover those fields reasonably. Overall it is sufficient for an agent to select and invoke the tool correctly in most cases.

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 100%, so the baseline is 3. The description adds value by codifying a cross-parameter rule: workspace_id is required for every action except list/create. It also maps the action enum to high-level resource categories (member, watchlist, saved query, alert rule, audit), which helps an agent reason about which parameters apply to which action.

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 and resource: '管理 TrendHub 本地工作区状态' (manage TrendHub local workspace state), and enumerates the concrete sub-operations (create/read workspace, maintain members, watchlist, saved query, alert rule, audit). It also differentiates from sibling trend-analysis tools by explicitly scoping to local workspace data and excluding third-party platform modifications.

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 actionable context: it clarifies that the tool only writes to a local data directory, does not upload automatically, and notes that the mutation interface is not exposed on public web hosting. It also states the workspace_id precondition ('list/create 不需要 workspace_id,其余 action 必须提供 workspace_id'), which is directly useful for invocation. It does not explicitly name alternative tools, but no sibling clearly overlaps this workspace-management function.

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