connacto
Back to Beer Tracking

Beer Tracking tools

Every tool in this module, with its full description, parameters, and return value. All of them require the module to be active first. See the Beer Tracking overview for how to turn it on.

CRUD

Core tools

Create, read, update, and delete entries. Every module has exactly these four.

beer_tracking_add_entry

Add a beer to the user's Beer Tracking module. Requires the module to be active — see create_database. Resolves the style against the style catalog automatically when the text is a confident match.

Parameters

NameTypeRequiredNotes
beerstringYesName of the beer.
brewerystringNoBrewery or maker of the beer.
stylestringNoBeer style, e.g. IPA, stout, lager.
style_idstringNoExact beerStyles.id from beer_tracking_search_styles, if already known. Skips automatic matching.
abv_pctnumberNoAlcohol by volume, as a percentage, e.g. 5.5 for 5.5%.
ratingnumberNoYour rating for this beer, 1-5 scale.
notesstringNoFree-form tasting notes or comments.

Returns

The created entry as JSON, including its id.

beer_tracking_list_entries

List entries in the user's active Beer Tracking module.

Parameters

NameTypeRequiredNotes
limitnumberNoMax entries to return (default 100, max 500).

Returns

Every entry in the active database, as a JSON array.

beer_tracking_update_entry

Update fields on an existing Beer Tracking entry.

Parameters

NameTypeRequiredNotes
entryIdstringYesID of the Beer Tracking entry to update.
beerstringNoName of the beer.
brewerystringNoBrewery or maker of the beer.
stylestringNoBeer style, e.g. IPA, stout, lager.
style_idstringNoExact beerStyles.id from beer_tracking_search_styles. Skips automatic matching.
abv_pctnumberNoAlcohol by volume, as a percentage, e.g. 5.5 for 5.5%.
ratingnumberNoYour rating for this beer, 1-5 scale.
notesstringNoFree-form tasting notes or comments.

Returns

The updated or deleted entry as JSON. Returns an error if entryId does not belong to an entry in the active database.

beer_tracking_delete_entry

Delete an entry from the user's active Beer Tracking module.

Parameters

NameTypeRequiredNotes
entryIdstringYesID of the Beer Tracking entry to delete.

Returns

The updated or deleted entry as JSON. Returns an error if entryId does not belong to an entry in the active database.

Specialized

Purpose-built tools

Shortcuts and queries shaped around how Beer Tracking is actually used, so your agent doesn't have to fetch every entry and filter them itself.

beer_tracking_attach_photo

Attach a photo to an existing Beer Tracking entry (replacing any photo already on it). If you have the image's raw bytes, pass photo_base64. If the user attached the image in a chat client (e.g. claude.ai), you cannot read its bytes: call this WITHOUT photo_base64 to get a one-time upload link, and give that link to the user so they can upload the photo themselves. The link expires in 30 minutes. Photos are stored privately; the returned viewPath is only viewable signed into the connacto web app as this user.

Parameters

NameTypeRequiredNotes
entryIdstringYesID of the Beer Tracking entry to attach the photo to.
photo_base64stringNoThe photo, base64-encoded (no data: URI prefix). Omit when you cannot read the image bytes — the tool then returns an upload link for the user instead.
photo_content_typeimage/jpeg | image/png | image/webp | image/heicNoMIME type of the photo, if photo_base64 is set. Defaults to image/jpeg.

Returns

JSON with a private viewPath when photo_base64 was given, or an uploadUrl to hand the user when it was not.

beer_tracking_top_rated

List the highest-rated entries (default 10) from the active Beer Tracking module, ordered by rating descending.

Parameters

NameTypeRequiredNotes
limitnumberNoMax number of entries to return. Defaults to 10.

Returns

The top-rated beers as a JSON array.

beer_tracking_stats

Return the total entry count, average rating, average ABV, and counts by style, for the user's active Beer Tracking module.

Parameters

None. Call it with an empty object.

Returns

Total entries, average rating, average ABV, and a count per style, as JSON.

beer_tracking_search_styles

Look up candidate beer styles by name or alias when the exact match for an entry is unclear. Use the returned id as style_id in beer_tracking_add_entry or beer_tracking_update_entry.

Parameters

NameTypeRequiredNotes
querystringYesFree-text style name to search for, e.g. 'ipa' or 'dry stout'.
limitnumberNoMax candidates to return (default 5, max 20).

Returns

Candidate beer styles with their category, ABV, IBU, and SRM ranges, and match score, as a JSON array.

beer_tracking_styles_explored

Count the distinct beer styles resolved against the catalog in the active Beer Tracking module, against the total catalog size, plus an honest count of entries whose style never resolved to the catalog.

Parameters

None. Call it with an empty object.

Returns

Distinct styles explored, catalog size, and the count of entries with no resolved style, as JSON.