Skip to main content
Glama

ShotPulled

Preview a diagnosis

diagnose_preview
Read-onlyIdempotent

Sandbox-only diagnosis, writes nothing (no verdict, no recommendation-trail entry). Two modes: pass shot_id to dry-run a LOGGED shot (optionally overriding its sensory_tags, for the "what would this read as?" preview; the shot's own bean and its age at pulled_at are used), or pass the full metric set (bean_id, grinder_id, machine_id, grind_label, dose_g, yield_g, time_s, source) for a hypothetical shot. Identical output shape to diagnose_shot, including bean_context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dose_gNoDose in grams
sourceNoGrinder position source. Affects G1 warning (raw mode only)
time_sNoExtraction time in seconds
bean_idNoCoffee bean ID (must belong to this account)
shot_idNoPreview a logged shot by ID (dry-run; ignores the metric params below)
yield_gNoYield in grams
grinder_idNoGrinder ID (must belong to this account)
machine_idNoMachine ID (must belong to this account)
grind_labelNoGrinder setting label, e.g. "1.1.3"
sensory_tagsNoSensory observations, e.g. ["sour","bitter"]. With shot_id: replaces the stored tags for this preview (omit to use stored; [] = none).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
factsYes
categoryYes
warningsYes
hypothesesYes
kb_versionYes
bean_contextYes
warning_codesYes
one_variable_onlyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / source / description
      Previous value: -"Grinder position source — affects G1 warning (raw mode only)"New value: +"Grinder position source. Affects G1 warning (raw mode only)"
    • addedOutput schema / properties / warning_codes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "category",
      -  "facts",
      -  "hypotheses",
      -  "warnings",
      -  "one_variable_only",
      -  "kb_version",
      -  "bean_context"
      -]New value: +[
      +  "category",
      +  "facts",
      +  "hypotheses",
      +  "warnings",
      +  "one_variable_only",
      +  "kb_version",
      +  "warning_codes",
      +  "bean_context"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / bean_context / properties / bag_id
      Added value: +{
      +  "type": "integer"
      +}
    • changedOutput schema / properties / bean_context / required
      Previous value: -[
      -  "bean_id",
      -  "bean_name",
      -  "roast_level",
      -  "effective_age_days",
      -  "dial_category"
      -]New value: +[
      +  "bean_id",
      +  "bag_id",
      +  "bean_name",
      +  "roast_level",
      +  "effective_age_days",
      +  "dial_category"
      +]
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources