Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

send_message

Send an immediate text message to a LINE conversation with end-to-end encryption; add @mention metadata so specific users are notified.

Instructions

Sends a text message to a LINE conversation immediately (not a draft). Always E2EE (pairwise for 1:1, group key for group/room); fails honestly rather than sending plaintext if the key cannot be resolved. One send per call. To @mention someone, put the visible "@name " into text AND pass a matching mentions entry — without mentions, "@name" is plain text and notifies no one. Resolve MIDs via get_group_members or find_contact first.

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": {
      "chat_id": "<chat_id>",
      "text": "<text>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPlain-text message body, including the literal "@name" text for any mentions — mentions only mark up text that is already there.
chat_idYesLINE chat/group/room MID to send to, as returned by list_conversations.
mentionsNoOptional @mentions. Each entry marks a span of `text` as a mention of one user, which LINE highlights and notifies. Omit to send `text` as plain, non-notifying text.
reply_to_message_idNoOptional message id (from get_chat_messages) this replies to — LINE renders a quoted reply. Omit for a normal message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.7.2
    • removedInput schema / properties / chatId
      Removed value: -{
      -  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      -  "type": "string"
      -}
    • addedInput schema / properties / chat_id
      Added value: +{
      +  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      +  "type": "string"
      +}
    • removedInput schema / properties / replyToMessageId
      Removed value: -{
      -  "description": "Optional message id (from get_chat_messages) this replies to — LINE renders a quoted reply. Omit for a normal message.",
      -  "type": "string"
      -}
    • addedInput schema / properties / reply_to_message_id
      Added value: +{
      +  "description": "Optional message id (from get_chat_messages) this replies to — LINE renders a quoted reply. Omit for a normal message.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "chatId",
      -  "text"
      -]New value: +[
      +  "chat_id",
      +  "text"
      +]
  2. Addedv0.4.1
  3. Removedv0.3.0
  4. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description must carry the full burden, and it does disclose the critical behavior: E2EE always, and it "fails honestly rather than sending plaintext if the key cannot be resolved" — a non-obvious failure contract an agent must anticipate. It omits other operational context such as permission/friendship requirements or whether blocked recipients error, which keeps it from a 5.

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-loaded with what the tool does, then rules, then parameter gotchas; every sentence carries operational weight. Slight redundancy with the schema's own mention-offset documentation keeps it short of perfect.

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 4-parameter mutation tool with no annotations and no output schema, this covers action, encryption/failure contract, call cardinality, and the trickiest parameter interaction. Missing only what a successful send returns and any recipient-side constraints (blocked users, non-friends).

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%, so the baseline is 3, but the description adds real meaning: mentions only annotate text that already exists, so both `text` and `mentions` must be supplied together, and MIDs should come from named sibling tools. That cross-parameter interaction is not stated in the schema.

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?

"Sends a text message to a LINE conversation immediately (not a draft)" gives a specific verb, resource, and immediacy qualifier that separates it from the media siblings (send_image, send_audio) and from any draft concept. The parenthetical rules out the most likely confusion in one clause.

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 states prerequisites explicitly: "Resolve MIDs via get_group_members or find_contact first" and "One send per call." It also names the exact failure mode of the mentions feature and how to satisfy it, so an agent knows when and how to use the optional parameter rather than guessing.

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