Skip to main content
Glama

get_message_history

Retrieve LINE message history with filters for date range, direction, friend, and unread status. Supports pagination with cursor.

Instructions

友だちとのLINEメッセージ履歴(受信・送信・システムメッセージ)を検索・取得する。既定では送信日時の新しい順(sort_order=desc)に返る。特定の友だちとのやり取りだけを見たい場合はfriend_id を指定する。期間で絞り込むには sent_at_from / sent_at_to(ISO 8601形式)を使う。1回のリクエストで最大1000件(既定50件)。続きを取るには前回レスポンスの next_cursor を cursor に渡す(このエンドポイントは前ページへの遡り取得には対応していない)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo取得件数(最大1000、既定50)
cursorNo前回レスポンスの next_cursor を渡すとその続きから取得する
directionNoメッセージ方向で絞り込む(inbound=友だちからの受信 / outbound=こちらからの送信 / system=システム通知)
friend_idNoこの友だちとのメッセージのみに絞り込む
sent_at_toNo送信日時の範囲終了(ISO 8601形式)
sort_orderNo送信日時での並び順(既定 desc=新しい順)desc
sent_at_fromNo送信日時の範囲開始(ISO 8601形式、例: 2026-06-01T00:00:00+09:00)
is_unconfirmedNotrue の場合、未読メッセージのみに絞り込む
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral disclosure. It transparently explains ordering, filtering, pagination behavior, and the maximum limit. No contradictions or omissions are present.

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 concise paragraph that front-loads the purpose and then adds essential details. Each sentence adds value, and there is no redundancy. It is appropriately sized for the tool's complexity.

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 tool has 8 parameters, no required fields, and no output schema, the description covers searching, filtering, sorting, and pagination adequately. It explains how to retrieve subsequent pages and notes the limitation. Missing aspects like error handling are minor for this type of tool.

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%, so the baseline is 3. The description adds some extra context beyond the schema (e.g., default max 1000 items, pagination limitation), but the parameter descriptions in the schema are already quite detailed. The contribution is marginal.

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 (search and retrieve) and the resource (LINE message history with friends). It distinguishes itself from sibling tools, which are about tags and friend management, not message history.

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 provides detailed usage guidance: default sort order, filtering by friend_id and date range, max items per request, and pagination with cursor (including the limitation of no backward pagination). While it does not explicitly state when not to use this tool, the context is clear given the sibling tools available.

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/mediiiiium/mcp-jp'

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