get_twilio_usage
Retrieve Twilio usage statistics by specifying start and end dates and a result limit. Access detailed usage data for analysis and optimization.
Instructions
Get Twilio usage statistics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date (ISO format) | |
| limit | No | Max number of results | |
| start_date | No | Start date (ISO format) |
Implementation Reference
- index.js:647-653 (handler)The handler case for 'get_twilio_usage' tool. It constructs query parameters from input arguments (start_date, end_date, limit) and sets the API endpoint URL to fetch Twilio usage data from the backend.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 the list of available tools, 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 defining parameters for start_date, end_date, and limit for the get_twilio_usage tool.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: [] }