{
  "x402Version": 2,
  "id": 38779,
  "slug": "38779",
  "resource": "https://api.magentlab.com/api/calc/tokuhashi",
  "description": "Revised Tokuhashi 2005 (0-15). KPS poor/moderate/good 0/1/2. Extraspinal ge_3/one_or_two/none 0/1/2. Vertebral ge_3/two/one 0/1/2. Visceral unremovable/removable/none 0/1/2. Primary lung osteosarcoma stomach bladder esophagus pancreas 0; liver gallbladder unidentified 1; others 2; kidney uterus 3; rectum 4; thyroid prostate breast carcinoid 5. Palsy complete/incomplete/none 0/1/2. Bands 0-8/9-11/12-15. Not an operative order. Not 1990. Not SINS. Does not read imaging. Not a medical device.",
  "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": [
              {
                "extraspinal": "ge_3",
                "kps": "poor",
                "palsy": "complete",
                "primary": "lung",
                "vertebral": "ge_3",
                "visceral": "unremovable"
              },
              {
                "extraspinal": "ge_3",
                "kps": "poor",
                "palsy": "complete",
                "primary": "lung",
                "vertebral": "ge_3",
                "visceral": "unremovable"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Tokuhashi Y, Matsuzaki H, Oda H, Oshima M, Ryu J",
                  "doi": "10.1097/01.brs.0000180401.06919.a5",
                  "id": "tokuhashi-2005",
                  "pmid": "16205345",
                  "source": "Spine (Phila Pa 1976). 2005;30(19):2186-2191",
                  "title": "A revised scoring system for preoperative evaluation of metastatic spine tumor prognosis."
                },
                "components": [
                  {
                    "factor": "kps",
                    "points": 0,
                    "present": true,
                    "value": "poor"
                  },
                  {
                    "factor": "extraspinal",
                    "points": 0,
                    "present": true,
                    "value": "ge_3"
                  },
                  {
                    "factor": "vertebral",
                    "points": 0,
                    "present": true,
                    "value": "ge_3"
                  },
                  {
                    "factor": "visceral",
                    "points": 0,
                    "present": true,
                    "value": "unremovable"
                  },
                  {
                    "factor": "primary",
                    "points": 0,
                    "present": true,
                    "value": "lung"
                  },
                  {
                    "factor": "palsy",
                    "points": 0,
                    "present": true,
                    "value": "complete"
                  }
                ],
                "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.",
                "extraspinal": "ge_3",
                "formula": "tokuhashi",
                "formula_expression": "Tokuhashi = kps (poor 0, moderate 1, good 2) + extraspinal (ge_3 0, one_or_two 1, none 2) + vertebral (ge_3 0, two 1, one 2) + visceral (unremovable 0, removable 1, none 2) + primary (lung osteosarcoma stomach bladder esophagus pancreas 0; liver gallbladder unidentified 1; others 2; kidney uterus 3; rectum 4; thyroid prostate breast carcinoid 5) + palsy (complete 0, incomplete 1, none 2); Tokuhashi 2005 revised; max 15; bands 0-8 (<6 months), 9-11 (>=6 months), 12-15 (>=12 months)",
                "kps": "poor",
                "max_score": 15,
                "palsy": "complete",
                "primary": "lung",
                "score": 0,
                "tokuhashi_band": "0-8",
                "vertebral": "ge_3",
                "visceral": "unremovable"
              },
              {
                "citation": {
                  "authors": "Tokuhashi Y, Matsuzaki H, Oda H, Oshima M, Ryu J",
                  "doi": "10.1097/01.brs.0000180401.06919.a5",
                  "id": "tokuhashi-2005",
                  "pmid": "16205345",
                  "source": "Spine (Phila Pa 1976). 2005;30(19):2186-2191",
                  "title": "A revised scoring system for preoperative evaluation of metastatic spine tumor prognosis."
                },
                "components": [
                  {
                    "factor": "kps",
                    "points": 0,
                    "present": true,
                    "value": "poor"
                  },
                  {
                    "factor": "extraspinal",
                    "points": 0,
                    "present": true,
                    "value": "ge_3"
                  },
                  {
                    "factor": "vertebral",
                    "points": 0,
                    "present": true,
                    "value": "ge_3"
                  },
                  {
                    "factor": "visceral",
                    "points": 0,
                    "present": true,
                    "value": "unremovable"
                  },
                  {
                    "factor": "primary",
                    "points": 0,
                    "present": true,
                    "value": "lung"
                  },
                  {
                    "factor": "palsy",
                    "points": 0,
                    "present": true,
                    "value": "complete"
                  }
                ],
                "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.",
                "extraspinal": "ge_3",
                "formula": "tokuhashi",
                "formula_expression": "Tokuhashi = kps (poor 0, moderate 1, good 2) + extraspinal (ge_3 0, one_or_two 1, none 2) + vertebral (ge_3 0, two 1, one 2) + visceral (unremovable 0, removable 1, none 2) + primary (lung osteosarcoma stomach bladder esophagus pancreas 0; liver gallbladder unidentified 1; others 2; kidney uterus 3; rectum 4; thyroid prostate breast carcinoid 5) + palsy (complete 0, incomplete 1, none 2); Tokuhashi 2005 revised; max 15; bands 0-8 (<6 months), 9-11 (>=6 months), 12-15 (>=12 months)",
                "kps": "poor",
                "max_score": 15,
                "palsy": "complete",
                "primary": "lung",
                "score": 0,
                "tokuhashi_band": "0-8",
                "vertebral": "ge_3",
                "visceral": "unremovable"
              }
            ],
            "path": "/api/calc/tokuhashi"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "extraspinal": {
                          "description": "Caller-assigned number of extraspinal bone metastases (Tokuhashi 2005). ge_3 (≥3) scores 0; one_or_two scores 1; none scores 2. magent does not read imaging.",
                          "enum": [
                            "ge_3",
                            "one_or_two",
                            "none"
                          ],
                          "type": "string"
                        },
                        "kps": {
                          "description": "Caller-assigned Karnofsky performance status band (Tokuhashi 2005). poor (KPS 10–40%) scores 0; moderate (50–70%) scores 1; good (80–100%) scores 2. magent does not observe the patient.",
                          "enum": [
                            "poor",
                            "moderate",
                            "good"
                          ],
                          "type": "string"
                        },
                        "palsy": {
                          "description": "Caller-assigned spinal cord palsy (Tokuhashi 2005). complete (Frankel A/B) scores 0; incomplete (Frankel C/D) scores 1; none (Frankel E) scores 2. magent does not examine the patient.",
                          "enum": [
                            "complete",
                            "incomplete",
                            "none"
                          ],
                          "type": "string"
                        },
                        "primary": {
                          "description": "Caller-assigned Tokuhashi 2005 primary site group. lung, osteosarcoma, stomach, bladder, esophagus, pancreas score 0; liver, gallbladder, unidentified score 1; others scores 2; kidney, uterus score 3; rectum scores 4; thyroid, prostate, breast, carcinoid score 5. others is the published catch-all token. magent does not infer histology.",
                          "enum": [
                            "lung",
                            "osteosarcoma",
                            "stomach",
                            "bladder",
                            "esophagus",
                            "pancreas",
                            "liver",
                            "gallbladder",
                            "unidentified",
                            "others",
                            "kidney",
                            "uterus",
                            "rectum",
                            "thyroid",
                            "prostate",
                            "breast",
                            "carcinoid"
                          ],
                          "type": "string"
                        },
                        "vertebral": {
                          "description": "Caller-assigned number of vertebral metastases (Tokuhashi 2005). ge_3 (≥3) scores 0; two scores 1; one scores 2. There is no vertebral none token. magent does not read imaging.",
                          "enum": [
                            "ge_3",
                            "two",
                            "one"
                          ],
                          "type": "string"
                        },
                        "visceral": {
                          "description": "Caller-assigned metastases to major internal organs (Tokuhashi 2005). unremovable scores 0; removable scores 1; none scores 2. magent does not read imaging.",
                          "enum": [
                            "unremovable",
                            "removable",
                            "none"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "kps",
                        "extraspinal",
                        "vertebral",
                        "visceral",
                        "primary",
                        "palsy"
                      ],
                      "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": [
    "tokuhashi",
    "spine",
    "oncology",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T15:42:05.788Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T15:42:05.636Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "extraspinal": "ge_3",
                  "kps": "poor",
                  "palsy": "complete",
                  "primary": "lung",
                  "vertebral": "ge_3",
                  "visceral": "unremovable"
                },
                {
                  "extraspinal": "ge_3",
                  "kps": "poor",
                  "palsy": "complete",
                  "primary": "lung",
                  "vertebral": "ge_3",
                  "visceral": "unremovable"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Tokuhashi Y, Matsuzaki H, Oda H, Oshima M, Ryu J",
                    "doi": "10.1097/01.brs.0000180401.06919.a5",
                    "id": "tokuhashi-2005",
                    "pmid": "16205345",
                    "source": "Spine (Phila Pa 1976). 2005;30(19):2186-2191",
                    "title": "A revised scoring system for preoperative evaluation of metastatic spine tumor prognosis."
                  },
                  "components": [
                    {
                      "factor": "kps",
                      "points": 0,
                      "present": true,
                      "value": "poor"
                    },
                    {
                      "factor": "extraspinal",
                      "points": 0,
                      "present": true,
                      "value": "ge_3"
                    },
                    {
                      "factor": "vertebral",
                      "points": 0,
                      "present": true,
                      "value": "ge_3"
                    },
                    {
                      "factor": "visceral",
                      "points": 0,
                      "present": true,
                      "value": "unremovable"
                    },
                    {
                      "factor": "primary",
                      "points": 0,
                      "present": true,
                      "value": "lung"
                    },
                    {
                      "factor": "palsy",
                      "points": 0,
                      "present": true,
                      "value": "complete"
                    }
                  ],
                  "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.",
                  "extraspinal": "ge_3",
                  "formula": "tokuhashi",
                  "formula_expression": "Tokuhashi = kps (poor 0, moderate 1, good 2) + extraspinal (ge_3 0, one_or_two 1, none 2) + vertebral (ge_3 0, two 1, one 2) + visceral (unremovable 0, removable 1, none 2) + primary (lung osteosarcoma stomach bladder esophagus pancreas 0; liver gallbladder unidentified 1; others 2; kidney uterus 3; rectum 4; thyroid prostate breast carcinoid 5) + palsy (complete 0, incomplete 1, none 2); Tokuhashi 2005 revised; max 15; bands 0-8 (<6 months), 9-11 (>=6 months), 12-15 (>=12 months)",
                  "kps": "poor",
                  "max_score": 15,
                  "palsy": "complete",
                  "primary": "lung",
                  "score": 0,
                  "tokuhashi_band": "0-8",
                  "vertebral": "ge_3",
                  "visceral": "unremovable"
                },
                {
                  "citation": {
                    "authors": "Tokuhashi Y, Matsuzaki H, Oda H, Oshima M, Ryu J",
                    "doi": "10.1097/01.brs.0000180401.06919.a5",
                    "id": "tokuhashi-2005",
                    "pmid": "16205345",
                    "source": "Spine (Phila Pa 1976). 2005;30(19):2186-2191",
                    "title": "A revised scoring system for preoperative evaluation of metastatic spine tumor prognosis."
                  },
                  "components": [
                    {
                      "factor": "kps",
                      "points": 0,
                      "present": true,
                      "value": "poor"
                    },
                    {
                      "factor": "extraspinal",
                      "points": 0,
                      "present": true,
                      "value": "ge_3"
                    },
                    {
                      "factor": "vertebral",
                      "points": 0,
                      "present": true,
                      "value": "ge_3"
                    },
                    {
                      "factor": "visceral",
                      "points": 0,
                      "present": true,
                      "value": "unremovable"
                    },
                    {
                      "factor": "primary",
                      "points": 0,
                      "present": true,
                      "value": "lung"
                    },
                    {
                      "factor": "palsy",
                      "points": 0,
                      "present": true,
                      "value": "complete"
                    }
                  ],
                  "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.",
                  "extraspinal": "ge_3",
                  "formula": "tokuhashi",
                  "formula_expression": "Tokuhashi = kps (poor 0, moderate 1, good 2) + extraspinal (ge_3 0, one_or_two 1, none 2) + vertebral (ge_3 0, two 1, one 2) + visceral (unremovable 0, removable 1, none 2) + primary (lung osteosarcoma stomach bladder esophagus pancreas 0; liver gallbladder unidentified 1; others 2; kidney uterus 3; rectum 4; thyroid prostate breast carcinoid 5) + palsy (complete 0, incomplete 1, none 2); Tokuhashi 2005 revised; max 15; bands 0-8 (<6 months), 9-11 (>=6 months), 12-15 (>=12 months)",
                  "kps": "poor",
                  "max_score": 15,
                  "palsy": "complete",
                  "primary": "lung",
                  "score": 0,
                  "tokuhashi_band": "0-8",
                  "vertebral": "ge_3",
                  "visceral": "unremovable"
                }
              ],
              "path": "/api/calc/tokuhashi"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "extraspinal": {
                            "description": "Caller-assigned number of extraspinal bone metastases (Tokuhashi 2005). ge_3 (≥3) scores 0; one_or_two scores 1; none scores 2. magent does not read imaging.",
                            "enum": [
                              "ge_3",
                              "one_or_two",
                              "none"
                            ],
                            "type": "string"
                          },
                          "kps": {
                            "description": "Caller-assigned Karnofsky performance status band (Tokuhashi 2005). poor (KPS 10–40%) scores 0; moderate (50–70%) scores 1; good (80–100%) scores 2. magent does not observe the patient.",
                            "enum": [
                              "poor",
                              "moderate",
                              "good"
                            ],
                            "type": "string"
                          },
                          "palsy": {
                            "description": "Caller-assigned spinal cord palsy (Tokuhashi 2005). complete (Frankel A/B) scores 0; incomplete (Frankel C/D) scores 1; none (Frankel E) scores 2. magent does not examine the patient.",
                            "enum": [
                              "complete",
                              "incomplete",
                              "none"
                            ],
                            "type": "string"
                          },
                          "primary": {
                            "description": "Caller-assigned Tokuhashi 2005 primary site group. lung, osteosarcoma, stomach, bladder, esophagus, pancreas score 0; liver, gallbladder, unidentified score 1; others scores 2; kidney, uterus score 3; rectum scores 4; thyroid, prostate, breast, carcinoid score 5. others is the published catch-all token. magent does not infer histology.",
                            "enum": [
                              "lung",
                              "osteosarcoma",
                              "stomach",
                              "bladder",
                              "esophagus",
                              "pancreas",
                              "liver",
                              "gallbladder",
                              "unidentified",
                              "others",
                              "kidney",
                              "uterus",
                              "rectum",
                              "thyroid",
                              "prostate",
                              "breast",
                              "carcinoid"
                            ],
                            "type": "string"
                          },
                          "vertebral": {
                            "description": "Caller-assigned number of vertebral metastases (Tokuhashi 2005). ge_3 (≥3) scores 0; two scores 1; one scores 2. There is no vertebral none token. magent does not read imaging.",
                            "enum": [
                              "ge_3",
                              "two",
                              "one"
                            ],
                            "type": "string"
                          },
                          "visceral": {
                            "description": "Caller-assigned metastases to major internal organs (Tokuhashi 2005). unremovable scores 0; removable scores 1; none scores 2. magent does not read imaging.",
                            "enum": [
                              "unremovable",
                              "removable",
                              "none"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "kps",
                          "extraspinal",
                          "vertebral",
                          "visceral",
                          "primary",
                          "palsy"
                        ],
                        "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"
  }
}