Server statistics
get_statsRetrieve current Rustpad server statistics: start time, documents held in memory, and documents persisted in the database.
Instructions
Reads the Rustpad server statistics: start time, number of documents currently held in memory, and the number persisted in the database (0 when the instance runs without persistence).
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_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_time | Yes | Unix seconds. | |
| database_size | Yes | Persisted pads; 0 on an instance without persistence. | |
| num_documents | Yes | Held in memory right now. | |
| start_time_iso | Yes |