Skip to main content
Glama
line

LINE Bot MCP Server

Official
by line

日本語版 READMEはこちら

LINE Bot MCP Server

npmjs

Model Context Protocol (MCP) server implementation that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

NOTE

This repository is provided as a preview version. While we offer it for experimental purposes, please be aware that it may not include complete functionality or comprehensive support.

Tools

  1. push_text_message

    • Push a simple text message to a user via LINE.

    • Inputs:

      • userId (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either userId or DESTINATION_USER_ID must be set.

      • message.text (string): The plain text content to send to the user.

  2. push_flex_message

    • Push a highly customizable flex message to a user via LINE.

    • Inputs:

      • userId (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either userId or DESTINATION_USER_ID must be set.

      • message.altText (string): Alternative text shown when flex message cannot be displayed.

      • message.contents (any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.

      • message.contents.type (enum): Type of the container. 'bubble' for single container, 'carousel' for multiple swipeable bubbles.

  3. broadcast_text_message

    • Broadcast a simple text message via LINE to all users who have followed your LINE Official Account.

    • Inputs:

      • message.text (string): The plain text content to send to the users.

  4. broadcast_flex_message

    • Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account.

    • Inputs:

      • message.altText (string): Alternative text shown when flex message cannot be displayed.

      • message.contents (any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.

      • message.contents.type (enum): Type of the container. 'bubble' for single container, 'carousel' for multiple swipeable bubbles.

  5. get_profile

    • Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.

    • Inputs:

      • userId (string?): The ID of the user whose profile you want to retrieve. Defaults to DESTINATION_USER_ID.

  6. get_message_quota

    • Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.

    • Inputs:

      • None

  7. get_rich_menu_list

    • Get the list of rich menus associated with your LINE Official Account.

    • Inputs:

      • None

  8. delete_rich_menu

    • Delete a rich menu from your LINE Official Account.

    • Inputs:

      • richMenuId (string): The ID of the rich menu to delete.

  9. set_rich_menu_default

    • Set a rich menu as the default rich menu.

    • Inputs:

      • richMenuId (string): The ID of the rich menu to set as default.

  10. cancel_rich_menu_default

    • Cancel the default rich menu.

    • Inputs:

      • None

  11. create_rich_menu

    • Create a rich menu based on the given actions. Generate and upload an image. Set as default.

    • Inputs:

      • chatBarText (string): Text displayed in chat bar, also used as rich menu name.

      • actions (array): The actions of the rich menu. You can specify minimum 1 to maximum 6 actions. Each action can be one of the following types:

        • postback: For sending a postback action

        • message: For sending a text message

        • uri: For opening a URL

        • datetimepicker: For opening a date/time picker

        • camera: For opening the camera

        • cameraRoll: For opening the camera roll

        • location: For sending the current location

        • richmenuswitch: For switching to another rich menu

        • clipboard: For copying text to clipboard

  12. get_follower_ids

    • Get a list of user IDs of users who have added the LINE Official Account as a friend. This allows you to obtain user IDs for sending messages without manually preparing them.

    • Inputs:

      • start (string?): Continuation token to get the next array of user IDs. Returned in the next property of a previous response.

      • limit (number?): The maximum number of user IDs to retrieve in a single request.

Related MCP server: LineWhiz

Installation (Using npx)

requirements:

  • Node.js v22 or later

Step 1: Create LINE Official Account

This MCP server utilizes a LINE Official Account. If you do not have one, please create it by following this instructions.

If you have a LINE Official Account, enable the Messaging API for your LINE Official Account by following this instructions.

Step 2: Configure AI Agent

Please add the following configuration for an AI Agent like Claude Desktop or Cline.

Set the environment variables or arguments as follows:

  • CHANNEL_ACCESS_TOKEN: (required) Channel Access Token. You can confirm this by following this instructions.

  • DESTINATION_USER_ID: (optional) The default user ID of the recipient. If the Tool's input does not include userId, DESTINATION_USER_ID is required. You can confirm this by following this instructions.

{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": [
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true",
        "CHANNEL_ACCESS_TOKEN" : "FILL_HERE",
        "DESTINATION_USER_ID" : "FILL_HERE"
      }
    }
  }
}

Installation (Using Docker)

Step 1: Create LINE Official Account

This MCP server utilizes a LINE Official Account. If you do not have one, please create it by following this instructions.

If you have a LINE Official Account, enable the Messaging API for your LINE Official Account by following this instructions.

Step 2: Build line-bot-mcp-server image

Clone this repository:

git clone git@github.com:line/line-bot-mcp-server.git

Build the Docker image:

docker build -t line/line-bot-mcp-server .

Step 3: Configure AI Agent

Please add the following configuration for an AI Agent like Claude Desktop or Cline.

Set the environment variables or arguments as follows:

  • mcpServers.args: (required) The path to line-bot-mcp-server.

  • CHANNEL_ACCESS_TOKEN: (required) Channel Access Token. You can confirm this by following this instructions.

  • DESTINATION_USER_ID: (optional) The default user ID of the recipient. If the Tool's input does not include userId, DESTINATION_USER_ID is required. You can confirm this by following this instructions.

{
  "mcpServers": {
    "line-bot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CHANNEL_ACCESS_TOKEN",
        "-e",
        "DESTINATION_USER_ID",
        "line/line-bot-mcp-server"
      ],
      "env": {
        "CHANNEL_ACCESS_TOKEN" : "FILL_HERE",
        "DESTINATION_USER_ID" : "FILL_HERE"
      }
    }
  }
}

