Skip to main content
Glama

add_reaction

Adds an emoji reaction to a message for the caller, keeping one reaction per member per emoji and emitting a reaction_added event.

Instructions

Add the caller's emoji reaction to a message. A member holds at most one reaction per emoji per message, so repeating it keeps a single reaction, and a reaction_added event is emitted on each call. Returns {ok: true}. Remove it with remove_reaction and read reactions with list_reactions. Requires workspace:write.

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": {
      "message_id": "<message_id>",
      "emoji": "<emoji>"
    },
    "name": "add_reaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
emojiYesThe reaction, usually a single emoji character. Surrounding whitespace is trimmed, and the result must be non-empty and at most 64 bytes.
message_idYesUUID of the message to react to. The caller must be able to read it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv479.0.2
    • addedInput schema / properties / emoji / description
      Added value: +"The reaction, usually a single emoji character. Surrounding whitespace is trimmed, and the result must be non-empty and at most 64 bytes."
    • addedInput schema / properties / message_id / description
      Added value: +"UUID of the message to react to. The caller must be able to read it."
  2. First observedv479.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the at-most-one-reaction invariant, the fact that a reaction_added event fires on every call, and the exact return value {ok: true}. This also explains the non-obvious idempotentHint=false despite state converging to a single reaction, which is exactly the kind of nuance annotations cannot convey.

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?

Five short sentences, front-loaded with the action, followed by invariant, side effect, return value, alternatives, and auth. Nothing is redundant and no sentence could be dropped without losing information.

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 two-parameter mutation with no output schema, the description covers the state invariant, side effects, return shape, auth scope, and sibling routing. An agent has everything needed to call it correctly and predict consequences.

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?

Schema coverage is 100% and the schema already documents emoji trimming, the non-empty/64-byte constraint, and the UUID-plus-read-permission requirement for message_id. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ('Add the caller's emoji reaction to a message') with the actor made explicit ('caller's'). It is immediately distinguishable from the named siblings remove_reaction and list_reactions without opening any schema.

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?

Routes the agent along the full lifecycle: use this to add, remove_reaction to undo, list_reactions to read. It also states the precondition 'Requires workspace:write', so eligibility is known before invocation.

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

Deploy Server

Other Tools