count_books
Count the books that match a title search and filters. Use it to learn how large a result is before paging through list_books, or to compare two filters. Returns the total.
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": "count_books"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | No | a curated list to choose from | |
| year | No | latest publication year to include; books from 1950 up to it match | |
| pages | No | greatest number of pages to include | |
| rating | No | lowest average rating to include, out of five | |
| search | No | words that must all appear in the title; accents and word endings are ignored | |
| language | No | language of the edition |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes |