Skip to main content
Glama

ShotPulled

Register a coffee

register_coffee

Register a coffee that is NOT yet in list_beans, together with its first bag. It does not switch a coffee in use: it becomes active only when no coffee is in use (none active, or the active one archived or with every bag finished); otherwise call set_active with its bean_id when the user starts brewing it. The active field of the reply says which. The coffee is the roaster's product (roaster, origins, variety, process, roast level, roasting type, cupping score, aromatics, roaster notes, rest window); the bag is this purchase (roast date, weight, price, state). For another bag of a coffee already on file call register_bag instead: it keeps the recipes and notes. Returns bean_id and the first bag's bag_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eanNo
urlNo
bodyNoFree text; roasters usually say low, medium or high
costNo
nameYes
notesNoThe coffee's own description: the roaster's tasting notes, the dialing approach that worked. Per bag notes go in bag_notes.
stateNo
originNo
ratingNo
acidityNoFree text; roasters usually say low, medium or high
co2e_kgNo
originsNoList of bean origin details
qr_codeNo
roasterNo
storageNo
varietyNo
archivedNo1 if archived, 0 otherwise
bean_mixNoE.g. blend details
buy_dateNoCalendar day in YYYY-MM-DD format: a day, not a timestamp
currencyNo
finishedNo1 if finished, 0 otherwise
aromaticsNo
bag_notesNo
favouriteNo1 if favourite, 0 otherwise
frozen_atNoCalendar day the bag went into the freezer, YYYY-MM-DD: a day, not a timestamp
sweetnessNoFree text; roasters usually say low, medium or high
product_idNoSet by the apps. Leave out.
roast_dateYesCalendar day in YYYY-MM-DD format: a day, not a timestamp
arabica_pctNoPercent arabica, 100 for a pure arabica; the rest robusta
attachmentsNoJSON or comma-separated list of attachments
frozen_noteNo
opened_dateNoCalendar day in YYYY-MM-DD format: a day, not a timestamp
roast_levelYes
roast_rangeNo
unfrozen_atNoCalendar day the bag came out, YYYY-MM-DD: a day, not a timestamp
bag_weight_gNoBag weight in grams
best_by_dateNoCalendar day in YYYY-MM-DD format: a day, not a timestamp
process_typeYes
roast_customNo
decaffeinatedNo1 if decaf, 0 if regular
dial_categoryNoDialing behavior class: classic = medium/traditional espresso roasts (chocolate/nut, balanced); dark = genuinely dark/roasty; the light categories cover Nordic and ultra-light styles.
roasting_typeNo
cupping_pointsNo
frozen_storageNo
lot_revision_idNoSet by the apps. Leave out.
catalog_coffee_idNoSet by the apps. Leave out.
rest_window_days_maxNo
rest_window_days_minNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
activeYes
bag_idYes
statusYes
bean_idYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / best_by_date / description
      Previous value: -"Calendar day in YYYY-MM-DD format — a day, not a timestamp"New value: +"Calendar day in YYYY-MM-DD format: a day, not a timestamp"
    • changedInput schema / properties / buy_date / description
      Previous value: -"Calendar day in YYYY-MM-DD format — a day, not a timestamp"New value: +"Calendar day in YYYY-MM-DD format: a day, not a timestamp"
    • addedInput schema / properties / catalog_coffee_id
      Added value: +{
      +  "description": "Set by the apps. Leave out.",
      +  "type": "string"
      +}
    • changedInput schema / properties / frozen_at / description
      Previous value: -"Calendar day the bag went into the freezer, YYYY-MM-DD — a day, not a timestamp"New value: +"Calendar day the bag went into the freezer, YYYY-MM-DD: a day, not a timestamp"
    • addedInput schema / properties / lot_revision_id
      Added value: +{
      +  "description": "Set by the apps. Leave out.",
      +  "type": "string"
      +}
    • changedInput schema / properties / notes / description
      Previous value: -"The coffee's own description — the roaster's tasting notes, the dialing approach that worked. Per bag notes go in bag_notes."New value: +"The coffee's own description: the roaster's tasting notes, the dialing approach that worked. Per bag notes go in bag_notes."
    • changedInput schema / properties / opened_date / description
      Previous value: -"Calendar day in YYYY-MM-DD format — a day, not a timestamp"New value: +"Calendar day in YYYY-MM-DD format: a day, not a timestamp"
    • addedInput schema / properties / product_id
      Added value: +{
      +  "description": "Set by the apps. Leave out.",
      +  "type": "string"
      +}
    • changedInput schema / properties / roast_date / description
      Previous value: -"Calendar day in YYYY-MM-DD format — a day, not a timestamp"New value: +"Calendar day in YYYY-MM-DD format: a day, not a timestamp"
    • changedInput schema / properties / unfrozen_at / description
      Previous value: -"Calendar day the bag came out, YYYY-MM-DD — a day, not a timestamp"New value: +"Calendar day the bag came out, YYYY-MM-DD: a day, not a timestamp"
  2. Changed2 schema fields changed
    • addedOutput schema / properties / active
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "status",
      -  "bean_id",
      -  "bag_id",
      -  "message"
      -]New value: +[
      +  "status",
      +  "bean_id",
      +  "bag_id",
      +  "active",
      +  "message"
      +]
  3. Changed8 schema fields changed
    • addedInput schema / properties / acidity
      Added value: +{
      +  "description": "Free text; roasters usually say low, medium or high",
      +  "type": "string"
      +}
    • addedInput schema / properties / arabica_pct
      Added value: +{
      +  "description": "Percent arabica, 100 for a pure arabica; the rest robusta",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / body
      Added value: +{
      +  "description": "Free text; roasters usually say low, medium or high",
      +  "type": "string"
      +}
    • addedInput schema / properties / notes
      Added value: +{
      +  "description": "The coffee's own description — the roaster's tasting notes, the dialing approach that worked. Per bag notes go in bag_notes.",
      +  "maxLength": 4096,
      +  "type": "string"
      +}
    • addedInput schema / properties / origins / items / properties / elevation_max_m
      Added value: +{
      +  "description": "Upper end of an elevation range, e.g. 1980 for \"1800–1980 m\"; elevation_m is the lower end",
      +  "type": "number"
      +}
    • addedInput schema / properties / sweetness
      Added value: +{
      +  "description": "Free text; roasters usually say low, medium or high",
      +  "type": "string"
      +}
    • addedOutput schema / properties / bag_id
      Added value: +{
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "status",
      -  "bean_id",
      -  "message"
      -]New value: +[
      +  "status",
      +  "bean_id",
      +  "bag_id",
      +  "message"
      +]
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources