get_count
Retrieve the count of documents for a specified DocType, with optional filters to narrow results.
Instructions
Get document count for a DocType with optional filters.
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": {
"doctype": "<doctype>"
},
"name": "get_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doctype | Yes | ERPNext DocType name | |
| filters | No | Optional JSON string of filters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |