Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

unsend_message

Retract one of your own LINE messages for all participants and delete it from the conversation. Requires confirm: true because the action is irreversible and cannot be undone.

Instructions

Retracts (unsends) one of YOUR OWN LINE messages for everyone — deletes it from the conversation for all participants and CANNOT be undone. LINE allows unsending only your own messages. SAFETY GATE: you must pass confirm: true, or the call refuses so it can never fire by accident. One unsend per call.

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>",
      "confirm": "<confirm>"
    },
    "name": "unsend_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true to proceed. Retraction is irreversible; the call refuses unless this is explicitly true.
message_idYesLINE message id to retract (must be your own), as returned by get_chat_messages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.7.2
    • removedInput schema / properties / messageId
      Removed value: -{
      -  "description": "LINE message id to retract (must be your own), as returned by get_chat_messages.",
      -  "type": "string"
      -}
    • addedInput schema / properties / message_id
      Added value: +{
      +  "description": "LINE message id to retract (must be your own), as returned by get_chat_messages.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "messageId",
      -  "confirm"
      -]New value: +[
      +  "message_id",
      +  "confirm"
      +]
  2. Addedv0.4.1
  3. Removedv0.3.0
  4. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the destructive, irreversible effect on all participants, the ownership restriction, and the confirm-gate refusal behavior. It does not cover rate limits or what a successful response returns, leaving some behavioral surface undocumented.

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?

Front-loads the action and its irreversibility, then the ownership constraint, then the safety gate — a sensible order with no filler. The confirm requirement is stated twice (once as gate, once as per-call limit context) and duplicated again in the schema, a minor redundancy.

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 irreversible mutation with no annotations and no output schema, the definition covers what matters: irreversibility, ownership, and the confirmation gate. Only the shape of the result (success/failure indication) is left unstated.

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 both parameters already carry descriptions covering the confirm gate and the message_id source. The prose restates the same facts (confirm must be true, message must be your own) rather than adding new semantics, 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 ('Retracts (unsends) ... LINE messages') with precise scope: your own messages, for everyone, one per call. This clearly separates it from siblings like send_message or react_message without needing to name them.

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?

Gives a firm precondition for use ('LINE allows unsending only your own messages') and a per-call limit, which tells the agent when the tool is applicable. It stops short of naming an alternative path for cases where the message is not yours or where a reaction retraction is intended.

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