{"uid":"cap_bw3vf0__0VPN4UGT5p5wv","slug":"krebs-2009-peg-score-calculator-119a0c48","name":"Krebs 2009 PEG Score Calculator","description":"Krebs 2009 PEG from three caller-assigned integers 0-10 (pain_average, enjoyment_of_life, general_activity). Unweighted mean (range 0-10, one decimal). magent does not interview the patient. Krebs 2009 published no diagnostic cutoff; magent does not invent mild, moderate, or severe bands. Not a pain diagnosis, opioid order, or the full Brief Pain Inventory.","url":"https://api.magentlab.com/api/calc/peg","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["pain_average","enjoyment_of_life","general_activity"],"properties":{"pain_average":{"type":"integer","description":"Caller-assigned Krebs 2009 PEG item (integer 0-10): \"What number best describes your pain on average in the past week?\" 0 = no pain, 10 = pain as bad as you can imagine. magent does not interview the patient."},"general_activity":{"type":"integer","description":"Caller-assigned Krebs 2009 PEG interference with general activity in the past week (integer 0-10). 0 = does not interfere, 10 = completely interferes. magent does not interview the patient."},"enjoyment_of_life":{"type":"integer","description":"Caller-assigned Krebs 2009 PEG interference with enjoyment of life in the past week (integer 0-10). 0 = does not interfere, 10 = completely interferes. magent does not interview the patient."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Hu7rEQ1yMb81WUkN-cyv3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the unweighted mean PEG score (0–10, one decimal) from three caller-supplied integer ratings for pain average, enjoyment-of-life interference, and general-activity interference, per Krebs 2009.","exampleAgentPrompt":"Calculate the Krebs 2009 PEG score for a patient whose pain average last week was 6, enjoyment-of-life interference was 5, and general-activity interference was 7.","exampleUseCases":[{"title":"Chronic pain monitoring in EHR workflow","prompt":"My patient rated their average pain at 7, enjoyment of life interference at 6, and general activity interference at 8 over the past week — can you compute their Krebs 2009 PEG score for me?"},{"title":"Research data aggregation pipeline","prompt":"I have three PEG item scores collected from a study participant: pain average 4, enjoyment of life 3, general activity 5 — compute the unweighted PEG composite so I can log it in the dataset."},{"title":"Remote patient follow-up check-in","prompt":"A telehealth patient reported pain average 9, enjoyment interference 8, activity interference 9 this week. What's their PEG score?"}],"resultDescription":"Returns a single numeric PEG score — the unweighted arithmetic mean of pain_average, enjoyment_of_life, and general_activity — expressed to one decimal place on a 0–10 scale. No diagnostic bands, severity labels, or clinical recommendations are included.","failureModes":["Non-integer or out-of-range values (outside 0–10) will cause a validation error","Missing any of the three required query parameters returns an error","HTTP 402 payment required if x402 payment header is absent or insufficient","Caller-supplied values that do not reflect actual patient responses will silently produce a mathematically correct but clinically meaningless score"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic computation of the Krebs 2009 PEG composite from three already-collected integer ratings and do not need severity banding, diagnostic interpretation, or the full Brief Pain Inventory. Prefer it over manual arithmetic when integrating PEG scoring into automated clinical workflows or research pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:31:37.342Z","isFirstParty":false}