Get Chat Statistics
get_chat_statisticsRetrieve usage statistics for chat prompts, with optional date filtering to track prompt usage over time.
Instructions
Get usage statistics for Magic Prompt / chat. Returns metrics on prompt usage, optionally filtered by date range.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_chat_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | End date for stats (ISO 8601) | |
| startDate | No | Start date for stats (ISO 8601) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Response payload from the Speak AI API |