get_message_quota
Check monthly message quota and current usage for LINE Official Accounts to monitor API limits and manage messaging capacity.
Instructions
Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/getMessageQuota.ts:14-29 (handler)The register method defines and registers the "get_message_quota" tool with the MCP server, including its handler logic that calls the MessagingApiClient to fetch quota and consumption data.
register(server: McpServer) { server.tool( "get_message_quota", "Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.", {}, async () => { const messageQuotaResponse = await this.client.getMessageQuota(); const messageQuotaConsumptionResponse = await this.client.getMessageQuotaConsumption(); const response = { limited: messageQuotaResponse.value, totalUsage: messageQuotaConsumptionResponse.totalUsage, }; return createSuccessResponse(response); }, );