Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Design LINE Imagemap (Rich Message)

line_design_imagemap
Read-onlyIdempotent

Design a validated LINE Imagemap message and return JSON for sending. Requires pre-hosted images at a public HTTPS base URL.

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 (critical): LINE has NO imagemap-image upload API — you must pre-host the image at a public HTTPS base_url, and LINE fetches sized variants ${base_url}/1040, /700, /460, /300, /240 (host all, or serve the right size per suffix). Canvas width is always forced to 1040; you give base_height and all area coordinates in px on that 1040-wide canvas. areas must fit inside 1040 × base_height. Optional video area supported.

Returns { message, usage_hint }.

Example: "Rich Message ครึ่งบน-ครึ่งล่าง กดไปคนละลิงก์" → { base_url:"https://cdn.example.com/promo", alt_text:"โปรเดือนนี้", base_height:1040, 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"}}] }.

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_urlYesHTTPS base URL of the pre-hosted image set. LINE requests /1040 /700 /460 /300 /240 from it. No upload API — you must host the images yourself.
base_heightYesImage height in px WHEN the width is 1040 (width is always forced to 1040).
Behavior5/5

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

Annotations indicate readOnlyHint=true, idempotentHint=true, destructiveHint=false, which align with the description's claim of being design-only and not calling the LINE API. The description adds essential details like no upload API, forced canvas width, and return format, going beyond annotations.

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?

The description is front-loaded with the core purpose, followed by critical usage details and an example. Every sentence adds value, and the structure is logical and easy to parse.

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?

Given the complexity (nested objects, 5 parameters, no output schema), the description covers the workflow, constraints, and return format. The output structure is briefly mentioned as '{ message, usage_hint }', but could be more detailed. However, it is largely sufficient for the agent to select and invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the description adds value by explaining the image size suffix mechanism for base_url, the coordinate system for bounds, and the absence of an upload API. The example further clarifies parameter usage.

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 starts with 'Build a validated Imagemap message' and explicitly states 'DESIGN ONLY — never calls the LINE API', clearly distinguishing it from siblings like line_send_message and other design tools. The verb and resource are specific and unambiguous.

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?

Provides explicit guidance on when to use (design only), how to use (hand output to line_send_message via message.message_json), and critical prerequisites (pre-host images, coordinate system). The image hosting caveat and canvas width constraint are clearly stated.

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