Skip to main content
Glama

独行录 / opcmenu

把我的活动挂到目标下

attach_activity_to_goal

登录;挂本人活动到目标会立即授予全体合作人活动管理权,先确认范围。list_my_activities/attachable取活动→挂载→get_collaboration_goal核对;禁挂他人活动。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "goalId": "<goalId>",
      "activityRef": "<activityRef>"
    },
    "name": "attach_activity_to_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalIdYes
activityRefYes活动slug/id取get_collaboration_goal(include:["activities"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / activityRef / description
      Previous value: -"活动 slug 或 id(get_collaboration_goal(include:[\"activities\"]) 里两个都有)"New value: +"活动slug/id取get_collaboration_goal(include:[\"activities\"])"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the single destructiveHint:false annotation, it discloses the critical side effect that attaching immediately grants all collaborators management rights and that the user should confirm the scope first. It also adds the authentication requirement and a post-action verification step, which annotations do not cover.

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?

It is telegraphic and front-loaded, with the login requirement and the risky permission-grant side effect placed first. The arrow/abbreviation style ('attachable', '→') is dense but every clause carries information, so it's efficient rather than padded.

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 two-parameter mutation with no output schema and only one annotation, the description covers auth, side effects, the prerequisite workflow, and the prohibition. Return behavior is only handled indirectly via the 'verify with get_collaboration_goal' step.

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

Parameters3/5

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

The schema description for activityRef already points to get_collaboration_goal(include:["activities"]), and the description's workflow adds the source list_my_activities/attachable, though it only partially covers obtaining and validating goalId. Since schema coverage is only 50%, the description adds some but not full meaning for both parameters.

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 states a specific verb and resource (attaching my own activity to a goal) plus scope restriction (only my own activities, never others'). It doesn't explicitly name the sibling detach_activity_from_goal, but the attach/detach pairing is obvious from the name and description.

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?

It gives an explicit workflow: fetch activities via list_my_activities/attachable, attach, then verify with get_collaboration_goal. It also states a hard precondition (login required) and a hard exclusion (attaching other people's activities is forbidden), leaving nothing to inference.

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