Skip to main content
Glama

ShotPulled

Register a bag

register_bag

Register another bag of a coffee that is already in list_beans: the same roaster's product, bought again. It keeps the coffee's recipes, notes and history; only the purchase facts (roast date, weight, price, state) are new. Does not change the active coffee. Returns a bag_id: bag numbers are their own series, separate from bean numbers. For a coffee that is not in list_beans yet, call register_coffee instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eanNo
costNo
stateNoDefaults to sealed; the first log_shot against it opens it
bean_idYesThis account's own coffee number, from list_beans. Never guess one.
qr_codeNo
storageNo
buy_dateNoCalendar day in YYYY-MM-DD format: a day, not a timestamp
currencyNo
bag_notesNoNotes about THIS bag (a batch note, where it was bought). The coffee's own description lives on the coffee, in notes.
product_idNoSet by the apps. Leave out.
roast_dateYesCalendar day in YYYY-MM-DD format: a day, not a timestamp
opened_dateNoCalendar day in YYYY-MM-DD format: 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
lot_revision_idNoSet by the apps. Leave out.
catalog_coffee_idNoSet by the apps. Leave out.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bag_idYes
statusYes
bean_idYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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"
      +}
    • addedInput schema / properties / lot_revision_id
      Added value: +{
      +  "description": "Set by the apps. Leave out.",
      +  "type": "string"
      +}
    • 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"
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources