Skip to main content
Glama

Add work package watcher

add_work_package_watcher
Idempotent

Subscribe a user to a work package's notifications to keep them informed without assignment. Ensures watchers receive updates on comments and changes.

Instructions

Subscribe a user to a work package's notifications.

Use this when someone should be kept in the loop on a ticket without being assigned to it. Watchers receive OpenProject's notifications for comments and changes. Returns the watcher (user id and name), the watch state after the call, and whether this call actually changed anything.

Pitfalls. The user must already be able to see the work package; OpenProject answers 422 with a violation on user otherwise, and adding someone other than yourself needs the add-work-package-watchers permission (adding yourself only needs view access). Calling twice is harmless: the second call reports changed: false. Watching is not assignment — use update_work_package(assignee=...) for that.

Cross-references: get_work_package(include=['watchers']) lists who already watches; remove_work_package_watcher is the reverse; list_work_package_comments shows what watchers are being notified about.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYesNumeric id of the user to add. Get it from list_users, from get_instance_info for the current user, or from any Ref in a work-package result. The string 'me' is not accepted here — the API needs a real id.
work_package_idYesWork package to watch. Ids come from search_work_packages, list_work_packages or get_work_package.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
userNoThe watcher. 'id' is the user id; 'name' is filled in only when OpenProject returned the user resource (it does on add, not on remove).
changedNoTrue when this call actually changed the watcher list, false when the user was already watching. Null when OpenProject does not report it — removals answer 204 whether or not the user was watching.
messageYesHuman-readable confirmation.
watchingYesWatch state after the call: true after adding, false after removing.
work_package_idYesWork package whose watcher list was changed.
Behavior5/5

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

The description discloses idempotency ('Calling twice is harmless: the second call reports changed: false'), permission requirements, and error behavior (422 on user visibility violation). These go well beyond the annotations (idempotentHint, etc.) and add valuable behavioral context. No contradiction with 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 dense but every sentence earns its place. It uses clear sections (purpose, usage, return value, pitfalls, cross-references) and front-loads the main action. No fluff or repetition.

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?

Despite having an output schema, the description still summarizes the return values. It covers prerequisites, error conditions, permissions, idempotency, and related tools. For a tool of moderate complexity with two parameters and a clear output schema, this is fully complete.

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% with detailed parameter descriptions already. The description adds extra nuance for user_id (the 'me' string is not accepted, permission differences when adding oneself vs. others) and for work_package_id (source of valid IDs). This elevates it slightly above the high-coverage baseline.

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 opens with a specific verb+resource: 'Subscribe a user to a work package's notifications.' It clearly distinguishes the tool from siblings by contrasting watching with assignment ('Watching is not assignment — use update_work_package(assignee=...) for that') and cross-referencing remove_work_package_watcher as the reverse operation.

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?

Explicitly states when to use: 'Use this when someone should be kept in the loop on a ticket without being assigned to it.' It also provides exclusions (assignment use case), alternatives (remove_work_package_watcher), and prerequisite conditions (user must have view access, permission needed for adding others). This is a model of usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kar-thik/openproject-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server