Local Development with Inspector

You can use the MCP Inspector to test and debug the server locally.

Prerequisites

  1. Clone the repository:

git clone git@github.com:line/line-bot-mcp-server.git
cd line-bot-mcp-server
  1. Install dependencies:

npm install
  1. Build the project:

npm run build

Run the Inspector

After building the project, you can start the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js \
  -e CHANNEL_ACCESS_TOKEN="YOUR_CHANNEL_ACCESS_TOKEN" \
  -e DESTINATION_USER_ID="YOUR_DESTINATION_USER_ID"

This will start the MCP Inspector interface where you can interact with the LINE Bot MCP Server tools and test their functionality.

Versioning

This project respects semantic versioning

See http://semver.org/

Contributing

Please check CONTRIBUTING before making a contribution.

Available Tools

12 tools
broadcast_flex_messageBroadcast Flex MessageA
Destructive

Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts. Please be aware that this message will be sent to all users.

ParametersJSON Schema
NameRequiredDescriptionDefault
messageYes

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already mark destructiveHint true, so the description's warning ('sent to all users') reinforces this without adding new behavioral insights. The description does not disclose potential side effects like rate limits, quota usage, or message delivery guarantees, but the annotation reduces the burden. It adds some value by describing layout options.

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 three sentences: purpose, layout support, and warning. It is concise, front-loaded with the key action, and each sentence adds distinct value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the extreme complexity of the input schema (nested objects, many optional structures) and no output schema, the description is too brief. It does not cover return values, error handling, or how to construct the message beyond layout types. The agent would need extensive external knowledge to use this tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single parameter 'message', and the description only provides minimal guidance ('Supports bubble and carousel layouts'). It does not explain the structure or common properties of the message object, leaving the agent to parse the complex schema without added semantic help. The description fails to compensate adequately for the lack of schema 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 clearly states the tool broadcasts a flex message to all LINE Official Account users, with specific verb (broadcast) and resource (flex message). It distinguishes from siblings like push_flex_message by noting 'all users' and from text messages by specifying 'flex message'. The mention of bubble and carousel layouts adds specificity.

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?

The description explicitly states this sends to all users, which clearly distinguishes it from push tools that send to specific users. However, it does not explicitly mention when not to use it (e.g., for targeted messages) or provide alternatives. The warning about sending to all users adds appropriate context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

broadcast_text_messageBroadcast Text MessageA
Destructive

Broadcast a simple text message via LINE to all users who have followed your LINE Official Account. Use this for sending plain text messages without formatting. Please be aware that this message will be sent to all users.

ParametersJSON Schema
NameRequiredDescriptionDefault
messageYes

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate destructiveHint: true. The description adds meaningful context by explicitly stating the broadcast scope ('to all users who have followed your LINE Official Account') and the warning about sending to all users. This complements the annotation without contradiction.

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?

Two sentences, each serving a distinct purpose: action definition and behavioral warning. No unnecessary words. Front-loaded with the core action.

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 lacking output schema, the tool is simple. The description fully covers what the tool does (broadcast text), how (plain text), and the scope (all followers). No missing critical information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It clarifies that the message is 'plain text' and 'without formatting', adding semantic value beyond the schema's 'const: text' and string constraints.

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 'Broadcast' and the resource 'simple text message via LINE to all users who have followed your LINE Official Account'. It distinguishes from siblings 'broadcast_flex_message' and 'push_text_message' by specifying plain text and broadcast scope.

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?

