Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Audit user's LINE Rich Menu

line_audit_user_menu
Read-onlyIdempotent

Determine which rich menu a LINE user sees by auditing the priority chain: per-user link, default, or built-in override. Get the source and explanation.

Instructions

Why is user X seeing menu Y? This tool inspects the rich-menu priority chain for a user:

  1. Per-user link (line_link_rich_menu_to_user) — overrides everything

  2. Account-wide default

  3. (LINE OA Manager built menus override API-built ones — silent gotcha!)

Args:

  • user_id: LINE user ID.

  • oa: optional OA id.

Returns: { user_id, visible_rich_menu_id?: string, source: 'per_user' | 'default' | 'none', per_user_link?: string, default_id?: string, explanation: string // Thai-language explanation }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYesLINE user ID to inspect
oaNo
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds valuable behavioral context: the priority logic, the silent gotcha about OA Manager overrides, and details about the return value including a Thai-language explanation. No contradictions.

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 numbered steps, clear Args and Returns sections. No unnecessary sentences; every part adds value.

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?

Despite no output schema, the description fully documents the return object with fields, types, and explanations. Covers the priority chain, edge cases, and locale note, making it self-contained for an agent.

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 provides only 50% parameter descriptions (user_id documented, oa not). The description adds meaning by listing both parameters in the Args section and providing an explicit return structure with field descriptions and types, compensating for missing schema coverage.

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?

Clearly states the tool inspects the rich-menu priority chain for a user. The description explicitly lists the three steps and distinguishes this tool from siblings like line_link_rich_menu or line_set_default_rich_menu by focusing on auditing rather than setting.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Starts with a concrete problem scenario ('Why is user X seeing menu Y?'), which implies when to use. Explains the priority chain and flags a silent gotcha. Lacks explicit when-not-to-use, but context is sufficient.

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