get_message_quota
Check monthly message quota and current usage for LINE Official Accounts to monitor API limits and manage messaging capacity effectively.
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:19-28 (handler)The core handler function for the 'get_message_quota' tool. It retrieves the message quota and consumption from the LINE Messaging API client and formats them into a success response.async () => { const messageQuotaResponse = await this.client.getMessageQuota(); const messageQuotaConsumptionResponse = await this.client.getMessageQuotaConsumption(); const response = { limited: messageQuotaResponse.value, totalUsage: messageQuotaConsumptionResponse.totalUsage, }; return createSuccessResponse(response); },
- src/tools/getMessageQuota.ts:15-29 (registration)Registers the 'get_message_quota' MCP tool on the server, including name, description, empty input schema, and inline handler function.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); }, );
- src/index.ts:66-66 (registration)Top-level registration: instantiates the GetMessageQuota class with the LINE messaging API client and registers it to the MCP server.new GetMessageQuota(messagingApiClient).register(server);
- src/tools/getMessageQuota.ts:18-18 (schema)Input schema for the get_message_quota tool, which is empty indicating no input parameters are required.{},