The description says 'Use this for sending plain text messages without formatting' which implies when to use. It also warns 'this message will be sent to all users', but does not explicitly state when not to use or contrast with alternatives like push_text_message for specific users.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cancel_rich_menu_defaultCancel Rich Menu DefaultB
Destructive

Cancel the default rich menu.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

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

The annotation already indicates destructiveHint: true. The description adds minimal behavioral context beyond 'cancel', not explaining consequences or reversibility.

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 extremely concise with no wasted words, appropriate for the simple action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simplicity (no parameters, destructive annotation), the description is adequate but lacks explanation of what 'default' means or the impact, leaving some context missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With zero parameters, no further documentation is needed. The baseline for 0 params is 4, and the description does not add redundant info.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('cancel') and the resource ('default rich menu'). It is specific and distinct from sibling tools like set_rich_menu_default, though it does not explicitly differentiate when to use which.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives (e.g., set_rich_menu_default). The description lacks context about prerequisites or typical scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

create_rich_menuCreate Rich MenuB
Destructive

Create a rich menu based on the given actions. Generate and upload a rich menu image based on the given action. This rich menu will be registered as the default.

ParametersJSON Schema
NameRequiredDescriptionDefault
actionsYesThe actions of the rich menu.
chatBarTextYesText displayed in the chat bar and this is also used as name of the rich menu to create

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already mark destructiveHint: true. The description adds that the rich menu becomes the default, which is useful context. However, it does not detail side effects like overwriting existing defaults or quota implications.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Two sentences with some redundancy ('Generate and upload' repeats the idea). Could be more concise. Contains key information but not optimally structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Missing details about image generation (does it require an image URL? auto-generate?), and the confirmation that it becomes default. With no output schema, the description should explain return value but doesn't. Adequate but not complete.

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 100%, so baseline is 3. The description adds no extra meaning to parameters beyond what the schema provides, but this is acceptable given full schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it creates a rich menu and registers it as default. It distinguishes from sibling tools like delete, cancel, set default. However, some redundancy and singular/plural inconsistency slightly reduce clarity.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. It does not explain prerequisites, such as whether a rich menu already exists or how it interacts with other rich menu operations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

delete_rich_menuDelete Rich MenuA
Destructive

Delete a rich menu from your LINE Official Account.

ParametersJSON Schema
NameRequiredDescriptionDefault
richMenuIdYesThe ID of the rich menu to delete.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations provide destructiveHint=true, and the description is consistent but adds no further behavioral context (e.g., permanence or consequences). It does not contradict 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?

Single sentence, 11 words, no wasted content. Perfectly concise.

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?

Given the simple interface (one param, no output schema, destructive annotation), the description provides the essential purpose and parameter. Could mention return status or implications with default rich menu, but adequate for low complexity.

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 coverage is 100% for the single parameter 'richMenuId', and the description adds no additional meaning beyond the schema description.

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 'delete' and the resource 'rich menu' from the 'LINE Official Account', distinguishing it from siblings like create_rich_menu or set_rich_menu_default.

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

Usage Guidelines2/5

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

No guidance on when to use the tool, prerequisites (e.g., cannot delete if set as default), or alternatives. The destructive hint is in annotations but not mentioned in the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_follower_idsA
Read-only

Get a list of user IDs of users who have added the LINE Official Account as a friend. This allows you to obtain user IDs for sending messages without manually preparing them.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoThe maximum number of user IDs to retrieve in a single request.
startNoContinuation token to get the next array of user IDs. Returned in the 'next' property of a previous response.

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the description adds limited behavioral context. It mentions that the tool obtains user IDs for messaging, which is a benign consequence. No additional details about pagination, rate limits, or other behaviors beyond the read-only nature are disclosed. The description adds minimal value over 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 two sentences with no fluff. The primary action is front-loaded, and the secondary sentence adds context. Every word serves a purpose, making it efficient and easy to parse.

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?

The tool is simple with two optional parameters and no output schema. The description explains the result (list of user IDs) and its utility. However, it does not explicitly mention that the response includes a continuation token for pagination, which is a minor gap. Overall, it provides sufficient context for basic usage.

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?

The input schema has 100% description coverage for both parameters (limit and start), so the description does not need to elaborate further. It provides no additional semantic meaning beyond what is already in the schema. Baseline score of 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 action ('Get a list of user IDs of users who have added the LINE Official Account as a friend') and specifies the resource (follower user IDs). It distinguishes this tool from siblings like get_profile (single user) and broadcast/push tools (sending messages). The purpose is specific and unambiguous.

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?

