[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [NHSBSA hospital medicines search](https://spiral.ai/integrations/gemini/nhsbsa-hospital-medicines-search)

# How to Use NHSBSA hospital medicines search in Gemini

Returns medicines issued by NHS trust pharmacies in England, with product quantities and indicative costs. Use it to compare trust activity or follow monthly changes in hospital medicine supply.

|  |  |
| --- | --- |
| Model | NHSBSA hospital medicines search |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NHSBSA hospital medicines search in Gemini

- Use NHSBSA hospital medicines search for Cambridge University Hospitals NHS Foundation Trust and summarize the returned medicine products, quantities, units, and indicative costs.
- Use NHSBSA hospital medicines search for England, show the results by month, and identify the largest quantity changes where the same medicine and unit appear in consecutive returned months.
- Use NHSBSA hospital medicines search for Cambridge University Hospitals NHS Foundation Trust and list the different medicine strengths and forms present in the returned products.
- Use NHSBSA hospital medicines search for England and show the ten returned medicine products with the highest indicative costs, including their quantities and units.
- Use NHSBSA hospital medicines search for Cambridge University Hospitals NHS Foundation Trust and Manchester University NHS Foundation Trust, show the results separately for each trust, and compare matching returned products and units.

## How to set up NHSBSA hospital medicines search in Gemini

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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 NHSBSA hospital medicines search**: 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": "opendata-nhsbsa-net/hospital-medicines/search",
    "input": {
      "medicine": "<medicine>"
    }
  }'
```

Then paste one of the prompts above: Gemini finds NHSBSA hospital medicines search on Spiral, shows the price and runs it.

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

## NHSBSA hospital medicines search tools and prices

- [NHSBSA Secondary Care Medicines Data (SCMD) · Search](https://spiral.ai/tools/alexandria/opendata-nhsbsa-net/hospital-medicines/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 500 | 50 | Most rows to return; `total_count` counts all and `totals` covers all. |
| trust |  | — | Only these trusts, by ODS code: `["RBV", "RGT"]`. Omit for every trust in England. |
| group_by | product, trust, month | product | `product` (default): one row per VMP and unit for the whole window. `trust`: per trust and VMP, with the trust's name. `month`: per month and VMP, a time series. |

## What can you do with NHSBSA hospital medicines search in Gemini?

Get a readable briefing on medicines issued by NHS trust pharmacies in England. A chat app can compare returned products or months and explain the difference between medicine quantities and indicative costs.

### Trust pharmacy briefing

Summarize the medicines, quantities, and indicative costs returned for an English NHS trust. Give pharmacy teams a concise view of recorded supply activity.

### Compare medicine supply across trusts

Compare quantities for matching medicine products and units across selected trusts. Use the differences to frame questions for a pharmacy review.

### Monthly supply review

Calculate changes between returned months for the same medicine product and unit. Highlight increases and decreases for review without treating pharmacy issues as patient counts.

### Medicine formulation inventory

List the medicine products and units present in a trust's returned records. Build a reference table for analysts comparing different strengths and forms.

### Indicative cost concentration

Rank returned medicine products by indicative cost and show which account for the largest shares of the returned subtotal. Label the measure as indicative throughout the report.

### Revision monitoring

Compare repeated searches for overlapping trust, month, and medicine records. Separate revisions to previously returned quantities from newly returned reporting months.

## Overview

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

## NHSBSA hospital medicines search in other agents

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

## More Gemini guides

- [NEVO nutrient list](https://spiral.ai/integrations/gemini/nevo-nutrient-list)
- [NIH Guide document details](https://spiral.ai/integrations/gemini/nih-guide-document-details)
- [NEVO food search](https://spiral.ai/integrations/gemini/nevo-food-search)
- [NIH Guide notice releases](https://spiral.ai/integrations/gemini/nih-guide-notice-releases)
- [NEVO food nutrient details](https://spiral.ai/integrations/gemini/nevo-food-nutrient-details)
- [NIH Guide record index](https://spiral.ai/integrations/gemini/nih-guide-record-index)

## Questions about NHSBSA hospital medicines search in Gemini

**Can Gemini use NHSBSA hospital medicines search?**

Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run NHSBSA hospital medicines search like any built-in tool.

**How much does NHSBSA hospital medicines search cost in Gemini?**

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

**Do I need an Alexandria account to use NHSBSA hospital medicines search in Gemini?**

No. Spiral runs NHSBSA hospital medicines search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NHSBSA hospital medicines search in Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while NHSBSA hospital medicines search runs?**

NHSBSA hospital medicines search runs in the background. Gemini starts the run, checks on it and gives you the json when it's ready.

**Does SCMD cover the whole UK?**

Its coverage is NHS trusts in England, including acute, teaching, specialist, mental health, and community trusts. It does not provide a UK-wide hospital medicines total.

**How fresh are the figures?**

NHSBSA publishes provisional SCMD monthly with a two-month delay. Rx-Info says the previous three months are republished each month to reconcile changes.

**How far back does the source's archive go?**

NHSBSA's finalised SCMD archive starts in April 2019. That describes the source archive; it does not establish how much history a particular search returns.

**Are indicative costs what hospitals actually paid?**

No. They do not reflect actual net costs after discounts and rebates, so a sum of indicative costs should not be described as actual hospital expenditure.

**Can I identify the manufacturer or brand supplied?**

Published SCMD is available at Virtual Medicinal Product level. Actual Medicinal Product detail is outside the publication scope, so these records cannot establish which manufacturer's product was supplied.

