Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Build LINE Rich Menu (single panel)

line_build_rich_menu

Create a LINE Rich Menu from a hosted image in one call by automatically validating, creating, uploading the image, and setting it as default. Reduces four LINE API calls to one, handling the image upload domain switch.

Instructions

Create a LINE Rich Menu from an already-hosted image in one call: validate → create → upload image → set as default. Collapses 4 LINE API calls into one, incl. the api-data.line.me domain switch for image upload (the #1 cause of failed implementations). Single-panel menus only. To RENDER the image from labels instead of hosting your own, use line_design_rich_menu_image.

image_url must be public HTTPS JPEG/PNG, width 800–2500px, aspect ≥1.45, ≤1MB (validated client-side before upload). areas are tappable regions with postback/message/uri/richmenuswitch actions and must fit inside the image bounds. size 'large' (2500x1686, default) or 'compact' (2500x843). set_as_default default true. Max 1,000 rich menus per OA.

Returns { rich_menu_id, name, set_as_default, warnings[] }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
oaNo
nameYesInternal name (admin-only).
sizeNocompact (2500x843) for a single row, large (2500x1686) for a full panel. Default 'large'.large
areasYesTappable areas. Coordinates are in image pixels.
selectedNoWhether the rich menu opens by default when chat is opened.
image_urlYesPublic HTTPS URL of the rich menu image. Must be JPEG or PNG, aspect ratio ≥ 1.45, ≤1MB.
chat_bar_textYesThe button label shown in chat bar.
set_as_defaultNoSet this rich menu as the account-wide default. Default true.
Behavior4/5

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

Annotations indicate a mutation tool (readOnlyHint=false, destructiveHint=false). The description adds context: it mentions the internal workflow (validate → create → upload image → set as default), the critical domain switch for image upload, and constraints like image requirements and the 1,000-menu limit. No contradictions 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph with clear front-loading of purpose. Each sentence contributes useful information, though it could be slightly more structured (e.g., bullet points for constraints). No wasted words.

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?

Returns values are specified ({ rich_menu_id, name, set_as_default, warnings[] }) despite no output schema. Constraints (image size, aspect ratio, file size) and limits (max 1,000 menus per OA) are provided. Input parameters are covered by the schema, but the description adds operational context.

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 88%, so the schema already documents most parameters. The description adds minor detail (e.g., 'must fit inside the image bounds' for areas) but largely restates schema info (image_url constraints, size dimensions). Baseline 3 is appropriate.

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 clearly states the verb 'Create' and the resource 'LINE Rich Menu', distinguishing it from the sibling tool line_design_rich_menu_image which renders images from labels. The title also specifies 'single panel' for precise scope.

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 explicitly tells when to use ('single-panel menus only') and when not to, directing users to line_design_rich_menu_image for alternate image generation. It also explains the advantage of collapsing 4 API calls.

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