Libib MCP by usefulapi

v1.6.1
io.usefulapi/libib Checked 3 days ago Published 1 day ago

Read patrons, managers and accounts; create and update patrons in Libib.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

libib_list_accounts List accounts

Show the Libib account behind this API key: organization name, owner, URL alias and API ID. Pro keys return one account. Libib API: GET /accounts.

libib_list_managers List managers

List every manager on the Libib account, including the owner, with each manager's role (owner, admin, manager or lender). Libib API: GET /managers.

libib_get_manager Get manager

Show one manager's name, email and role, found by the manager's email address. Libib API: GET /managers/{email}.

ParameterTypeDescription
email *stringEmail address of the manager.

libib_list_patrons List patrons

List one page of patrons (50 per page) with their barcode, name, email, tags, patron ID, address and freeze status. The result gives total and pages; ask for the next page to read more. Libib API: GET /patrons?page=.

ParameterTypeDescription
pageintegerPage number (50 patrons per page, default 1).

libib_get_patron Get patron

Show one patron's full record, found by barcode or email address. Libib API: GET /patrons/{id}.

ParameterTypeDescription
id *stringThe patron's barcode or email address.

libib_create_patron Create patron

Create a new patron on the Libib account. first_name and last_name are required. Libib assigns the barcode itself. The patron password is not set here. Libib API: POST /patrons.

ParameterTypeDescription
first_name *stringPatron's first name (required).
last_name *stringPatron's last name (required).
address1stringStreet address line 1.
address2stringStreet address line 2.
citystringCity.
countrystring2-character country code.
emailstringPatron's email. Must be unique on the account.
notification_emailsstringUp to 3 comma-separated emails for notifications.
patron_idstringCustom ID (not required to be unique).
phonestringContact phone number.
statestringState (2-character abbreviation for US addresses).
tagsstringComma-separated patron tags.
zipstringPostal code.

libib_update_patron Update patron

Change fields of one existing patron, found by barcode or email. Omit a field to leave it unchanged. An empty string removes that value from the patron. The patron password and barcode are not changed here. Libib API: PATCH /patrons/{id}.

ParameterTypeDescription
id *stringThe patron's barcode or email address.
address1stringStreet address line 1.
address2stringStreet address line 2.
citystringCity.
country2-character country code. An empty string clears the country.
emailstringPatron's email. Must be unique on the account.
first_namestringPatron's first name.
last_namestringPatron's last name.
notification_emailsstringUp to 3 comma-separated emails for notifications.
patron_idstringCustom ID (not required to be unique).
phonestringContact phone number.
statestringState (2-character abbreviation for US addresses).
tagsstringComma-separated patron tags.
zipstringPostal code.