{
  "x402Version": 2,
  "id": 38792,
  "slug": "38792",
  "resource": "https://api.magentlab.com/api/calc/stone_score",
  "description": "Moore 2014 STONE score for ED prediction of uncomplicated ureteral stone. Table 3 integer points: sex female 0 male 2; timing gt_24h 0, 6_to_24h 1, lt_6h 3; origin black 0, nonblack 3 (caller-assigned as used in Moore 2014; magent does not assign race); nausea none 0, nausea_alone 1, vomiting 2; hematuria absent 0, present 3. Sum 0-13; 0-5 low, 6-9 moderate, 10-13 high. Not a CT order or stone diagnosis. Not S.T.O.N.E. nephrolithometry.",
  "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": [
              {
                "hematuria": true,
                "nausea": "vomiting",
                "origin": "nonblack",
                "sex": "male",
                "timing": "lt_6h"
              },
              {
                "hematuria": true,
                "nausea": "vomiting",
                "origin": "nonblack",
                "sex": "male",
                "timing": "lt_6h"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Moore CL, Bomann S, Daniels B, Luty S, Molinaro A, Singh D, Gross CP",
                  "doi": "10.1136/bmj.g2191",
                  "id": "moore-2014-stone",
                  "pmid": "24671981",
                  "source": "BMJ. 2014;348:g2191",
                  "title": "Derivation and validation of a clinical prediction rule for uncomplicated ureteral stone—the STONE score: retrospective and prospective observational cohort studies"
                },
                "components": [
                  {
                    "factor": "sex",
                    "points": 2,
                    "present": true,
                    "value": "male"
                  },
                  {
                    "factor": "timing",
                    "points": 3,
                    "present": true,
                    "value": "lt_6h"
                  },
                  {
                    "factor": "origin",
                    "points": 3,
                    "present": true,
                    "value": "nonblack"
                  },
                  {
                    "factor": "nausea",
                    "points": 2,
                    "present": true,
                    "value": "vomiting"
                  },
                  {
                    "factor": "hematuria",
                    "points": 3,
                    "present": true
                  }
                ],
                "derivation_stone_percent": 89.6,
                "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": "stone_score",
                "formula_expression": "STONE = sex (female 0, male 2) + timing (gt_24h 0, 6_to_24h 1, lt_6h 3) + origin (black 0, nonblack 3) + nausea (none 0, nausea_alone 1, vomiting 2) + hematuria (absent 0, present 3); Moore 2014 Table 3; sum 0-13; 0-5 low, 6-9 moderate, 10-13 high",
                "hematuria": true,
                "max_score": 13,
                "nausea": "vomiting",
                "origin": "nonblack",
                "probability": "high",
                "score": 13,
                "sex": "male",
                "timing": "lt_6h"
              },
              {
                "citation": {
                  "authors": "Moore CL, Bomann S, Daniels B, Luty S, Molinaro A, Singh D, Gross CP",
                  "doi": "10.1136/bmj.g2191",
                  "id": "moore-2014-stone",
                  "pmid": "24671981",
                  "source": "BMJ. 2014;348:g2191",
                  "title": "Derivation and validation of a clinical prediction rule for uncomplicated ureteral stone—the STONE score: retrospective and prospective observational cohort studies"
                },
                "components": [
                  {
                    "factor": "sex",
                    "points": 2,
                    "present": true,
                    "value": "male"
                  },
                  {
                    "factor": "timing",
                    "points": 3,
                    "present": true,
                    "value": "lt_6h"
                  },
                  {
                    "factor": "origin",
                    "points": 3,
                    "present": true,
                    "value": "nonblack"
                  },
                  {
                    "factor": "nausea",
                    "points": 2,
                    "present": true,
                    "value": "vomiting"
                  },
                  {
                    "factor": "hematuria",
                    "points": 3,
                    "present": true
                  }
                ],
                "derivation_stone_percent": 89.6,
                "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": "stone_score",
                "formula_expression": "STONE = sex (female 0, male 2) + timing (gt_24h 0, 6_to_24h 1, lt_6h 3) + origin (black 0, nonblack 3) + nausea (none 0, nausea_alone 1, vomiting 2) + hematuria (absent 0, present 3); Moore 2014 Table 3; sum 0-13; 0-5 low, 6-9 moderate, 10-13 high",
                "hematuria": true,
                "max_score": 13,
                "nausea": "vomiting",
                "origin": "nonblack",
                "probability": "high",
                "score": 13,
                "sex": "male",
                "timing": "lt_6h"
              }
            ],
            "path": "/api/calc/stone_score"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "hematuria": {
                          "description": "Caller-assigned erythrocytes / hematuria on urine dipstick (Moore 2014 Table 3). false (absent) scores 0; true (present) scores 3. Binary dipstick as in Table 3, not graded RBC counts. magent does not read a dipstick.",
                          "type": "boolean"
                        },
                        "nausea": {
                          "description": "Caller-assigned nausea (Moore 2014 Table 3). none scores 0; nausea_alone scores 1; vomiting scores 2 (Table 3 vomiting alone). If vomiting is present use vomiting even if nausea is also present. magent does not take a history.",
                          "enum": [
                            "none",
                            "nausea_alone",
                            "vomiting"
                          ],
                          "type": "string"
                        },
                        "origin": {
                          "description": "Caller-assigned origin as used in Moore 2014 Table 3 (Race: Black 0, Non-black 3). black scores 0; nonblack scores 3. magent does not assign race.",
                          "enum": [
                            "black",
                            "nonblack"
                          ],
                          "type": "string"
                        },
                        "sex": {
                          "description": "Caller-assigned sex (Moore 2014 Table 3). female scores 0; male scores 2. magent does not assign sex.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "timing": {
                          "description": "Caller-assigned duration of pain to presentation (Moore 2014 Table 3). gt_24h scores 0; 6_to_24h scores 1; lt_6h scores 3. magent does not timestamp onset.",
                          "enum": [
                            "gt_24h",
                            "6_to_24h",
                            "lt_6h"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "sex",
                        "timing",
                        "origin",
                        "nausea",
                        "hematuria"
                      ],
                      "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": [
    "stone-score",
    "ureteral-stone",
    "emergency",
    "urology",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T15:17:32.431Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T15:17:32.296Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "hematuria": true,
                  "nausea": "vomiting",
                  "origin": "nonblack",
                  "sex": "male",
                  "timing": "lt_6h"
                },
                {
                  "hematuria": true,
                  "nausea": "vomiting",
                  "origin": "nonblack",
                  "sex": "male",
                  "timing": "lt_6h"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Moore CL, Bomann S, Daniels B, Luty S, Molinaro A, Singh D, Gross CP",
                    "doi": "10.1136/bmj.g2191",
                    "id": "moore-2014-stone",
                    "pmid": "24671981",
                    "source": "BMJ. 2014;348:g2191",
                    "title": "Derivation and validation of a clinical prediction rule for uncomplicated ureteral stone—the STONE score: retrospective and prospective observational cohort studies"
                  },
                  "components": [
                    {
                      "factor": "sex",
                      "points": 2,
                      "present": true,
                      "value": "male"
                    },
                    {
                      "factor": "timing",
                      "points": 3,
                      "present": true,
                      "value": "lt_6h"
                    },
                    {
                      "factor": "origin",
                      "points": 3,
                      "present": true,
                      "value": "nonblack"
                    },
                    {
                      "factor": "nausea",
                      "points": 2,
                      "present": true,
                      "value": "vomiting"
                    },
                    {
                      "factor": "hematuria",
                      "points": 3,
                      "present": true
                    }
                  ],
                  "derivation_stone_percent": 89.6,
                  "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": "stone_score",
                  "formula_expression": "STONE = sex (female 0, male 2) + timing (gt_24h 0, 6_to_24h 1, lt_6h 3) + origin (black 0, nonblack 3) + nausea (none 0, nausea_alone 1, vomiting 2) + hematuria (absent 0, present 3); Moore 2014 Table 3; sum 0-13; 0-5 low, 6-9 moderate, 10-13 high",
                  "hematuria": true,
                  "max_score": 13,
                  "nausea": "vomiting",
                  "origin": "nonblack",
                  "probability": "high",
                  "score": 13,
                  "sex": "male",
                  "timing": "lt_6h"
                },
                {
                  "citation": {
                    "authors": "Moore CL, Bomann S, Daniels B, Luty S, Molinaro A, Singh D, Gross CP",
                    "doi": "10.1136/bmj.g2191",
                    "id": "moore-2014-stone",
                    "pmid": "24671981",
                    "source": "BMJ. 2014;348:g2191",
                    "title": "Derivation and validation of a clinical prediction rule for uncomplicated ureteral stone—the STONE score: retrospective and prospective observational cohort studies"
                  },
                  "components": [
                    {
                      "factor": "sex",
                      "points": 2,
                      "present": true,
                      "value": "male"
                    },
                    {
                      "factor": "timing",
                      "points": 3,
                      "present": true,
                      "value": "lt_6h"
                    },
                    {
                      "factor": "origin",
                      "points": 3,
                      "present": true,
                      "value": "nonblack"
                    },
                    {
                      "factor": "nausea",
                      "points": 2,
                      "present": true,
                      "value": "vomiting"
                    },
                    {
                      "factor": "hematuria",
                      "points": 3,
                      "present": true
                    }
                  ],
                  "derivation_stone_percent": 89.6,
                  "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": "stone_score",
                  "formula_expression": "STONE = sex (female 0, male 2) + timing (gt_24h 0, 6_to_24h 1, lt_6h 3) + origin (black 0, nonblack 3) + nausea (none 0, nausea_alone 1, vomiting 2) + hematuria (absent 0, present 3); Moore 2014 Table 3; sum 0-13; 0-5 low, 6-9 moderate, 10-13 high",
                  "hematuria": true,
                  "max_score": 13,
                  "nausea": "vomiting",
                  "origin": "nonblack",
                  "probability": "high",
                  "score": 13,
                  "sex": "male",
                  "timing": "lt_6h"
                }
              ],
              "path": "/api/calc/stone_score"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "hematuria": {
                            "description": "Caller-assigned erythrocytes / hematuria on urine dipstick (Moore 2014 Table 3). false (absent) scores 0; true (present) scores 3. Binary dipstick as in Table 3, not graded RBC counts. magent does not read a dipstick.",
                            "type": "boolean"
                          },
                          "nausea": {
                            "description": "Caller-assigned nausea (Moore 2014 Table 3). none scores 0; nausea_alone scores 1; vomiting scores 2 (Table 3 vomiting alone). If vomiting is present use vomiting even if nausea is also present. magent does not take a history.",
                            "enum": [
                              "none",
                              "nausea_alone",
                              "vomiting"
                            ],
                            "type": "string"
                          },
                          "origin": {
                            "description": "Caller-assigned origin as used in Moore 2014 Table 3 (Race: Black 0, Non-black 3). black scores 0; nonblack scores 3. magent does not assign race.",
                            "enum": [
                              "black",
                              "nonblack"
                            ],
                            "type": "string"
                          },
                          "sex": {
                            "description": "Caller-assigned sex (Moore 2014 Table 3). female scores 0; male scores 2. magent does not assign sex.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "timing": {
                            "description": "Caller-assigned duration of pain to presentation (Moore 2014 Table 3). gt_24h scores 0; 6_to_24h scores 1; lt_6h scores 3. magent does not timestamp onset.",
                            "enum": [
                              "gt_24h",
                              "6_to_24h",
                              "lt_6h"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "sex",
                          "timing",
                          "origin",
                          "nausea",
                          "hematuria"
                        ],
                        "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"
  }
}