Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Set / clear the account-wide default LINE rich menu

line_set_default_rich_menu
Idempotent

Assigns or removes the default rich menu for a LINE Official Account. When set, it appears to all followers without a per-user menu; use mode 'set' with a menu ID or 'clear' to remove.

Instructions

Set or clear the OA's default rich menu. The default menu shows to every follower who does not have a per-user menu linked (per-user links override the default).

Args:

  • mode: 'set' (assign a default) | 'clear' (remove the default).

  • rich_menu_id: Required for mode='set'; ignored for clear.

  • oa: Optional OA id.

Returns: { mode: "set" | "clear", rich_menu_id?: string // present when mode='set' }

Examples:

  • "ตั้ง rich menu R123 เป็น default" → { mode: "set", rich_menu_id: "R123" }

  • "ลบ default rich menu" → { mode: "clear" }

Errors:

  • mode='set' without rich_menu_id → returns input error

  • 404 → rich_menu_id not found (set), or no default set (clear)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesset: make a rich menu the account-wide default; clear: remove the default.
rich_menu_idNoRich menu ID to set as default. Required for mode='set'; ignored for clear.
oaNoOptional OA id; defaults to active OA.
Behavior5/5

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

Description adds behavioral context beyond annotations: explains that setting a default menu makes it visible to followers without per-user menus, and details return format and error conditions. Annotations already indicate idempotent and open world.

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?

Well-structured with clear sections (Args, Returns, Examples, Errors). No redundant sentences; every part adds useful information. Front-loaded with core purpose.

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 no output schema, the description includes return values and common errors. Covers edge cases (missing rich_menu_id, 404). Very complete for a tool with 3 parameters.

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%, but description adds significant value with examples, error handling, and detailed explanation of mode and rich_menu_id usage. The Args section clarifies parameter roles and dependencies.

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 tool sets or clears the default rich menu, specifying the behavior and distinguishing it from per-user menu linking. The title and description align perfectly.

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?

Explicitly explains when to use 'set' vs 'clear', gives examples including Thai language queries, and mentions per-user override. Provides clear guidance on mode selection and required parameters.

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