Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

get_message_image

Download and decrypt one LINE image message by chat ID and message ID, optionally fetching a smaller preview; use for image-only retrieval from LINE chats.

Instructions

Download and decrypt one LINE image message. Legacy alias of get_message_media restricted to images; prefer get_message_media for video/audio/file.

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>",
      "message_id": "<message_id>"
    },
    "name": "get_message_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesLINE chat/group/room MID the message belongs to. Required to locate E2EE key material.
previewNoFetch the smaller preview object instead of the full-resolution original.
message_idYesLINE message id, as returned by get_chat_messages.

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 the message belongs to. Required to locate E2EE key material.",
      -  "type": "string"
      -}
    • addedInput schema / properties / chat_id
      Added value: +{
      +  "description": "LINE chat/group/room MID the message belongs to. Required to locate E2EE key material.",
      +  "type": "string"
      +}
    • removedInput schema / properties / messageId
      Removed value: -{
      -  "description": "LINE message id, as returned by get_chat_messages.",
      -  "type": "string"
      -}
    • addedInput schema / properties / message_id
      Added value: +{
      +  "description": "LINE message id, as returned by get_chat_messages.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "chatId",
      -  "messageId"
      -]New value: +[
      +  "chat_id",
      +  "message_id"
      +]
  2. Addedv0.4.1
  3. Removedv0.3.0
  4. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses that content is end-to-end encrypted and must be decrypted, and that chat_id is needed to locate key material, but says nothing about failure modes for non-image messages, size limits, or whether results are cached or fetched live.

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?

Two short sentences with zero filler: the identity of the tool is front-loaded and the deprecation/routing note follows immediately. Nothing needs trimming.

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 simple two-required-parameter read tool with fully documented params, the definition covers purpose, encryption behavior, and sibling routing. The one remaining gap is the return shape (raw bytes, URL, or base64) which has no output schema to cover it.

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 description coverage is 100%, so all three parameters are already documented in the input schema. The description adds no parameter-level detail such as whether preview and full-resolution differ in returned content or cost, so 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 pair (download and decrypt) with a precise resource ('one LINE image message') and explicitly positions itself as a legacy alias of get_message_media restricted to images. An agent can distinguish it from the sibling without opening either schema.

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 explicit routing guidance: prefer get_message_media for video/audio/file, which implies this tool is for image payloads and legacy callers. It does not spell out flatly 'use this only when you know the attachment is an image' or state whether it fails or falls back on non-image messages, leaving one inference.

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