Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Design LINE Flex Message

line_design_flex
Read-onlyIdempotent

Create validated LINE Flex Message JSON using Thai-localized templates or raw input. Returns preview, size, and warnings so you can send it with line_send_message.

Instructions

Compose a validated Flex Message for line_send_message. Modes: template mode { template, data } (Thai-localized, recommended; templates: receipt, voucher, shipping_update, order_confirm, appointment_reminder, promo_simple, course_cert, thank_you); raw mode { flex_json, alt_text } (advanced); or { list_templates: true } to get the catalog with Thai descriptions + required fields per template. DESIGN ONLY — never calls the LINE API.

Feed the result to line_send_message via message.flex_json, or pass { template, data } straight to line_send_message (same templates). Returns { flex_json, alt_text, preview_url (Flex Simulator), size_bytes, warnings[] } (warns near the 30KB bubble limit).

Example: "ออกแบบคูปอง 20% หมด 31 ส.ค." → { template:"voucher", data:{ title:"ส่วนลดวันแม่", code:"MOM20", discount:"ส่วนลด 20%", valid_until:"31 ส.ค. 2026" } }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoTemplate-specific data fields. Required when template is set.
alt_textNoOptional override for altText. Defaults to a template-derived alt text.
templateNoName of a pre-built Thai-localized Flex template. See catalog below. Mutually exclusive with flex_json.
flex_jsonNoRaw Flex contents (bubble or carousel). Advanced users only. Mutually exclusive with template.
list_templatesNoSet true to return the available template catalog instead of rendering.
Behavior5/5

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

Beyond annotations (readOnlyHint, idempotentHint), the description adds rich behavioral context: it validates, never calls the LINE API, returns a structured response with preview_url, size_bytes, and warnings[], and warns about the 30KB bubble limit. It also notes Thai localization of templates. These details go well beyond what annotations provide.

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 and front-loaded with purpose, then modes, usage, return format, and an example. Every sentence contributes information without fluff. The length is justified by the tool's complexity, and the example aids comprehension without redundant detail.

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?

With no output schema, the description explicitly lists the return fields (flex_json, alt_text, preview_url, size_bytes, warnings[]) and notes the 30KB limit. It explains the two modes, provides integration steps with line_send_message, and includes a Thai-language example. The only omission—detailed required fields per template—is addressed by the list_templates mode, making the description complete for practical use.

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 coverage is 100%, providing a baseline of 3, but the description adds significant value by grouping parameters into modes (template+data, flex_json+alt_text, list_templates), reinforcing mutual exclusivity, and giving a concrete example with template data fields. This helps the agent understand parameter combinations beyond the schema's individual descriptions.

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 opens with a specific verb+resource: 'Compose a validated Flex Message for line_send_message.' It clearly distinguishes itself from siblings like line_design_imagemap and line_design_card by focusing on Flex Messages, and explicitly states 'DESIGN ONLY — never calls the LINE API,' differentiating it from line_send_message.

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?

It provides explicit guidance on when to use each mode (template mode recommended, raw mode advanced, list_templates for catalog), and explains how to integrate with line_send_message via message.flex_json or direct template/data passthrough. The 'DESIGN ONLY' note clarifies that this tool is not for sending, addressing when-not-to-use.

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