get_twilio_usage
Retrieve Twilio usage statistics for specified date ranges to monitor call, message, or service consumption within the VoiceAI platform.
Instructions
Get Twilio usage statistics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | No | Start date (ISO format) | |
| end_date | No | End date (ISO format) | |
| limit | No | Max number of results |
Implementation Reference
- index.js:647-653 (handler)Handler logic for 'get_twilio_usage' tool: constructs query parameters for start_date, end_date, and limit, then sets the API endpoint URL to fetch Twilio usage statistics.case 'get_twilio_usage': const usageParams = new URLSearchParams(); if (args.start_date) usageParams.append('start', args.start_date); if (args.end_date) usageParams.append('end', args.end_date); if (args.limit) usageParams.append('limit', args.limit.toString()); url = `${this.baseUrl}/twilio/usage?${usageParams.toString()}`; break;
- index.js:382-394 (registration)Tool registration in listTools response, including name, description, and input schema definition.{ name: 'get_twilio_usage', description: 'Get Twilio usage statistics', inputSchema: { type: 'object', properties: { start_date: { type: 'string', description: 'Start date (ISO format)' }, end_date: { type: 'string', description: 'End date (ISO format)' }, limit: { type: 'number', description: 'Max number of results', default: 50 } }, required: [] } },
- index.js:385-393 (schema)Input schema definition for the 'get_twilio_usage' tool, specifying optional parameters for date range and result limit.inputSchema: { type: 'object', properties: { start_date: { type: 'string', description: 'Start date (ISO format)' }, end_date: { type: 'string', description: 'End date (ISO format)' }, limit: { type: 'number', description: 'Max number of results', default: 50 } }, required: [] }