{
  "x402Version": 2,
  "id": 39037,
  "slug": "39037",
  "resource": "https://api.magentlab.com/api/calc/menza",
  "description": "Menza 2009 HIV-acquisition score for MSM. Four caller-assigned flags: meth or poppers in the prior 6 months (11), current or prior bacterial STI (4), ≥10 male partners in the prior year (3), unprotected anal intercourse with a positive- or unknown-status partner in the prior year (1). Max 19. Integer score only; no named strata or PrEP cutoff. Not a diagnosis, PrEP order, or test-and-treat protocol. Not HIRI-MSM or SexPro. magent does not take a sexual history.",
  "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": [
              {
                "bacterial_sti": false,
                "meth_or_poppers_6mo": false,
                "partners_ge_10_year": false,
                "uai_positive_or_unknown_year": false
              },
              {
                "bacterial_sti": false,
                "meth_or_poppers_6mo": false,
                "partners_ge_10_year": false,
                "uai_positive_or_unknown_year": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Menza TW, Hughes JP, Celum CL, Golden MR",
                  "doi": "10.1097/OLQ.0b013e3181a9cc41",
                  "id": "menza-2009",
                  "pmid": "19707108",
                  "source": "Sex Transm Dis. 2009;36(9):547-555",
                  "title": "Prediction of HIV acquisition among men who have sex with men"
                },
                "components": [
                  {
                    "factor": "meth_or_poppers_6mo",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bacterial_sti",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "partners_ge_10_year",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "uai_positive_or_unknown_year",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "menza",
                "formula_expression": "Menza = meth_or_poppers_6mo (true 11) + bacterial_sti (true 4) + partners_ge_10_year (true 3) + uai_positive_or_unknown_year (true 1); Menza 2009; max 19",
                "max_score": 19,
                "score": 0
              },
              {
                "citation": {
                  "authors": "Menza TW, Hughes JP, Celum CL, Golden MR",
                  "doi": "10.1097/OLQ.0b013e3181a9cc41",
                  "id": "menza-2009",
                  "pmid": "19707108",
                  "source": "Sex Transm Dis. 2009;36(9):547-555",
                  "title": "Prediction of HIV acquisition among men who have sex with men"
                },
                "components": [
                  {
                    "factor": "meth_or_poppers_6mo",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "bacterial_sti",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "partners_ge_10_year",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "uai_positive_or_unknown_year",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "menza",
                "formula_expression": "Menza = meth_or_poppers_6mo (true 11) + bacterial_sti (true 4) + partners_ge_10_year (true 3) + uai_positive_or_unknown_year (true 1); Menza 2009; max 19",
                "max_score": 19,
                "score": 0
              }
            ],
            "path": "/api/calc/menza"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bacterial_sti": {
                          "description": "Current diagnosis or history of bacterial STI (Menza 2009: gonorrhea, chlamydia, or syphilis) as assigned by the caller. true scores 4. magent does not take a sexual history.",
                          "type": "boolean"
                        },
                        "meth_or_poppers_6mo": {
                          "description": "Methamphetamine or inhaled nitrites (poppers) in the prior 6 months as assigned by the caller (Menza 2009). true scores 11. magent does not take a sexual history.",
                          "type": "boolean"
                        },
                        "partners_ge_10_year": {
                          "description": "Ten or more male sex partners in the prior year as assigned by the caller (Menza 2009). true scores 3. magent does not take a sexual history.",
                          "type": "boolean"
                        },
                        "uai_positive_or_unknown_year": {
                          "description": "Unprotected anal intercourse with a partner of positive or unknown HIV status in the prior year as assigned by the caller (Menza 2009). true scores 1. magent does not take a sexual history.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "meth_or_poppers_6mo",
                        "bacterial_sti",
                        "partners_ge_10_year",
                        "uai_positive_or_unknown_year"
                      ],
                      "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": [
    "menza",
    "hiv",
    "msm",
    "infection",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:31:16.372Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T08:31:16.078Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bacterial_sti": false,
                  "meth_or_poppers_6mo": false,
                  "partners_ge_10_year": false,
                  "uai_positive_or_unknown_year": false
                },
                {
                  "bacterial_sti": false,
                  "meth_or_poppers_6mo": false,
                  "partners_ge_10_year": false,
                  "uai_positive_or_unknown_year": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Menza TW, Hughes JP, Celum CL, Golden MR",
                    "doi": "10.1097/OLQ.0b013e3181a9cc41",
                    "id": "menza-2009",
                    "pmid": "19707108",
                    "source": "Sex Transm Dis. 2009;36(9):547-555",
                    "title": "Prediction of HIV acquisition among men who have sex with men"
                  },
                  "components": [
                    {
                      "factor": "meth_or_poppers_6mo",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bacterial_sti",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "partners_ge_10_year",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "uai_positive_or_unknown_year",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "menza",
                  "formula_expression": "Menza = meth_or_poppers_6mo (true 11) + bacterial_sti (true 4) + partners_ge_10_year (true 3) + uai_positive_or_unknown_year (true 1); Menza 2009; max 19",
                  "max_score": 19,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "Menza TW, Hughes JP, Celum CL, Golden MR",
                    "doi": "10.1097/OLQ.0b013e3181a9cc41",
                    "id": "menza-2009",
                    "pmid": "19707108",
                    "source": "Sex Transm Dis. 2009;36(9):547-555",
                    "title": "Prediction of HIV acquisition among men who have sex with men"
                  },
                  "components": [
                    {
                      "factor": "meth_or_poppers_6mo",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "bacterial_sti",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "partners_ge_10_year",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "uai_positive_or_unknown_year",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "menza",
                  "formula_expression": "Menza = meth_or_poppers_6mo (true 11) + bacterial_sti (true 4) + partners_ge_10_year (true 3) + uai_positive_or_unknown_year (true 1); Menza 2009; max 19",
                  "max_score": 19,
                  "score": 0
                }
              ],
              "path": "/api/calc/menza"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bacterial_sti": {
                            "description": "Current diagnosis or history of bacterial STI (Menza 2009: gonorrhea, chlamydia, or syphilis) as assigned by the caller. true scores 4. magent does not take a sexual history.",
                            "type": "boolean"
                          },
                          "meth_or_poppers_6mo": {
                            "description": "Methamphetamine or inhaled nitrites (poppers) in the prior 6 months as assigned by the caller (Menza 2009). true scores 11. magent does not take a sexual history.",
                            "type": "boolean"
                          },
                          "partners_ge_10_year": {
                            "description": "Ten or more male sex partners in the prior year as assigned by the caller (Menza 2009). true scores 3. magent does not take a sexual history.",
                            "type": "boolean"
                          },
                          "uai_positive_or_unknown_year": {
                            "description": "Unprotected anal intercourse with a partner of positive or unknown HIV status in the prior year as assigned by the caller (Menza 2009). true scores 1. magent does not take a sexual history.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "meth_or_poppers_6mo",
                          "bacterial_sti",
                          "partners_ge_10_year",
                          "uai_positive_or_unknown_year"
                        ],
                        "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"
  }
}