The description implies usage context: obtaining user IDs for sending messages without manual preparation. However, it does not explicitly state when to avoid using this tool or compare with alternatives like get_profile for individual IDs. Guidance is present but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_message_quotaGet Message QuotaA
Read-only

Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true. Description adds context about monthly message limit and current usage, which is valuable beyond the annotation.

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?

Two sentences, clear and front-loaded with no extraneous information.

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?

The description fully covers the tool's purpose for a simple read-only operation with no parameters and no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist in the schema; description adds no parameter details, but baseline is 4 for 0-parameter tools with 100% 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?

The description clearly states the verb 'Get' and the resource 'message quota and consumption'. It distinguishes from sibling tools that are about sending messages or managing rich menus.

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

Usage Guidelines3/5

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

The description implies usage for checking quota before sending messages, but does not explicitly state when to use this tool over siblings or provide alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_profileGet ProfileA
Read-only

Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.

ParametersJSON Schema
NameRequiredDescriptionDefault
userIdNoThe user ID to get a profile. Defaults to DESTINATION_USER_ID.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true. Description adds value by specifying what data is returned (display name, profile picture URL, etc.), which is behavioral beyond the annotation. No contradictory information.

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?

Single sentence, front-loaded with purpose, no extraneous words. Every part earns its place.

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?

Given low complexity (1 optional parameter, no output schema), the description adequately covers what the tool does and what it returns. Minor gap: no mention of error handling or access requirements, but acceptable for a read-only tool with annotations.

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 100% (the schema already fully describes the 'userId' parameter with default and description). The tool description does not provide additional parameter semantics beyond what the schema offers, hence baseline 3.

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?

Description clearly states verb 'get' and resource 'detailed profile information of a LINE user', listing specific fields (display name, profile picture URL, status message, language). It distinguishes from sibling tools which are about messaging and rich menu management.

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?

Implied usage: retrieving a user's profile. No explicit when-not-to-use or alternatives, but context from sibling tool names suggests this is the only tool for fetching individual profile data, making usage clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_rich_menu_listGet Rich Menu ListA
Read-only

Get the list of rich menus associated with your LINE Official Account.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.7/5.0
Behavior2/5

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

Annotations provide readOnlyHint=true, but the description adds no further behavioral context beyond that. It does not mention output format, pagination, rate limits, or any other traits. For a tool with no parameters and no output schema, the description should at least hint at the nature of the returned data.

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 a single, clear sentence with no unnecessary words. It efficiently conveys the tool's purpose without redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (no parameters, no output schema), the description is minimally adequate but lacks details about the return value (e.g., whether it returns IDs or full rich menu objects), which would help the agent fully understand the tool's output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters and schema coverage is 100% (vacuously). According to the rubric, no parameters defaults to a baseline score of 4. The description does not need to add anything 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 description clearly states the tool retrieves the list of rich menus for the user's LINE Official Account. It uses a specific verb (Get) and resource (rich menus), distinguishing it from sibling tools like create_rich_menu or delete_rich_menu.

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

Usage Guidelines3/5

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

The description implies the tool is for reading existing rich menus, but it does not explicitly guide the agent on when to use this tool versus alternatives. Since siblings include both read and write operations, some explicit usage guidance would be beneficial.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

push_flex_messagePush Flex MessageC
Destructive

Push a highly customizable flex message to a user via LINE. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts.

ParametersJSON Schema
NameRequiredDescriptionDefault
userIdNoThe user ID to receive a message. Defaults to DESTINATION_USER_ID.
messageYes

TDQS

C2.9/5.0
Behavior2/5

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

Annotations indicate destructiveHint=true, so the description should add behavioral context beyond mutation. It mentions high customizability and layout types, but omits important details like rate limits, recipient requirements, or validation errors.

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?

Two concise sentences with no superfluous information. The description is front-loaded with the primary action and key distinguishing feature (layout types).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite the tool's complexity (large nested schema), the description is very brief. It omits critical information like required altText, recipient constraints, error handling, and references to official documentation.

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 50%. The description adds value by explaining the two layout types (bubble and carousel), which helps understand the nested message.contents structure. The userId parameter is already well-documented in the schema. Baseline 3 with partial compensation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'push' and resource 'flex message', and specifies two layout types (bubble and carousel). However, it does not explicitly differentiate from sibling tools like push_text_message or broadcast_flex_message, but the distinction is implicit.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives (e.g., push_text_message for simple text, broadcast_flex_message for broadcasting). No prerequisites or context provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

push_text_messagePush Text MessageA
Destructive

Push a simple text message to a user via LINE. Use this for sending plain text messages without formatting.

