{
  "x402Version": 2,
  "id": 39554,
  "slug": "39554",
  "resource": "https://api.magentlab.com/api/calc/mets_ir",
  "description": "Bello-Chavolla 2018 METS-IR: ln(2×glucose_mg_dl + triglycerides_mg_dl)×BMI / ln(HDL_mg_dl), natural log, two decimals. Supply glucose, triglycerides, and HDL each as exactly one of mg/dL or mmol/L (glucose ×18, TG ×88.57, HDL ×38.67). BMI is caller-supplied (10–80). highest_quartile_t2d is true only when METS-IR > 50.39 (derivation highest T2D-risk quartile). Not a diabetes diagnosis, not HOMA-IR/HOMA2, and not a treatment threshold.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "bmi_kg_m2": 25,
                "glucose_mg_dl": 90,
                "glucose_mmol_l": 5,
                "hdl_mg_dl": 50,
                "hdl_mmol_l": 1.29,
                "triglycerides_mg_dl": 100,
                "triglycerides_mmol_l": 1.13
              },
              {
                "bmi_kg_m2": 25,
                "glucose_mg_dl": 90,
                "glucose_mmol_l": 5,
                "hdl_mg_dl": 50,
                "hdl_mmol_l": 1.29,
                "triglycerides_mg_dl": 100,
                "triglycerides_mmol_l": 1.13
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "bmi_kg_m2": 25,
                "citation": {
                  "authors": "Bello-Chavolla OY, Almeda-Valdes P, Gomez-Velasco D, Viveros-Ruiz T, Cruz-Bautista I, Romo-Romo A, Sánchez-Lázaro D, Meza-Oviedo D, Vargas-Vázquez A, Campos OA, Sevilla-González MDR, Martagón AJ, Hernández LM, Mehta R, Caballeros-Barragán CR, Aguilar-Salinas CA",
                  "doi": "10.1530/eje-17-0883",
                  "id": "bello-chavolla-2018",
                  "pmid": "29535168",
                  "source": "Eur J Endocrinol. 2018;178(5):533-544",
                  "title": "METS-IR, a novel score to evaluate insulin sensitivity, is predictive of visceral adiposity and incident type 2 diabetes"
                },
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mets_ir",
                "formula_expression": "mets_ir = ln(2 * glucose_mg_dl + triglycerides_mg_dl) * bmi_kg_m2 / ln(hdl_mg_dl)",
                "glucose_mg_dl": 90,
                "hdl_mg_dl": 50,
                "highest_quartile_t2d": false,
                "mets_ir": 36.01,
                "triglycerides_mg_dl": 100
              },
              {
                "bmi_kg_m2": 25,
                "citation": {
                  "authors": "Bello-Chavolla OY, Almeda-Valdes P, Gomez-Velasco D, Viveros-Ruiz T, Cruz-Bautista I, Romo-Romo A, Sánchez-Lázaro D, Meza-Oviedo D, Vargas-Vázquez A, Campos OA, Sevilla-González MDR, Martagón AJ, Hernández LM, Mehta R, Caballeros-Barragán CR, Aguilar-Salinas CA",
                  "doi": "10.1530/eje-17-0883",
                  "id": "bello-chavolla-2018",
                  "pmid": "29535168",
                  "source": "Eur J Endocrinol. 2018;178(5):533-544",
                  "title": "METS-IR, a novel score to evaluate insulin sensitivity, is predictive of visceral adiposity and incident type 2 diabetes"
                },
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "mets_ir",
                "formula_expression": "mets_ir = ln(2 * glucose_mg_dl + triglycerides_mg_dl) * bmi_kg_m2 / ln(hdl_mg_dl)",
                "glucose_mg_dl": 90,
                "hdl_mg_dl": 50,
                "highest_quartile_t2d": false,
                "mets_ir": 36.01,
                "triglycerides_mg_dl": 100
              }
            ],
            "path": "/api/calc/mets_ir"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bmi_kg_m2": {
                          "description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI.",
                          "type": "number"
                        },
                        "glucose_mg_dl": {
                          "description": "Fasting plasma glucose in mg/dL (50-1000). Provide this or glucose_mmol_l, not both.",
                          "type": "number"
                        },
                        "glucose_mmol_l": {
                          "description": "Fasting plasma glucose in mmol/L (2.8-55.5). Converted as mg/dL = mmol/L * 18. Provide this or glucose_mg_dl, not both.",
                          "type": "number"
                        },
                        "hdl_mg_dl": {
                          "description": "HDL cholesterol in mg/dL (5-150). Provide this or hdl_mmol_l, not both. Used in the natural-log term.",
                          "type": "number"
                        },
                        "hdl_mmol_l": {
                          "description": "HDL cholesterol in mmol/L (0.1-3.9). Converted as mg/dL = mmol/L * 38.67. Provide this or hdl_mg_dl, not both.",
                          "type": "number"
                        },
                        "triglycerides_mg_dl": {
                          "description": "Triglycerides in mg/dL (10-2000). Provide this or triglycerides_mmol_l, not both.",
                          "type": "number"
                        },
                        "triglycerides_mmol_l": {
                          "description": "Triglycerides in mmol/L (0.11-22.6). Converted as mg/dL = mmol/L * 88.57. Provide this or triglycerides_mg_dl, not both.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "bmi_kg_m2"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "mets-ir",
    "insulin-sensitivity",
    "triglycerides",
    "glucose",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:04:54.941Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:04:54.815Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bmi_kg_m2": 25,
                  "glucose_mg_dl": 90,
                  "glucose_mmol_l": 5,
                  "hdl_mg_dl": 50,
                  "hdl_mmol_l": 1.29,
                  "triglycerides_mg_dl": 100,
                  "triglycerides_mmol_l": 1.13
                },
                {
                  "bmi_kg_m2": 25,
                  "glucose_mg_dl": 90,
                  "glucose_mmol_l": 5,
                  "hdl_mg_dl": 50,
                  "hdl_mmol_l": 1.29,
                  "triglycerides_mg_dl": 100,
                  "triglycerides_mmol_l": 1.13
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "bmi_kg_m2": 25,
                  "citation": {
                    "authors": "Bello-Chavolla OY, Almeda-Valdes P, Gomez-Velasco D, Viveros-Ruiz T, Cruz-Bautista I, Romo-Romo A, Sánchez-Lázaro D, Meza-Oviedo D, Vargas-Vázquez A, Campos OA, Sevilla-González MDR, Martagón AJ, Hernández LM, Mehta R, Caballeros-Barragán CR, Aguilar-Salinas CA",
                    "doi": "10.1530/eje-17-0883",
                    "id": "bello-chavolla-2018",
                    "pmid": "29535168",
                    "source": "Eur J Endocrinol. 2018;178(5):533-544",
                    "title": "METS-IR, a novel score to evaluate insulin sensitivity, is predictive of visceral adiposity and incident type 2 diabetes"
                  },
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mets_ir",
                  "formula_expression": "mets_ir = ln(2 * glucose_mg_dl + triglycerides_mg_dl) * bmi_kg_m2 / ln(hdl_mg_dl)",
                  "glucose_mg_dl": 90,
                  "hdl_mg_dl": 50,
                  "highest_quartile_t2d": false,
                  "mets_ir": 36.01,
                  "triglycerides_mg_dl": 100
                },
                {
                  "bmi_kg_m2": 25,
                  "citation": {
                    "authors": "Bello-Chavolla OY, Almeda-Valdes P, Gomez-Velasco D, Viveros-Ruiz T, Cruz-Bautista I, Romo-Romo A, Sánchez-Lázaro D, Meza-Oviedo D, Vargas-Vázquez A, Campos OA, Sevilla-González MDR, Martagón AJ, Hernández LM, Mehta R, Caballeros-Barragán CR, Aguilar-Salinas CA",
                    "doi": "10.1530/eje-17-0883",
                    "id": "bello-chavolla-2018",
                    "pmid": "29535168",
                    "source": "Eur J Endocrinol. 2018;178(5):533-544",
                    "title": "METS-IR, a novel score to evaluate insulin sensitivity, is predictive of visceral adiposity and incident type 2 diabetes"
                  },
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "mets_ir",
                  "formula_expression": "mets_ir = ln(2 * glucose_mg_dl + triglycerides_mg_dl) * bmi_kg_m2 / ln(hdl_mg_dl)",
                  "glucose_mg_dl": 90,
                  "hdl_mg_dl": 50,
                  "highest_quartile_t2d": false,
                  "mets_ir": 36.01,
                  "triglycerides_mg_dl": 100
                }
              ],
              "path": "/api/calc/mets_ir"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bmi_kg_m2": {
                            "description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI.",
                            "type": "number"
                          },
                          "glucose_mg_dl": {
                            "description": "Fasting plasma glucose in mg/dL (50-1000). Provide this or glucose_mmol_l, not both.",
                            "type": "number"
                          },
                          "glucose_mmol_l": {
                            "description": "Fasting plasma glucose in mmol/L (2.8-55.5). Converted as mg/dL = mmol/L * 18. Provide this or glucose_mg_dl, not both.",
                            "type": "number"
                          },
                          "hdl_mg_dl": {
                            "description": "HDL cholesterol in mg/dL (5-150). Provide this or hdl_mmol_l, not both. Used in the natural-log term.",
                            "type": "number"
                          },
                          "hdl_mmol_l": {
                            "description": "HDL cholesterol in mmol/L (0.1-3.9). Converted as mg/dL = mmol/L * 38.67. Provide this or hdl_mg_dl, not both.",
                            "type": "number"
                          },
                          "triglycerides_mg_dl": {
                            "description": "Triglycerides in mg/dL (10-2000). Provide this or triglycerides_mmol_l, not both.",
                            "type": "number"
                          },
                          "triglycerides_mmol_l": {
                            "description": "Triglycerides in mmol/L (0.11-22.6). Converted as mg/dL = mmol/L * 88.57. Provide this or triglycerides_mg_dl, not both.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "bmi_kg_m2"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}