[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [IHME GBD hierarchy children](https://spiral.ai/integrations/opencode/ihme-gbd-hierarchy-children)

# How to Use IHME GBD hierarchy children in opencode

Returns the direct children of a GBD cause, location, or risk hierarchy node. Use it to expand a region into countries or a disease category into its next level of causes.

|  |  |
| --- | --- |
| Model | IHME GBD hierarchy children |
| Available through | Alexandria |
| Category | Health |
| Price | $0.001746 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with IHME GBD hierarchy children in opencode

- Use IHME GBD hierarchy children to retrieve the direct countries under Western Europe, location 73, for GBD 2023 and compare them with this project's regional selection.
- Use IHME GBD hierarchy children to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from IHME GBD hierarchy children and tell me what changed since last week.
- Check IHME GBD hierarchy children and summarize what you find in three bullet points.
- Pull the newest data from IHME GBD hierarchy children and give me the result as a table.

## How to set up IHME GBD hierarchy children in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run IHME GBD hierarchy children**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "ihme-gbd-results/gbd/children",
    "input": {
      "id": 1,
      "type": "cause",
      "gbd_round": "2021"
    }
  }'
```

Then paste one of the prompts above: opencode finds IHME GBD hierarchy children on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## IHME GBD hierarchy children tools and prices

- [IHME GBD Results · Hierarchy children](https://spiral.ai/tools/alexandria/ihme-gbd-results/gbd/children) (Alexandria): $0.001746 per call.

## What can you do with IHME GBD hierarchy children in opencode?

Build a research interface that displays official GBD names and their hierarchy paths. A coding agent can use classification and release metadata to review identifiers and labels in the project's analysis files.

### Prepare a reproducible research appendix

Identify the GBD release, collect the classifications used in a study, inspect selected identifiers, and document the branches that define its disease or geographic scope.

### Review classifications before updating a study

Compare available release descriptions and classification records for GBD 2021 and GBD 2023. Inspect changed identifiers and branch contents before updating an existing analysis.

### Define a regional reporting scope

Document the release used for a Western Europe report, find the regional record, and retrieve its direct countries. Keep the regional classification alongside the report's geographic selection.

### Set the disease scope for a literature review

Find a disease category in the classification directory, inspect its hierarchy, and select the relevant child causes. Document the GBD release and official cause names in the review protocol.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## IHME GBD hierarchy children in other agents

- [Amp](https://spiral.ai/integrations/amp/ihme-gbd-hierarchy-children)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/ihme-gbd-hierarchy-children)
- [Claude](https://spiral.ai/integrations/claude-desktop/ihme-gbd-hierarchy-children)
- [Claude Code](https://spiral.ai/integrations/claude-code/ihme-gbd-hierarchy-children)
- [Cline](https://spiral.ai/integrations/cline/ihme-gbd-hierarchy-children)
- [Codex](https://spiral.ai/integrations/codex/ihme-gbd-hierarchy-children)
- [Cursor](https://spiral.ai/integrations/cursor/ihme-gbd-hierarchy-children)
- [Devin](https://spiral.ai/integrations/devin/ihme-gbd-hierarchy-children)
- [dots](https://spiral.ai/integrations/dots/ihme-gbd-hierarchy-children)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/ihme-gbd-hierarchy-children)
- [Gemini](https://spiral.ai/integrations/gemini/ihme-gbd-hierarchy-children)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/ihme-gbd-hierarchy-children)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/ihme-gbd-hierarchy-children)
- [goose](https://spiral.ai/integrations/goose/ihme-gbd-hierarchy-children)
- [Grok](https://spiral.ai/integrations/grok/ihme-gbd-hierarchy-children)
- [Grok Build](https://spiral.ai/integrations/grok-build/ihme-gbd-hierarchy-children)
- [Hermes](https://spiral.ai/integrations/hermes/ihme-gbd-hierarchy-children)
- [Instinct](https://spiral.ai/integrations/instinct/ihme-gbd-hierarchy-children)
- [Manus](https://spiral.ai/integrations/manus/ihme-gbd-hierarchy-children)
- [Muse](https://spiral.ai/integrations/muse/ihme-gbd-hierarchy-children)
- [Muse Code](https://spiral.ai/integrations/muse-code/ihme-gbd-hierarchy-children)
- [n8n](https://spiral.ai/integrations/n8n/ihme-gbd-hierarchy-children)
- [Notion](https://spiral.ai/integrations/notion/ihme-gbd-hierarchy-children)
- [OpenClaw](https://spiral.ai/integrations/openclaw/ihme-gbd-hierarchy-children)
- [Perplexity](https://spiral.ai/integrations/perplexity/ihme-gbd-hierarchy-children)
- [Raycast](https://spiral.ai/integrations/raycast/ihme-gbd-hierarchy-children)
- [VS Code](https://spiral.ai/integrations/vscode/ihme-gbd-hierarchy-children)
- [Windsurf](https://spiral.ai/integrations/windsurf/ihme-gbd-hierarchy-children)
- [Zapier](https://spiral.ai/integrations/zapier/ihme-gbd-hierarchy-children)

## More opencode guides

- [IHME GBD entity details](https://spiral.ai/integrations/opencode/ihme-gbd-entity-details)
- [IHME GBD release details](https://spiral.ai/integrations/opencode/ihme-gbd-release-details)
- [IHME GBD classification directory](https://spiral.ai/integrations/opencode/ihme-gbd-classification-directory)
- [ISRCTN clinical trial search](https://spiral.ai/integrations/opencode/isrctn-clinical-trial-search)
- [Human Protein Atlas protein search](https://spiral.ai/integrations/opencode/human-protein-atlas-protein-search)
- [ISRCTN study details](https://spiral.ai/integrations/opencode/isrctn-study-details)

## Questions about IHME GBD hierarchy children in opencode

**Can opencode use IHME GBD hierarchy children?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run IHME GBD hierarchy children like any built-in tool.

**How much does IHME GBD hierarchy children cost in opencode?**

$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use IHME GBD hierarchy children in opencode?**

No. Spiral runs IHME GBD hierarchy children on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up IHME GBD hierarchy children in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while IHME GBD hierarchy children runs?**

IHME GBD hierarchy children runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Which GBD study rounds does this metadata cover?**

The documented coverage is GBD 2021 and GBD 2023. It includes release metadata and classifications for causes, locations, ages, sexes, measures, metrics, and REI.

**Can a new GBD round change historical estimates?**

Yes. IHME re-estimates the entire time series back to 1990 for each round, so a historical year can have different estimates across rounds.

**How detailed is the GBD disease classification?**

The cause hierarchy starts with All causes at level 0. Its finest cause detail appears at levels 3 and 4, so a broad category and a detailed disease can both have valid cause identifiers.

**Does REI mean risk factors only?**

No. IHME defines REI as risks, etiologies, and impairments, so an REI record can describe any of those three categories.

**What is the difference between a GBD measure and metric?**

The measure identifies the indicator, such as mortality or incidence. The metric identifies its unit, such as number, percent, or rate.

