Skip to main content
Glama

Toggle comment reaction

toggle_comment_reaction

Toggle your emoji reaction on a work-package comment: add or remove it, then retrieve the updated reaction state with all participants.

Instructions

React to a work-package comment with an emoji, or take your reaction back.

Use this for the lightweight acknowledgement a comment does not deserve: šŸ‘ on a decision, šŸ‘€ to say you are looking at it, šŸŽ‰ when something shipped. Returns the comment's full reaction state afterwards — every emoji on it with the people who picked it — plus reacted, which says whether you are now among them.

Pitfalls. This is a toggle, not an add: calling it twice with the same reaction leaves the comment exactly as it started, so it is not safe to retry blindly after a timeout — read reacted from the result instead. Reactions belong to the authenticated account; you cannot react on someone else's behalf and cannot remove their reaction. Only comment entries can be reacted to — a field-change journal entry ("Status changed from New to In progress") is refused by OpenProject with a 400. The feature needs OpenProject 16.0 or newer; an instance known to be older is refused up front with a version hint rather than pretending to have reacted, and one whose version is not readable answers 404 instead.

Cross-references: list_work_package_comments reads the thread and produces activity ids; add_work_package_comment says something in words when an emoji is not enough; get_instance_info reports the detected OpenProject version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reactionYesWhich emoji to toggle. OpenProject accepts exactly eight: thumbs_up (šŸ‘), thumbs_down (šŸ‘Ž), grinning_face_with_smiling_eyes (šŸ˜„), confused_face (šŸ˜•), heart (ā¤ļø), party_popper (šŸŽ‰), rocket (šŸš€), eyes (šŸ‘€). Passing the emoji character itself is rejected — use these names.
activity_idYesId of the comment to react to. It comes from list_work_package_comments (the 'id' of an entry with kind='comment') or from add_work_package_comment's result — it is an activity id, not a work package id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNoDegradation notes; always a list, usually empty.
messageYesHuman-readable confirmation.
reactedNoTrue when YOU now react with it, false when this call removed your reaction. Null when the authenticated user could not be determined.
reactionYesThe reaction this call toggled.
reactionsNoEvery reaction on the comment after the toggle; always a list, empty once the last one is removed.
activity_idYesActivity (journal entry) whose reactions these are.
Behavior5/5

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

Annotations already mark readOnlyHint=false, destructiveHint=false, and idempotentHint=false. The description goes far beyond that by explaining the toggle semantics (double-invocation leaves state unchanged), authentication ownership rules, the 400 rejection for journal entries, version requirements, and the 404/version-hint behavior. This is rich behavioral detail that helps the agent anticipate failures.

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 detailed but tightly organized: purpose, usage guidance, pitfalls, and cross-references. Every sentence carries operational value. While long, it is appropriately structured with clear sections and bolded pitfalls, and it front-loads the core purpose before diving into edge cases.

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?

Given the tool's toggle behavior, auth constraints, version dependency, and error modes, the description covers all these aspects comprehensively. It explains return state, references the output schema implicitly, and cross-links to the exact sources for the required activity_id. Nothing essential is left unstated.

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?

Schema coverage is 100%, but the description adds crucial meaning: activity_id is 'an activity id, not a work package id' and comes from specific sibling tools, while reaction names must be used because 'Passing the emoji character itself is rejected.' These details prevent common invocation mistakes and exceed what the schema alone provides.

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 and resource: 'React to a work-package comment with an emoji, or take your reaction back.' It clearly distinguishes this toggle from sibling tools like add_work_package_comment and edit_work_package_comment, and reinforces that with explicit cross-references.

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 provides explicit use-case guidance: 'Use this for the lightweight acknowledgement a comment does not deserve' and names alternatives: 'list_work_package_comments reads the thread and produces activity ids; add_work_package_comment says something in words when an emoji is not enough.' It also warns against blind retries, which is a key when-not-to-use pointer.

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