Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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); },
  • 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);
  • Input schema for the get_message_quota tool, which is empty indicating no input parameters are required.
    {},

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/tndfame/mcp_management'

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