ParametersJSON Schema
NameRequiredDescriptionDefault
userIdNoThe user ID to receive a message. Defaults to DESTINATION_USER_ID.
messageYes

TDQS

A3.8/5.0
Behavior3/5

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

Annotations provide destructiveHint=true, so description carries lower burden. Description adds minimal extra context beyond that it pushes a message. Does not mention potential side effects (e.g., LINE API restrictions, user must be a friend) or rate limits.

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?

Two concise sentences, first sentence dedicated to purpose, second to usage. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool has simple parameters and no output schema. Description adequately covers purpose and basic usage but lacks error conditions, prerequisites (e.g., user must be a LINE friend), or integration details. Sufficient for a simple tool but leaves some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% (only message parameter has description). Description mentions 'simple text message' and 'plain text', which relates to message but does not explain the nested structure or userId parameter beyond what schema provides. Lacks compensation for missing schema 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 clearly states the verb 'Push' and resource 'text message to a user via LINE', distinguishing it from sibling tools like broadcast (sends to all) and flex (formatted message) by specifying 'plain text without formatting'.

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?

The second sentence explicitly states when to use this tool ('for sending plain text messages without formatting'), implying it is not for formatted messages. However, it does not explicitly state when not to use it (e.g., for broadcasting) or provide alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

set_rich_menu_defaultSet Rich Menu DefaultB
Destructive

Set a rich menu as the default rich menu.

ParametersJSON Schema
NameRequiredDescriptionDefault
richMenuIdYesThe ID of the rich menu to set as default.

TDQS

B3.2/5.0
Behavior3/5

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

The 'destructiveHint' annotation already indicates this operation is destructive. The description adds no further behavioral context, such as whether the previous default is replaced or the effect on users. It does not contradict the annotation, but also does not elaborate beyond what the annotation implies.

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 sentence that efficiently states the tool's purpose. It is appropriately sized for a simple tool with one parameter, though it could be slightly more informative without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one parameter, no output schema, destructive hint), the description provides the essential purpose. However, it omits context like the effect on the previous default and any return behavior, leaving the agent with incomplete information.

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?

The input schema has 100% description coverage for the single parameter 'richMenuId', which is already self-explanatory. The tool description adds no additional semantic meaning beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool sets a rich menu as the default. The verb 'set' and resource 'default rich menu' are specific. However, it does not distinguish from sibling tools like 'cancel_rich_menu_default' or 'create_rich_menu', leaving room for ambiguity.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives (e.g., 'cancel_rich_menu_default'). It does not mention prerequisites, such as needing an existing rich menu to set, nor situations where it should not be used.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 12 tool updatesv0.0.1-local
    • First observedbroadcast_flex_message
    • First observedbroadcast_text_message
    • First observedcancel_rich_menu_default
    • First observedcreate_rich_menu
    • First observeddelete_rich_menu
    • First observedget_follower_ids
    • First observedget_message_quota
    • First observedget_profile
    • First observedget_rich_menu_list
    • First observedpush_flex_message
    • First observedpush_text_message
    • First observedset_rich_menu_default

TDQS

A3.8/5.0
Disambiguation5/5

Each tool targets a distinct action and resource: broadcast vs push, text vs flex, rich menu management (create, delete, set, cancel, list), and informational (get follower IDs, quota, profile). No two tools have overlapping purposes.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using snake_case (e.g., broadcast_flex_message, create_rich_menu, get_profile). No mixing of conventions.

Tool Count5/5

With 12 tools, the server is well-scoped, covering essential LINE Bot operations without unnecessary bloat. The count falls comfortably within the ideal 3-15 range.

Completeness4/5

The tool set covers core messaging (broadcast/push, text/flex), rich menu lifecycle (create, delete, list, default), and user/account info (followers, profile, quota). Minor gaps like replying to messages or sending media types are absent, but the server is sufficiently functional for its intended use.

Maintenance

ActivityActive
ResponsivenessUnresponsive

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    Model Context Protocol server implementation that integrates the LINE Messaging API to connect AI agents with LINE Official Accounts, enabling agents to send messages to users.
    767
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    AI-powered MCP server for managing LINE Official Accounts. Send broadcasts, push messages, check analytics, manage rich menus — all through natural language via Claude, ChatGPT, or Cursor. 10 tools included: * Account info, friend count, message quota * Broadcast, push message, multicast * Delivery stats, user profiles, follower list * Rich menu management Supports 95M+ LINE users across Jap
    10
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for LINE Messaging API — send messages, manage groups, rich menus, webhooks, and more through 25 tools.
    12
    MIT

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/line/line-bot-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server