Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Design LINE Imagemap (Rich Message)

line_design_imagemap
Read-onlyIdempotent

Design a LINE imagemap rich message and receive validated JSON ready for line_send_message. Define tappable areas, links/text replies, and optional video on a 1040px canvas.

Instructions

Build a validated Imagemap message (LINE OA Manager calls it a "Rich Message") and return it as JSON to hand to line_send_message via message.message_json. DESIGN ONLY — never calls the LINE API.

Image hosting — two paths: (1) RECOMMENDED: run line_prepare_image first and pass its prepared_key here (hosting + the 5 size variants + verification all handled; base_height auto-derived). (2) Self-hosted: pass base_url of a public HTTPS host serving ${base_url}/1040, /700, /460, /300, /240 (LINE has NO upload API) plus base_height. Canvas width is always forced to 1040; all area coordinates are px on that 1040-wide canvas and must fit inside 1040 × base_height. Optional video area supported.

Returns { message, usage_hint }.

Example (prepared): "ส่งรูปนี้เป็น Rich Message ครึ่งบน-ครึ่งล่าง" → line_prepare_image first, then { prepared_key:"ab12…", alt_text:"โปรเดือนนี้", areas:[{bounds:{x:0,y:0,width:1040,height:520},action:{type:"uri",uri:"https://shop.example.com/a"}},{bounds:{x:0,y:520,width:1040,height:520},action:{type:"uri",uri:"https://shop.example.com/b"}}] }. Example (self-hosted): same but { base_url:"https://cdn.example.com/promo", base_height:1040 } instead of prepared_key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
areasYesAt least 1 tappable area. Bounds are px on the 1040-wide base; must stay in bounds.
videoNoOptional inline video that plays over part of the image.
alt_textYesFallback text shown when the image can't render (≤400 chars).
base_urlNoSelf-hosting path: HTTPS base URL of a pre-hosted image set. LINE requests /1040 /700 /460 /300 /240 from it. Use line_prepare_image + prepared_key instead if the user has no host.
base_heightNoImage height in px WHEN the width is 1040. REQUIRED with base_url; ignored with prepared_key (auto-derived).
prepared_keyNoRECOMMENDED path: key from line_prepare_image (purpose 'imagemap'). base_url and base_height are filled in automatically from the prepared image.
Behavior5/5

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

Annotations already mark this as read-only and idempotent, but the description adds substantial behavioral detail beyond that: 'never calls the LINE API,' returns a { message, usage_hint } shape, validates the output, forces canvas width to 1040, and explains the hosting behavior with LINE's lack of upload API. It fully discloses the tool's side-effect-free, design-only nature and its integration with image preparation.

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?

The description is moderately long but well-structured, opening with the core purpose, then hosting paths, constraints, return value, and examples. It front-loads the most critical info (design-only, never calls API) and includes two examples that are compact and illustrative. Some repetition with schema details exists (e.g., the /1040 size variants), but the examples and flow explanation justify the length.

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?

This is a complex tool with two hosting modes, coordinate constraints, optional video, and integration with other tools. The description covers all of these, including the return value shape (not provided by any output schema), the recommended workflow via line_prepare_image, and the fact that LINE has no upload API. It is complete enough for an agent to select and invoke the tool correctly without missing context.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond individual field docs by explaining the relationship between prepared_key and base_url/base_height, the two mutually exclusive hosting paths, and the coordinate system (all px on a 1040-wide canvas). The illustrative example shows how to combine alt_text, areas, and either prepared_key or base_url, giving the agent a concrete usage template.

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 states a specific verb and resource: 'Build a validated Imagemap message' and 'return it as JSON to hand to line_send_message via message.message_json.' It clearly distinguishes itself from siblings like line_send_message and line_design_flex by noting it only designs and never sends. This makes the tool's purpose unambiguous and distinct.

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?

The description offers explicit guidance on when to use this tool vs alternatives: it says 'DESIGN ONLY — never calls the LINE API,' implying sending should go through line_send_message. It also gives a recommended vs self-hosted path, explicitly telling the agent to run line_prepare_image first when possible, and when to choose base_url instead. This is clear, actionable usage context.

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/wasintoh/line-oa-mcp-ultimate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server