Get usage metrics
get_metricsRetrieve monthly usage metrics including visits and downloads for a dataset or resource. Provide at least one identifier to get statistics sorted by most recent month.
Instructions
Get usage metrics (visits, downloads) for a dataset or resource.
Returns monthly statistics sorted by most recent first. At least one of dataset_id or resource_id must be provided. Note: Only available in production environment (not demo).
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_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| dataset_id | No | ||
| resource_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |