borrow_book
Check out a book for a library member using ISBN and member ID. Reduces available copies and records the borrow in the member's history.
Instructions
Borrow a copy of a book on behalf on a library member.
Use this tool when the user wants to check out / borrow a specific book and you already know the ISBN and the member's ID. This reduces the book's availability count by one and records the borrow in the member's history. If there are no copies left or the ISBN/member_id is invalid, and error is returned as a string rather than raised an exception - check the return value before telling the user the borrow succeeded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isbn | Yes | The ISBN of the book to borrow. | |
| member_id | Yes | The library member's ID (e.g. "M001") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |