Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Design Rich Menu Image (Rich Menu Studio)

line_design_rich_menu_image

Design LINE rich menu PNGs from labels with Thai typography support, preview, then deploy to your Official Account.

Instructions

Design a professional LINE rich menu PNG from labels alone — pure-JS renderer with Thai typography (LINE Seed / Prompt / Noto), then optionally deploy to LINE in the same call. No design tool or headless browser.

ALWAYS preview first: mode="preview" (default) returns the PNG as an image block — LOOK at it, iterate with the user, then call again mode="deploy". mode="save" writes the PNG to disk.

Templates (cells filled in reading order; tap areas auto-derived from the same geometry, pixel-perfect):

  • grid_6 (2500x1686, 6 cells): 3×2 grid, 6 equal cells — the classic LINE OA menu

  • grid_4 (2500x1686, 4 cells): 2×2 grid, 4 large cells

  • hero_top_3 (2500x1686, 4 cells): full-width hero banner on top + 3 cells below

  • hero_left_2 (2500x1686, 3 cells): left-half hero + 2 stacked cells on the right

  • split_2 (2500x1686, 2 cells): two tall vertical halves

  • full_1 (2500x1686, 1 cells): one full-canvas cell (single campaign banner)

  • compact_3 (2500x843, 3 cells): compact 1×3 row

  • compact_2 (2500x843, 2 cells): compact 1×2 row

  • compact_1 (2500x843, 1 cells): compact single full-width cell

cells[] length MUST equal the template's cell count; per-cell action is required only for deploy. brand auto-corrects label contrast for readability. deploy needs deploy:{ name, set_default?, alias? } and auto-deletes the orphaned menu on any post-create failure; LINE caps the PNG at <1MB (gradients auto-flatten to solid once).

Returns preview → PNG image block + { width, height, bytes, template, font_used, warnings[] }; deploy → { rich_menu_id, areas_count, set_default, alias? }.

Example: "ทำเมนูร้านกาแฟ 6 ปุ่ม สีเขียว" → { template:"grid_6", brand:{primary:"#06C755"}, cells:[{label:"สั่งเลย", icon_emoji:"☕", action:{type:"uri", uri:"https://shop.line.me/@cafe"}}, ...5 more] }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
oaNoOA id (multi-OA). Omit to use active OA.
modeNopreview (default) returns the PNG for inspection; save writes it; deploy goes live.preview
sizeNoOptional; defaults to the template's native size (large templates → 2500x1686, compact_* → 2500x843). Errors if it contradicts the template.
brandNoBrand kit. Omit for the tasteful default palette.
cellsYesOne entry per template cell, in reading order (left→right, top→bottom)
deployNoRequired when mode='deploy'.
templateYesLayout template. grid_6 is the classic 3×2 LINE OA menu.
output_pathNosave mode: where to write the PNG. Default ./rich-menu-<template>.png
chat_bar_textNoChat-bar button label (≤14 chars). Default "เมนู".
Behavior5/5

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

The description discloses key behavioral traits beyond the annotations: 'auto-deletes the orphaned menu on any post-create failure', 'LINE caps the PNG at <1MB (gradients auto-flatten to solid once)', and 'brand auto-corrects label contrast for readability'. These are important for an agent to understand side effects and constraints. No contradiction with 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 well-structured with a clear overview, workflow steps, template table, important notes, and an example. It is concise without being terse, and every sentence adds value. There is no repetition of schema information that is already clear from the input schema.

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?

Given the tool's complexity (9 parameters, nested objects, multiple modes, no output schema), the description is remarkably complete. It covers all modes, templates, parameter relationships, deployment behavior, and return values. The example at the end ties everything together, leaving no significant gaps.

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?

While schema coverage is 100%, the description adds significant meaning: template enumeration with visual descriptions (e.g., '3×2 grid, 6 equal cells — the classic LINE OA menu'), explanation that cells[] length must equal template's cell count, and that per-cell action is required only for deploy. The example further clarifies usage. This goes well beyond 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?

The tool's purpose is clearly stated: 'Design a professional LINE rich menu PNG from labels alone'. It distinguishes itself from sibling tools by explaining it is a pure-JS renderer requiring no design tool or headless browser, and mentions optional deployment. The description makes it easy to understand what the tool does and how it differs from related tools like line_build_rich_menu or line_upload_rich_menu_image.

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?

Explicit workflow guidance is given: 'ALWAYS preview first: mode="preview" (default) returns the PNG as an image block — LOOK at it, iterate with the user, then call again mode="deploy"'. It also explains when to use save mode and deploy mode, and provides template descriptions. This helps the agent decide when and how to invoke the tool.

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