Database statistics
ws_db_statsRetrieve usage statistics for a database by selecting the size (storage used) or cpu (query load) series.
Instructions
Usage statistics for one database. kind selects the series: size (storage used) or cpu (query load).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hostingId": "<hostingId>",
"databaseId": "<databaseId>",
"kind": "<kind>"
},
"name": "ws_db_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Which statistics series to return. | |
| userId | No | Account id, or the literal "self" for the authenticated account. Defaults to "self". | self |
| hostingId | Yes | Hosting id or uuid the database belongs to. | |
| databaseId | Yes | Database id, as returned by ws_db_list. |