Spiral gives your agent every tool with one account. Browse the tools →

opencode · Health

How to Use NIH RePORTER grant details in opencode

Retrieve a funded project's abstract, organization, investigators, and award information from NIH RePORTER. Use it to examine a specific grant's research aims and funding after finding a relevant project.

Prompts to try with NIH RePORTER grant details in opencode

Copy an example into opencode, or ask in your own words.

Use NIH RePORTER grant details for project number 5P01CA244114-05 and add its returned abstract, organization, and award information to the project's research-detail view.

NIH RePORTER grant detailsopencode
Try asking
  • Use NIH RePORTER grant details for https://reporter.nih.gov/project-details/11171443 and create a JSON fixture from the actual response for our grant-summary component.

  • Use NIH RePORTER grant details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from NIH RePORTER grant details and tell me what changed since last week.

  • Check NIH RePORTER grant details and summarize what you find in three bullet points.

How to set up NIH RePORTER grant details 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run NIH RePORTER grant details

    One request; the result comes back by polling or a webhook.

    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": "reporter-nih-gov/research-grants/project",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: opencode finds NIH RePORTER grant details on Spiral, shows the price and runs it.

NIH RePORTER grant details providers and prices

Spiral runs NIH RePORTER grant details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
NIH RePORTER · Project
reporter-nih-gov/research-grants/project

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Appl IDa number from 1

Application id from search_projects, e.g. 11171443.

Every API field of NIH RePORTER · Project is on its tool page: open its card above.

What can you do with NIH RePORTER grant details in opencode?

Build a research index that connects NIH-funded project summaries with recorded PubMed associations. A coding agent can add project records to your application's data model and preserve application IDs for later detail lookups.

Prepare a research partnership shortlist

Find university projects on pancreatic cancer, read their abstracts, and examine associated publication links to identify institutions doing relevant work.

Check a proposal's research context

Compare a proposed Alzheimer's disease study with funded projects, inspect overlapping research aims, and collect PubMed IDs for associated papers.

Build an institutional research brief

Find Johns Hopkins projects on malaria, summarize their stated aims and award records, and add recorded publication associations.

Support a science reporting assignment

Trace funded research on sickle cell disease from project discovery through award details to linked papers, giving a reporter a documented starting point.

Review a public research portfolio

Assemble projects on antimicrobial resistance, compare their abstracts and fiscal-year funding records, and inspect the publication links recorded for those projects.

Maintain a topic-specific evidence index

Revisit funded research on cystic fibrosis, refresh project summaries, and add newly observed PubMed associations without treating missing links as proof of no publications.

Questions about NIH RePORTER grant details in opencode

Can opencode use NIH RePORTER grant details?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NIH RePORTER grant details like any built-in tool.

How much does NIH RePORTER grant details cost in opencode?

$0.00873 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 NIH RePORTER grant details in opencode?

No. Spiral runs NIH RePORTER grant details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up NIH RePORTER grant details in opencode?

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

Does opencode wait while NIH RePORTER grant details runs?

NIH RePORTER grant details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How fresh is NIH RePORTER?

NIH generally updates its project database weekly. A scheduled review can use that weekly cycle to check for newly available or changed project records.

Does RePORTER cover every paper produced by a grant?

No. RePORTER lists publications found in PubMed or PubMed Central, so it does not cover every possible publication venue.

How reliable are the links between grants and papers?

NIH explicitly warns that publications can be linked to the wrong grant or missing altogether. A linked-paper count therefore measures recorded associations, not a grant's complete output.

Does a project's funding amount represent its lifetime budget?

RePORTER defines total project funding for a given fiscal year. Use the year attached to an award record when comparing funding with research aims or associated publications.

What identifies an individual RePORTER project record?

The application ID is the unique identifier for a project record in RePORTER. Keep that identifier when connecting a search result to its detailed award record.

Get started

Start using NIH RePORTER grant details in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options