search_books
Search the library catalog by title or author using case-insensitive partial matches to find books or browse available titles without knowing the ISBN.
Instructions
Search the library catalog by title or author (case-insensitive, partial matches allowed).
Use this tool whenever the user wants to find books, browse what's available on a topic, or look up a specific author/title but doesn't already know the ISBN. Return a list of matching book records (title, author, isbn, available_copies), or a plain string message if nothing matches.
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": {
"query": "<query>"
},
"name": "search_books"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A search string matched against each book's title and author fields. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |